CVSROOT: /cvs Module name: src Changes by: matt...@cvs.openbsd.org 2011/07/07 17:45:00
Modified files: sys/sys : fcntl.h namei.h sys/kern : syscalls.master vfs_lookup.c vfs_syscalls.c exec_script.c sys/dev : diskmap.c Log message: Add new syscall entries to support the openat(2) family of functions added in POSIX Issue 7: openat(), mknodat(), mkfifoat(), linkat(), symlinkat(), unlinkat(), faccessat(), fstatat(), readlinkat(), fchmodat(), fchownat(), utimensat(), renameat(), and mkdirat(). This diff mostly just refactors the existing sys_foo() logic into a common dofooat() function that can then be called by both sys_foo() and sys_fooat(). Some of the new system calls support new flags to control their behavior, and proper support for these will be added in subsequent diffs. Incorporating suggestions from thib@, guenther@, and tedu@. ok tedu@, thib@, deraadt@, guenther@