Explorar o código

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 -
pierre %!s(int64=4) %!d(string=hai) anos
pai
achega
e154b9933f
Modificáronse 1 ficheiros con 34 adicións e 0 borrados
  1. 34 0
      rtl/linux/t_linux.h2paschk

+ 34 - 0
rtl/linux/t_linux.h2paschk

@@ -8,10 +8,15 @@
 # supported architecture.
 
 @Pascal uses baseunix;
+@Pascal {$i ptypes.inc}
+@Pascal {$i ostypes.inc}
 @Pascal begin
 @C #define _LARGEFILE_SOURCE 1
 @C #define _FILE_OFFSET_BITS 64
 ## @C #define _USE_FILE_OFFSET64
+## @C #ifdef __i386__
+## @C #define _LARGEFILE64_SOURCE
+## @C #endif
 
 @C #include <sys/types.h>
 @C #include <sys/stat.h>
@@ -31,10 +36,39 @@
 @C int main()
 @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
 .tv_sec
 .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
 .st_dev
 .st_ino