History log of /src/sys/compat/linux/common/linux_fcntl.h |
Revision | | Date | Author | Comments |
1.23 |
| 28-Sep-2024 |
christos | Linux GSoC-2024: renameat2, clone3, sync_file_range, syncfs (Shivraj Jamgade)
|
1.22 |
| 19-Aug-2023 |
christos | branches: 1.22.6; new inotify support GSoC 2023 (Theodore Preduta)
|
1.21 |
| 10-Jul-2023 |
christos | Add memfd_create(2) from GSoC 2023 by Theodore Preduta
|
1.20 |
| 25-Nov-2021 |
ryo | - Add compat_linux statx(2) syscall. - The AT_EMPTY_PATH processing from the modification of sys/compat/linux/common/linux_file64.c r1.63 has been separated, and made common to linux_statat(), so that it can be used not only by linux32_sys_fstatat64() but also by other *statat() variants.
|
1.19 |
| 23-Sep-2021 |
ryo | add support COMPAT_LINUX for aarch64
|
1.18 |
| 23-Aug-2019 |
maxv | When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later.
|
1.17 |
| 01-Mar-2015 |
njoly | branches: 1.17.10; 1.17.18; 1.17.22; Add Linux specific fcntl(2) commands. Support F_DUPFD_CLOEXEC.
|
1.16 |
| 01-Jun-2014 |
njoly | branches: 1.16.2; 1.16.4; 1.16.10; Cleanup pipe(2) flags, now that native handle them.
|
1.15 |
| 24-Sep-2013 |
njoly | branches: 1.15.2; Add utimensat(2) for compat linux.
|
1.14 |
| 28-Apr-2008 |
martin | branches: 1.14.34; 1.14.44; 1.14.50; Remove clause 3 and 4 from TNF licenses
|
1.13 |
| 21-Mar-2008 |
ad | branches: 1.13.2; 1.13.4; Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.12 |
| 02-Feb-2008 |
dsl | branches: 1.12.6; Fix the linux32 emulations of fcntl() locking. The 64bit linux emulation versions can't be used because the lock structure alignment and field sizes all differ. Since there need to be 4 different versions of the linux struct flock, and amd64 kernel needs 3 of them compiled in, rather than replicating the same code block twice more, move the body of the code into a few #defines that can be expanded with the correct types in the linux[32]_sys_fcntl[64]() functions. Should fix problems running progams like skype running under linux32 emulation on amd64.
|
1.11 |
| 11-Dec-2005 |
christos | branches: 1.11.46; 1.11.52; merge ktrace-lwp.
|
1.10 |
| 03-May-2005 |
manu | branches: 1.10.2; First work on COMPAT_LINUX/amd64 Process startup and dynamiclinking work, but processes hang due to Linux arch_prctl(2) not being really supported yet.
|
1.9 |
| 22-Mar-2002 |
christos | branches: 1.9.10; implement the locking calls for linux_file64.
|
1.8 |
| 14-Jan-2002 |
bjh21 | Crude first cut at ARMLinux binary compatibility. Successfully runs "/emul/linux/bin/echo hello, world", dynamically linked.
|
1.7 |
| 22-Sep-2001 |
manu | Enable Mips Linux emulation in header files
|
1.6 |
| 19-Jan-2001 |
manu | branches: 1.6.2; 1.6.4; 1.6.6; Added Linux compatibility support for powerpc ports
|
1.5 |
| 15-Dec-1998 |
itohy | branches: 1.5.8; Added linux compat support on m68k ports.
|
1.4 |
| 04-Oct-1998 |
fvdl | Assign my copyright to TNF. Merge with others were appropriate. Regen syscall files after script change.
|
1.3 |
| 03-Oct-1998 |
christos | Attempt to fix the mess.
|
1.2 |
| 01-Oct-1998 |
erh | Split linux_fcntl.h into i386 and common parts.
|
1.1 |
| 28-Feb-1995 |
fvdl | Added Linux compat code.
|
1.5.8.1 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.6.6.1 |
| 01-Oct-2001 |
fvdl | Catch up with -current.
|
1.6.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.6.4.2 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.6.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.6.2.3 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.6.2.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.6.2.1 |
| 26-Sep-2001 |
nathanw | Catch up to -current. Again.
|
1.9.10.1 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.10.2.2 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.10.2.1 |
| 04-Feb-2008 |
yamt | sync with head.
|
1.11.52.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.11.46.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.12.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.12.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.13.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.13.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.14.50.1 |
| 18-May-2014 |
rmind | sync with head
|
1.14.44.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.14.44.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.14.34.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.15.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.16.10.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1720:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 (patch) sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54 (patch)
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.16.4.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.16.2.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1720:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 (patch) sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54 (patch)
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.17.22.1 |
| 13-Sep-2019 |
martin | Pull up following revision(s) (requested by maxv in ticket #194):
sys/compat/linux/common/linux_socket.c: revision 1.146 sys/compat/linux/common/linux_socket.c: revision 1.147 sys/compat/linux/common/linux_socket.c: revision 1.148 sys/compat/linux/common/linux_socket.c: revision 1.149 sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.59 sys/compat/linux32/common/linux32_sysinfo.c: revision 1.8 sys/kern/sysv_shm.c: revision 1.138 sys/compat/linux/common/linux_file64.c: revision 1.61 sys/compat/linux/common/linux_file64.c: revision 1.62 sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.58 sys/compat/linux32/common/linux32_dirent.c: revision 1.20 sys/compat/linux32/common/linux32_utsname.c: revision 1.10 sys/compat/linux/common/linux_termios.h: revision 1.22 sys/compat/linux32/common/linux32_termios.c: revision 1.15 sys/compat/linux32/common/linux32_misc.c: revision 1.27 sys/compat/linux32/common/linux32_ioctl.c: revision 1.14 sys/compat/linux/common/linux_statfs.h: revision 1.7 sys/compat/linux/common/linux_ipc.c: revision 1.57 sys/compat/linux/common/linux_fcntl.h: revision 1.18 sys/compat/linux/common/linux_socket.h: revision 1.24 sys/sys/shm.h: revision 1.54 sys/compat/ossaudio/ossaudio.c: revision 1.75 sys/compat/linux32/common/linux32_signal.c: revision 1.20 sys/miscfs/procfs/procfs_linux.c: revision 1.75 sys/compat/linux/common/linux_signal.c: revision 1.81 sys/compat/linux/common/linux_termios.c: revision 1.38 sys/compat/linux/common/linux_misc.c: revision 1.241 sys/compat/linux/common/linux_misc.c: revision 1.242 sys/compat/linux/common/linux_misc.c: revision 1.243 sys/compat/linux/common/linux_misc.c: revision 1.244
Fix info leaks.
Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound (page fault) and there was no proper locking. Maybe we should just remove LINUX_SHM_STAT, like compat_linux32.
Remove printf.
When dealing with an unknown value, set -1, to prevent (harmless) uninitialized accesses later.
Add a default case, don't call sys_ioctl() with an uninitialized 'com' argument.
Fix error handling, returns an errno, not -1.
Put the printf under DEBUG_LINUX.
Hum, don't forget the 'pid' argument, otherwise we're not gonna go very far.
Don't read data from userland directly. This simply does not work on any recent x86 CPU (thanks to SMAP) and all architectures that forbid direct access to userland from the kernel. But I guess no one noticed because no one ever uses compat_linux, right?
Hum, don't pass an mbuf to realloc(). Inspired from copyin32_msg_control().
Fix memory leak.
I don't see the point in having this useless printf, but add a '\n' to it, so that it at least displays useless stuff correctly.
Hum, remove incorrect assignment. Userland could have passed a smaller namelen, and the uninitialized bytes from sb_data were being used later in the network stack.
|
1.17.18.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.17.10.1 |
| 21-Jan-2020 |
martin | Pull up the following, requested by christos in ticket #1487:
sys/compat/common/kern_sig_43.c 1.36 sys/compat/linux/arch/amd64/linux_machdep.c 1.59 sys/compat/linux/common/linux_fcntl.h 1.18 sys/compat/linux/common/linux_file64.c 1.62 sys/compat/linux/common/linux_ipc.c 1.57 sys/compat/linux/common/linux_misc.c 1.243 sys/compat/linux/common/linux_signal.c 1.81 sys/compat/linux/common/linux_socket.c 1.149 sys/compat/linux/common/linux_socket.h 1.24 sys/compat/linux/common/linux_statfs.h 1.7 sys/compat/linux/common/linux_termios.c 1.38 sys/compat/linux/common/linux_termios.h 1.22 sys/compat/linux32/common/linux32_dirent.c 1.20 sys/compat/linux32/common/linux32_ioctl.c 1.14 sys/compat/linux32/common/linux32_misc.c 1.27 sys/compat/linux32/common/linux32_signal.c 1.20 sys/compat/linux32/common/linux32_sysinfo.c 1.8 sys/compat/linux32/common/linux32_termios.c 1.15 sys/compat/linux32/common/linux32_utsname.c 1.10 sys/compat/netbsd32/netbsd32_compat_20.c 1.39 sys/compat/netbsd32/netbsd32_compat_43.c 1.59 sys/compat/netbsd32/netbsd32_compat_50.c 1.44 sys/compat/ossaudio/ossaudio.c 1.75 sys/kern/sysv_shm.c 1.138 sys/miscfs/procfs/procfs_linux.c 1.75 (patch) sys/sys/shm.h 1.54
Fix various info leaks, out of bound access, usage of uninitialized values and direct access to userland variables from kernel space and memory leaks in system calls implemented for the compatibility subsystems.
|
1.22.6.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|