/* * UIO.h -- stubbed out PCR version */ #ifndef UIO_H #define UIO_H #include "UIOBasic.h" /* * * Unix-like descriptor I/O * */ #ifdef __STDC__ # define ADD_XR(pcrName) XR_ ## pcrName #else # define ADD_XR(pcrName) XR_/**/pcrName #endif # define XR_SYSCALL0(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL1(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL2(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL3(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL4(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL5(pcrName, uxname) extern int ADD_XR(pcrName) (); # define XR_SYSCALL6(pcrName, uxname) extern int ADD_XR(pcrName) (); /* Nonstandard calls */ XR_SYSCALL4(Open4, xxx) XR_SYSCALL4(Fcntl4, xxx) XR_SYSCALL4(Ioctl4, xxx) XR_SYSCALL1(GetDescriptorKind, xxx) /* Standard calls with nonstandard implementations */ XR_SYSCALL3(Open, open) XR_SYSCALL3(Write, write) XR_SYSCALL3(WriteV, writev) XR_SYSCALL3(Read, read) XR_SYSCALL3(ReadV, readv) # include "xr/UnixSysCallTranslation.h" #endif _P_UIO_H