mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 05:43:51 +02:00
* 64 bit fixes for pthread and timeval structs
git-svn-id: trunk@6489 -
This commit is contained in:
parent
b1653c6fc3
commit
8e55ea3d29
@ -84,9 +84,11 @@ type
|
|||||||
TSocklen = socklen_t;
|
TSocklen = socklen_t;
|
||||||
pSocklen = ^socklen_t;
|
pSocklen = ^socklen_t;
|
||||||
|
|
||||||
|
suseconds_t = cint32;
|
||||||
|
|
||||||
timeval = record
|
timeval = record
|
||||||
tv_sec: cint;
|
tv_sec: time_t;
|
||||||
tv_usec: cint;
|
tv_usec: suseconds_t;
|
||||||
end;
|
end;
|
||||||
ptimeval = ^timeval;
|
ptimeval = ^timeval;
|
||||||
TTimeVal = timeval;
|
TTimeVal = timeval;
|
||||||
@ -124,7 +126,7 @@ type
|
|||||||
|
|
||||||
|
|
||||||
const
|
const
|
||||||
_PTHREAD_MUTEX_DEFAULT = _PTHREAD_MUTEX_NORMAL;
|
_PTHREAD_MUTEX_DEFAULT = _PTHREAD_MUTEX_NORMAL;
|
||||||
_MUTEX_TYPE_FAST = _PTHREAD_MUTEX_NORMAL;
|
_MUTEX_TYPE_FAST = _PTHREAD_MUTEX_NORMAL;
|
||||||
_MUTEX_TYPE_COUNTING_FAST = _PTHREAD_MUTEX_RECURSIVE;
|
_MUTEX_TYPE_COUNTING_FAST = _PTHREAD_MUTEX_RECURSIVE;
|
||||||
|
|
||||||
@ -161,14 +163,14 @@ type
|
|||||||
pstatfs = ^tstatfs;
|
pstatfs = ^tstatfs;
|
||||||
|
|
||||||
pthread_t = pointer;
|
pthread_t = pointer;
|
||||||
pthread_attr_t = record sig: clong; opaque: array[0..36-1] of byte; end;
|
pthread_attr_t = record sig: clong; opaque: array[0..{$ifdef cpu64}56{$else}36{$endif}-1] of byte; end;
|
||||||
pthread_mutex_t = {$i pmutext.inc}
|
pthread_mutex_t = {$i pmutext.inc}
|
||||||
pthread_mutexattr_t = record sig: clong; opaque: array[0..8-1] of byte; end;
|
pthread_mutexattr_t = record sig: clong; opaque: array[0..8-1] of byte; end;
|
||||||
pthread_cond_t = record sig: clong; opaque: array[0..24-1] of byte; end;
|
pthread_cond_t = record sig: clong; opaque: array[0..{$ifdef cpu64}40{$else}24{$endif}-1] of byte; end;
|
||||||
pthread_condattr_t = record sig: clong; opaque: array[0..4-1] of byte; end;
|
pthread_condattr_t = record sig: clong; opaque: array[0..{$ifdef cpu64}8{$else}4{$endif}-1] of byte; end;
|
||||||
pthread_key_t = clong;
|
pthread_key_t = culong;
|
||||||
pthread_rwlock_t = record sig: clong; opaque: array[0..124-1] of byte; end;
|
pthread_rwlock_t = record sig: clong; opaque: array[0..{$ifdef cpu64}192{$else}124{$endif}-1] of byte; end;
|
||||||
pthread_rwlockattr_t = record sig: clong; opaque: array[0..12-1] of byte; end;
|
pthread_rwlockattr_t = record sig: clong; opaque: array[0..{$ifdef cpu64}16{$else}12{$endif}-1] of byte; end;
|
||||||
|
|
||||||
sem_t = cint;
|
sem_t = cint;
|
||||||
|
|
||||||
@ -179,4 +181,3 @@ Const
|
|||||||
Prio_PGrp = 1;
|
Prio_PGrp = 1;
|
||||||
Prio_User = 2;
|
Prio_User = 2;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user