Basic unix types

The unixtype unit contains the definitions of basic unix types. It was initially implemented by Marco van de Voort.

When porting to a new unix platform, this unit should be adapted to the sizes and conventions of the platform to which the compiler is ported.

C type: 8 bits sized, signed integer. C type: 8 bits sized, unsigned integer. C type: 16 bits sized, unsigned integer. C type: 16 bits sized, signed integer. C type: 32 bits sized, signed integer. C type: 32 bits sized, unsigned integer. C type: 64 bits sized, signed integer. C type: 64 bits sized, unsigned integer. C type: unsigned character C type: integer (natural size) C type: unsigned integer (natural size) C type: long signed integer (double sized) C type: long unsigned integer (double sized) C type: short signed integer (half sized) C type: short unsigned integer (half sized) Pointer to type. Pointer to type. Pointer to type. Pointer to type. Pointer to type. Pointer to type. Device descriptor type. Alias for type. Pointer to type. Group ID type. Alias for type. Pointer to type. Inode type. Alias for type. Pointer to type. Inode mode type. Alias for type. Pointer to type. Number of links type. Alias for type. Pointer to type. Offset type. Alias for type. Pointer to type. Process ID type. Alias for type. Pointer to type. Size specification type. Alias for type Pointer to type. Small size type. Alias for type Pointer to type User ID type Alias for type. Pointer to type. Clock ticks type Alias for type. Pointer to type. Time span type Alias for type. Pointer to type. Pointer to type. Socket address length type. Alias for type. Pointer to type. Time specification type. Pointer to record. Alias for record. Record specifying time interval. Pointer to record. Alias for type. C type: 64-bit (double long) signed integer. C type: 64-bit (double long) unsigned integer. Seconds Milliseconds Seconds Nanoseconds Kernel device type Alias for type. Pointer to type. Record describing a file system in the call. File system type Block size Total number of blocks Number of free blocks Number of available blocks Number of files ? ? Max name length for files. Pad bytes. Do not use. Pointer to type. Thread description record Scheduling parameter description record. Priority. Thread attributes record. Opaque. pthread_attr_t describes the thread attributes. It should be considered an opaque record, the names of the fields can change anytime. Use the appropriate functions to set the thread attributes. ? ? ? ? ? ? ? ? ? Fast lock (mutex) type (opaque). _pthread_fastlock describes a thread mutex. It should be considered an opaque record, the names of the fields can change anytime. ? ? Thread mutex type (opaque). _pthread_mutex_t describes a thread mutex. It should be considered an opaque record, the names of the fields can change anytime. ? ? ? ? ? Mutex attributes type (opaque). pthread_mutexattr_t describes the attributes of a thread mutex. It should be considered an opaque record, the names of the fields can change anytime. ? Thread conditional variable (opaque). pthread_cond_t describes a thread conditional variable. It should be considered an opaque record, the names of the fields can change anytime. ? ? ? ? Conditional variable attributes type (opaque). pthread_condattr_t describes the attributes of a thread mutex. It should be considered an opaque record, the names of the fields can change anytime. ? Thread local storage key (opaque) Read/Write lock type (opaque) pthread_rwlock_t describes a lock. It should be considered an opaque record, the names of the fields can change anytime. ? ? ? ? ? ? R/W lock attributes (opaque). pthread_rwlockattr_t describes the attributes of a lock. It should be considered an opaque record, the names of the fields can change anytime. ? ? Semaphore type. (opaque) sem_t describes a thread semaphore. It should be considered an opaque record, the names of the fields can change anytime. ? ? ? Mutex options: ? Mutex options: recursive mutex Mutex options: double lock returns an error code. Mutex options: Mutex options: Mutex options: Mutex options: Mutex options: Mutex options: Fast mutex Max number of command-line arguments. Max length (in bytes) of filename Max length (in bytes) of pathname Max system namelength Maximum signal number.