summaryrefslogtreecommitdiff
path: root/mit-pthreads/machdep/posix-romp-bsd.h
blob: 7825622b064c36545c67379259e93c725ba8d580 (plain)
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
27
28
29
30
31
32
33
/* ==== posix.h ============================================================
 * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu	
 *
 * Description : Convert a system to a more or less POSIX system.
 *
 *  1.00 93/07/20 proven
 *      -Started coding this file.
 */

#ifndef lint
static const char rcsid[] = "$Id$";
#endif

#ifndef O_NONBLOCK
#ifdef FNDELAY
#define	O_NONBLOCK	FNDELAY
#endif
#endif

#ifndef O_ACCMODE
#define O_ACCMODE (O_RDONLY|O_RDWR|O_WRONLY)
#endif

#ifndef	S_ISREG
#define S_ISREG(x)	((x & S_IFMT) == S_IFREG)
#endif

#ifndef ENOSYS
#define	ENOSYS	EINVAL
#endif

/* Make sure we have size_t defined */
#include <pthread/types.h>