Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / ntp / dist / lib / isc / win32 / unistd.h
blob83c6a9401f3a31a5ee3998b61a86417b52d6ec79
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2004, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
5 * Copyright (C) 2000, 2001 Internet Software Consortium.
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
20 /* Id: unistd.h,v 1.8 2008/01/23 03:22:43 tbox Exp */
22 /* None of these are defined in NT, so define them for our use */
23 #define O_NONBLOCK 1
24 #define PORT_NONBLOCK O_NONBLOCK
27 * fcntl() commands
29 #define F_SETFL 0
30 #define F_GETFL 1
31 #define F_SETFD 2
32 #define F_GETFD 3
34 * Enough problems not having full fcntl() without worrying about this!
36 #undef F_DUPFD
38 int fcntl(int, int, ...);
41 * access() related definitions for winXP
43 #include <io.h>
45 #ifndef W_OK
46 #define W_OK 2
47 #endif
49 #ifndef R_OK
50 #define R_OK 4
51 #endif
53 #define access _access
55 #include <process.h>