mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 00:28:23 +02:00
Add NETBSD_USE_STAT30 conditional for recent NetBSD changes, not yet used
git-svn-id: trunk@20741 -
This commit is contained in:
parent
7819eb892c
commit
78e129931b
@ -69,7 +69,7 @@ TYPE
|
||||
st_nlink : nlink_t; // number of hard links
|
||||
st_ino : ino_t; // inode's number
|
||||
{$else}
|
||||
{$ifdef netbsd}
|
||||
{$ifdef netbsd_use_stat30}
|
||||
{ order is inverted for better alignment probably }
|
||||
st_mode : mode_t; // inode protection mode
|
||||
st_ino : ino_t; // inode's number
|
||||
|
@ -32,8 +32,11 @@ type
|
||||
TGid = gid_t;
|
||||
pGid = ^gid_t;
|
||||
TIOCtlRequest = cuLong;
|
||||
|
||||
{$ifdef NETBSD_USE_STAT30}
|
||||
ino_t = cint64; { used for file serial numbers }
|
||||
{$else}
|
||||
ino_t = clong;
|
||||
{$endif}
|
||||
TIno = ino_t;
|
||||
pIno = ^ino_t;
|
||||
|
||||
|
@ -495,8 +495,17 @@ const
|
||||
syscall_nr_kqueue = 344;
|
||||
{ syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" }
|
||||
syscall_nr_kevent = 345;
|
||||
{ syscall: "__stat30" ret: "int" args: "const char *" "struct stat *" }
|
||||
syscall_nr___stat30 = 387;
|
||||
|
||||
syscall_nr_MAXSYSCALL = 340;
|
||||
{ syscall: "__fstat30" ret: "int" args: "int" "struct stat *" }
|
||||
syscall_nr___fstat30 = 388;
|
||||
|
||||
{ syscall: "__lstat30" ret: "int" args: "const char *" "struct stat *" }
|
||||
syscall_nr___lstat30 = 389;
|
||||
|
||||
|
||||
syscall_nr_MAXSYSCALL = 390;
|
||||
syscall_nr_NSYSENT = 512;
|
||||
|
||||
|
||||
@ -505,12 +514,21 @@ const
|
||||
and removed those who are equal
|
||||
and added some equivalents, unchecked PM }
|
||||
|
||||
{$ifdef NETBSD_USE_STAT30}
|
||||
{ syscall_nr_compat_12_fstat12 = 189 }
|
||||
{ syscall_nr___fstat13 = 279 }
|
||||
syscall_nr_fstat = syscall_nr___fstat13;
|
||||
syscall_nr_fstat = syscall_nr___fstat30;
|
||||
{ syscall_nr_compat_12_lstat12 = 190 }
|
||||
{ syscall_nr___lstat13 = 280 }
|
||||
syscall_nr_lstat = syscall_nr___lstat30;
|
||||
{ syscall_nr_compat_12_stat12 = 188; }
|
||||
{ syscall_nr___stat13 = 278 }
|
||||
syscall_nr_stat = syscall_nr___stat30;
|
||||
{$else}
|
||||
syscall_nr_fstat = syscall_nr___fstat13;
|
||||
syscall_nr_lstat = syscall_nr___lstat13;
|
||||
syscall_nr_stat = syscall_nr___stat13;
|
||||
{$endif}
|
||||
{ syscall_nr_sigaction = 342; MISSING }
|
||||
{ syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction " "struct sigaction " }
|
||||
syscall_nr_sigaction = syscall_nr___sigaction14;
|
||||
@ -527,9 +545,6 @@ const
|
||||
syscall_nr_sigreturn = syscall_nr___sigreturn14;
|
||||
{ Note: syscall_nr_sigreturn was not on the checked list for FreeBSD }
|
||||
|
||||
{ syscall_nr_compat_12_stat12 = 188; }
|
||||
{ syscall_nr___stat13 = 278 }
|
||||
syscall_nr_stat = syscall_nr___stat13;
|
||||
{ syscall_nr_wait4 = 7 }
|
||||
syscall_nr_waitpid = syscall_nr_wait4;
|
||||
{ This one seems to be missing !!!!
|
||||
|
Loading…
Reference in New Issue
Block a user