1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- {
- $Id$
- This file is part of the Free Pascal run time library.
- Copyright (c) 2001 by Free Pascal development team
- This file implements all the base types and limits required
- for a minimal POSIX compliant subset required to port the compiler
- to a new OS.
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- {***********************************************************************}
- { POSIX TYPE DEFINITIONS }
- {***********************************************************************}
- {$i ctypes.inc}
- type
- { the following type definitions are compiler dependant }
- { and system dependant }
- dev_t = cuint32; { used for device numbers }
- TDev = dev_t;
- pDev = ^dev_t;
- gid_t = cuint32; { used for group IDs }
- TGid = gid_t;
- pGid = ^gid_t;
- ino_t = clong; { used for file serial numbers }
- TIno = ino_t;
- pIno = ^ino_t;
- mode_t = cuint16; { used for file attributes }
- TMode = mode_t;
- pMode = ^mode_t;
- nlink_t = cuint16; { used for link counts }
- TnLink = nlink_t;
- pnLink = ^nlink_t;
- off_t = cint64; { used for file sizes }
- TOff = off_t;
- pOff = ^off_t;
- pid_t = cint32; { used as process identifier }
- TPid = pid_t;
- pPid = ^pid_t;
- size_t = cuint32; { as definied in the C standard}
- TSize = size_t;
- pSize = ^size_t;
- ssize_t = cint32; { used by function for returning number of bytes }
- TsSize = ssize_t;
- psSize = ^ssize_t;
- uid_t = cuint32; { used for user ID type }
- TUid = Uid_t;
- pUid = ^Uid_t;
- clock_t = culong;
- TClock = clock_t;
- pClock = ^clock_t;
- time_t = clong; { used for returning the time }
- TTime = time_t;
- pTime = ^time_t;
- socklen_t= cuint32;
- TSocklen = socklen_t;
- pSocklen = ^socklen_t;
- CONST
- { System limits, POSIX value in parentheses, used for buffer and stack allocation }
- ARG_MAX = 65536; {4096} { Maximum number of argument size }
- NAME_MAX = 255; {14} { Maximum number of bytes in filename }
- PATH_MAX = 1024; {255} { Maximum number of bytes in pathname }
- SYS_NMLN = 32; {BSD utsname struct limit}
- {
- $Log$
- Revision 1.2 2003-05-25 12:59:57 jonas
- * several fixes, addition of Mach trap numbers (thye are simply syscalls
- with a negative number)
- Revision 1.1 2002/09/08 09:00:54 jonas
- + initial revision, simply copied from FreeBSD
- }
|