File: unistd.h

package info (click to toggle)
python-pysam 0.15.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,992 kB
  • sloc: ansic: 140,738; python: 7,881; sh: 265; makefile: 223; perl: 41
file content (26 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _UNISTD_H
#define _UNISTD_H        1

/* This file intended to serve as a drop-in replacement for 
 *  *  unistd.h on Windows
 *   *  Please add functionality as neeeded 
 *    */

#include <stdlib.h>
#include <io.h>
#include <getopt.h> /* getopt from: http://www.pwilson.net/sample.html. */

#define srandom srand
#define random rand

/*
const W_OK = 2;
const R_OK = 4;
*/

#define access _access
#define ftruncate _chsize

#define ssize_t int

#endif /* unistd.h  */