mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 10:29:17 +02:00
Add some types and records to rtl/linux/t_linux.h2paschk and set macro _LARGEFILE64_SOURCE for __i386__ C code
git-svn-id: trunk@47439 -
This commit is contained in:
parent
c44095733c
commit
e154b9933f
@ -8,10 +8,15 @@
|
|||||||
# supported architecture.
|
# supported architecture.
|
||||||
|
|
||||||
@Pascal uses baseunix;
|
@Pascal uses baseunix;
|
||||||
|
@Pascal {$i ptypes.inc}
|
||||||
|
@Pascal {$i ostypes.inc}
|
||||||
@Pascal begin
|
@Pascal begin
|
||||||
@C #define _LARGEFILE_SOURCE 1
|
@C #define _LARGEFILE_SOURCE 1
|
||||||
@C #define _FILE_OFFSET_BITS 64
|
@C #define _FILE_OFFSET_BITS 64
|
||||||
## @C #define _USE_FILE_OFFSET64
|
## @C #define _USE_FILE_OFFSET64
|
||||||
|
## @C #ifdef __i386__
|
||||||
|
## @C #define _LARGEFILE64_SOURCE
|
||||||
|
## @C #endif
|
||||||
|
|
||||||
@C #include <sys/types.h>
|
@C #include <sys/types.h>
|
||||||
@C #include <sys/stat.h>
|
@C #include <sys/stat.h>
|
||||||
@ -31,10 +36,39 @@
|
|||||||
@C int main()
|
@C int main()
|
||||||
@C {
|
@C {
|
||||||
|
|
||||||
|
@type dev_t
|
||||||
|
@type gid_t
|
||||||
|
@type ino_t
|
||||||
|
@type mode_t
|
||||||
|
@type nlink_t
|
||||||
|
@type off_t
|
||||||
|
@type pid_t
|
||||||
|
@type size_t
|
||||||
|
@type ssize_t
|
||||||
|
@type uid_t
|
||||||
|
@type clock_t
|
||||||
|
@type time_t
|
||||||
|
@type socklen_t
|
||||||
|
|
||||||
|
@record timeval,struct timeval
|
||||||
|
.tv_sec
|
||||||
|
.tv_usec
|
||||||
|
|
||||||
@record timespec,struct timespec
|
@record timespec,struct timespec
|
||||||
.tv_sec
|
.tv_sec
|
||||||
.tv_nsec
|
.tv_nsec
|
||||||
|
|
||||||
|
@type pthread_t
|
||||||
|
@type pthread_attr_t
|
||||||
|
@type pthread_mutex_t
|
||||||
|
@type pthread_mutexattr_t
|
||||||
|
@type pthread_cond_t
|
||||||
|
@type pthread_condattr_t
|
||||||
|
@type pthread_key_t
|
||||||
|
@type pthread_rwlock_t
|
||||||
|
@type pthread_rwlockattr_t
|
||||||
|
@type rlim_t
|
||||||
|
|
||||||
@record stat,struct stat
|
@record stat,struct stat
|
||||||
.st_dev
|
.st_dev
|
||||||
.st_ino
|
.st_ino
|
||||||
|
Loading…
Reference in New Issue
Block a user