Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch add the *at() syscalls.



details:   https://anonhg.NetBSD.org/src/rev/49f7352f5485
branches:  trunk
changeset: 791452:49f7352f5485
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Nov 19 03:52:07 2013 +0000

description:
add the *at() syscalls.

diffstat:

 sys/compat/linux/arch/alpha/syscalls.master |  38 +++++++++++++++++++---------
 sys/compat/linux/arch/arm/syscalls.master   |  38 +++++++++++++++++++---------
 sys/compat/linux/arch/m68k/syscalls.master  |  38 +++++++++++++++++++---------
 sys/compat/linux/arch/mips/syscalls.master  |  38 +++++++++++++++++++---------
 4 files changed, 100 insertions(+), 52 deletions(-)

diffs (212 lines):

diff -r 70a71809f7e4 -r 49f7352f5485 sys/compat/linux/arch/alpha/syscalls.master
--- a/sys/compat/linux/arch/alpha/syscalls.master       Tue Nov 19 00:28:41 2013 +0000
+++ b/sys/compat/linux/arch/alpha/syscalls.master       Tue Nov 19 03:52:07 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp $
+       $NetBSD: syscalls.master,v 1.80 2013/11/19 03:52:07 chs Exp $
 ;
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -698,19 +698,31 @@
 447    UNIMPL          fdatasync
 448    UNIMPL          kexec_load
 449    UNIMPL          migrate_pages
-450    UNIMPL          openat
-451    UNIMPL          mkdirat
-452    UNIMPL          mknodat
-453    UNIMPL          fchownat
+450    STD             { int|linux_sys||openat(int fd, const char *path, \
+                           int flags, ... linux_umode_t mode); }
+451    NOARGS          { int|sys||mkdirat(int fd, const char *path, \
+                           linux_umode_t mode); }
+452    STD             { int|linux_sys||mknodat(int fd, const char *path, \
+                           linux_umode_t mode, unsigned dev); }
+453    STD             { int|linux_sys||fchownat(int fd, const char *path, \
+                           uid_t owner, gid_t group, int flag); }
 454    UNIMPL          futimesat
-455    UNIMPL          fstatat64
-456    UNIMPL          unlinkat
-457    UNIMPL          renameat
-458    UNIMPL          linkat
-459    UNIMPL          symlinkat
-460    UNIMPL          readlinkat
-461    UNIMPL          fchmodat
-462    UNIMPL          faccessat
+455    UNIMPL          { int|linux_sys||fstatat64(int fd, const char *path, \
+                           struct linux_stat64 *sp, int flag); }
+456    STD             { int|linux_sys||unlinkat(int fd, const char *path, \
+                           int flag); }
+457    NOARGS          { int|sys||renameat(int fromfd, const char *from, \
+                           int tofd, const char *to); }
+458    STD             { int|linux_sys||linkat(int fd1, const char *name1, \
+                           int fd2, const char *name2, int flags); }
+459    NOARGS          { int|sys||symlinkat(const char *path1, int fd, \
+                           const char *path2); }
+460    NOARGS          { int|sys||readlinkat(int fd, const char *path, \
+                           char *buf, size_t bufsize); }
+461    STD             { int|linux_sys||fchmodat(int fd, const char *path, \
+                           linux_umode_t mode); }
+462    STD             { int|linux_sys||faccessat(int fd, const char *path, \
+                           int amode); }
 463    UNIMPL          pselect6
 464    STD             { int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
                            struct linux_timespec *timeout, \
diff -r 70a71809f7e4 -r 49f7352f5485 sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Tue Nov 19 00:28:41 2013 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Tue Nov 19 03:52:07 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:18 njoly Exp $
+       $NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -503,19 +503,31 @@
 319    UNIMPL          mbind
 320    UNIMPL          get_mempolicy
 321    UNIMPL          set_mempolicy
-322    UNIMPL          openat
-323    UNIMPL          mkdirat
-324    UNIMPL          mknodat
-325    UNIMPL          fchownat
+322    STD             { int|linux_sys||openat(int fd, const char *path, \
+                           int flags, ... linux_umode_t mode); }
+323    NOARGS          { int|sys||mkdirat(int fd, const char *path, \
+                           linux_umode_t mode); }
+324    STD             { int|linux_sys||mknodat(int fd, const char *path, \
+                           linux_umode_t mode, unsigned dev); }
+325    STD             { int|linux_sys||fchownat(int fd, const char *path, \
+                           uid_t owner, gid_t group, int flag); }
 326    UNIMPL          futimesat
-327    UNIMPL          fstatat64
-328    UNIMPL          unlinkat
-329    UNIMPL          renameat
-330    UNIMPL          linkat
-331    UNIMPL          symlinkat
-332    UNIMPL          readlinkat
-333    UNIMPL          fchmodat
-334    UNIMPL          faccessat
+327    STD             { int|linux_sys||fstatat64(int fd, const char *path, \
+                           struct linux_stat64 *sp, int flag); }
+328    STD             { int|linux_sys||unlinkat(int fd, const char *path, \
+                           int flag); }
+329    NOARGS          { int|sys||renameat(int fromfd, const char *from, \
+                           int tofd, const char *to); }
+330    STD             { int|linux_sys||linkat(int fd1, const char *name1, \
+                           int fd2, const char *name2, int flags); }
+331    NOARGS          { int|sys||symlinkat(const char *path1, int fd, \
+                           const char *path2); }
+332    NOARGS          { int|sys||readlinkat(int fd, const char *path, \
+                           char *buf, size_t bufsize); }
+333    STD             { int|linux_sys||fchmodat(int fd, const char *path, \
+                           linux_umode_t mode); }
+334    STD             { int|linux_sys||faccessat(int fd, const char *path, \
+                           int amode); }
 335    UNIMPL          pselect6
 336    STD             { int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
                            struct linux_timespec *timeout, \
diff -r 70a71809f7e4 -r 49f7352f5485 sys/compat/linux/arch/m68k/syscalls.master
--- a/sys/compat/linux/arch/m68k/syscalls.master        Tue Nov 19 00:28:41 2013 +0000
+++ b/sys/compat/linux/arch/m68k/syscalls.master        Tue Nov 19 03:52:07 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.77 2013/11/07 19:37:19 njoly Exp $
+       $NetBSD: syscalls.master,v 1.78 2013/11/19 03:52:07 chs Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -484,19 +484,31 @@
 285    UNIMPL          inotify_add_watch
 286    UNIMPL          inotify_rm_watch
 287    UNIMPL          migrate_pages
-288    UNIMPL          openat
-289    UNIMPL          mkdirat
-290    UNIMPL          mknodat
-291    UNIMPL          fchownat
+288    STD             { int|linux_sys||openat(int fd, const char *path, \
+                           int flags, ... linux_umode_t mode); }
+289    NOARGS          { int|sys||mkdirat(int fd, const char *path, \
+                           linux_umode_t mode); }
+290    STD             { int|linux_sys||mknodat(int fd, const char *path, \
+                           linux_umode_t mode, unsigned dev); }
+291    STD             { int|linux_sys||fchownat(int fd, const char *path, \
+                           uid_t owner, gid_t group, int flag); }
 292    UNIMPL          futimesat
-293    UNIMPL          fstatat64
-294    UNIMPL          unlinkat
-295    UNIMPL          renameat
-296    UNIMPL          linkat
-297    UNIMPL          symlinkat
-298    UNIMPL          readlinkat
-299    UNIMPL          fchmodat
-300    UNIMPL          faccessat
+293    STD             { int|linux_sys||fstatat64(int fd, const char *path, \
+                           struct linux_stat64 *sp, int flag); }
+294    STD             { int|linux_sys||unlinkat(int fd, const char *path, \
+                           int flag); }
+295    NOARGS          { int|sys||renameat(int fromfd, const char *from, \
+                           int tofd, const char *to); }
+296    STD             { int|linux_sys||linkat(int fd1, const char *name1, \
+                           int fd2, const char *name2, int flags); }
+297    NOARGS          { int|sys||symlinkat(const char *path1, int fd, \
+                           const char *path2); }
+298    NOARGS          { int|sys||readlinkat(int fd, const char *path, \
+                           char *buf, size_t bufsize); }
+299    STD             { int|linux_sys||fchmodat(int fd, const char *path, \
+                           linux_umode_t mode); }
+300    STD             { int|linux_sys||faccessat(int fd, const char *path, \
+                           int amode); }
 301    UNIMPL          pselect6
 302    STD             { int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
                            struct linux_timespec *timeout, \
diff -r 70a71809f7e4 -r 49f7352f5485 sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Tue Nov 19 00:28:41 2013 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Tue Nov 19 03:52:07 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.47 2013/11/07 19:37:19 njoly Exp $  
+       $NetBSD: syscalls.master,v 1.48 2013/11/19 03:52:07 chs Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -473,19 +473,31 @@
 285    UNIMPL          inotify_add_watch
 286    UNIMPL          inotify_rm_watch
 287    UNIMPL          migrate_pages
-288    UNIMPL          openat
-289    UNIMPL          mkdirat
-290    UNIMPL          mknodat
-291    UNIMPL          fchownat
+288    STD             { int|linux_sys||openat(int fd, const char *path, \
+                           int flags, ... linux_umode_t mode); }
+289    NOARGS          { int|sys||mkdirat(int fd, const char *path, \
+                           linux_umode_t mode); }
+290    STD             { int|linux_sys||mknodat(int fd, const char *path, \
+                           linux_umode_t mode, unsigned dev); }
+291    STD             { int|linux_sys||fchownat(int fd, const char *path, \
+                           uid_t owner, gid_t group, int flag); }
 292    UNIMPL          futimesat
-293    UNIMPL          fstatat64
-294    UNIMPL          unlinkat
-295    UNIMPL          renameat
-296    UNIMPL          linkat
-297    UNIMPL          symlinkat
-298    UNIMPL          readlinkat
-299    UNIMPL          fchmodat
-300    UNIMPL          faccessat
+293    STD             { int|linux_sys||fstatat64(int fd, const char *path, \
+                           struct linux_stat64 *sp, int flag); }
+294    STD             { int|linux_sys||unlinkat(int fd, const char *path, \
+                           int flag); }
+295    NOARGS          { int|sys||renameat(int fromfd, const char *from, \
+                           int tofd, const char *to); }
+296    STD             { int|linux_sys||linkat(int fd1, const char *name1, \
+                           int fd2, const char *name2, int flags); }
+297    NOARGS          { int|sys||symlinkat(const char *path1, int fd, \
+                           const char *path2); }
+298    NOARGS          { int|sys||readlinkat(int fd, const char *path, \
+                           char *buf, size_t bufsize); }
+299    STD             { int|linux_sys||fchmodat(int fd, const char *path, \
+                           linux_umode_t mode); }
+300    STD             { int|linux_sys||faccessat(int fd, const char *path, \
+                           int amode); }
 301    UNIMPL          pselect6
 302    STD             { int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
                            struct linux_timespec *timeout, \



Home | Main Index | Thread Index | Old Index