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