/* fcntl.h,v 1.1 2001/06/01 20:56:45 joeh Exp

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    pace/vxworks/fnctl.h
 *
 * = AUTHOR
 *    Joe Hoffert
 *
 * ============================================================================ */

#ifndef PACE_FCNTL_H_VXWORKS
#define PACE_FCNTL_H_VXWORKS

#include "pace/sys/types.h"
#include "pace/unistd.h"
#include "pace/sys/stat.h"
#include <fcntl.h>

#if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
#endif /* PACE_HAS_CPLUSPLUS */

#define PACE_FD_CLOEXEC FD_CLOEXEC
#define PACE_F_DUPFD D_DUPFD
#define PACE_F_GETFD F_GETFD
#define PACE_F_GETFL F_GETFL
#define PACE_F_GETLK F_GETLK
#define PACE_F_RDLCK F_RDLCK
#define PACE_F_SETFD F_SETFD
#define PACE_F_SETFL F_SETFL
#define PACE_F_SETLK F_SETLK
#define PACE_F_SETLKW F_SETLKW
#define PACE_F_UNLCK F_UNLCK
#define PACE_F_WRLCK F_WRLCK
#define PACE_O_ACCMODE O_ACCMODE
#define PACE_O_APPEND O_APPEND
#define PACE_O_CREAT O_CREAT
#define PACE_O_DSYNC O_DSYNC
#define PACE_O_EXCL O_EXCL
#define PACE_O_NOCTTY O_NOCTTY
#define PACE_O_NONBLOCK O_NONBLOCK
#define PACE_O_RDONLY O_RDONLY
#define PACE_O_RDWR O_RDWR
#define PACE_O_RSYNC O_RSYNC
#define PACE_O_SYNC O_SYNC
#define PACE_O_TRUNC O_TRUNC
#define PACE_O_WRONLY O_WRONLY

#ifndef PACE_FLOCK
#define PACE_FLOCK
typedef struct flock pace_flock;
#endif /* PACE_FLOCK */

#if defined (PACE_HAS_CPLUSPLUS)
}
#endif /* PACE_HAS_CPLUSPLUS */

#endif /* PACE_FCNTL_H_VXWORKS */
