Home | History | Annotate | Download | only in mips
History log of /src/sys/compat/linux/arch/mips/syscalls.master
RevisionDateAuthorComments
 1.83  01-Oct-2024  riastradh sys/compat/linux/arch/*/syscalls.master: Nix trailing whitespace.

No functional change intended.
 1.82  28-Sep-2024  christos Linux GSoC-2024: renameat2, clone3, sync_file_range, syncfs (Shivraj Jamgade)
 1.81  01-Jul-2024  christos Add linux POSIX message queue support (Ricardo Branco)
 1.80  29-Jun-2024  christos From gsoc 2024: Implement faccessat2 and getcpu (Shivraz)
 1.79  19-Aug-2023  christos Add inotify* syscalls GSoC 2023 (Theodore Preduta)
 1.78  18-Aug-2023  christos Add linux waitid(2) from GSoC 2023 (Theodore Preduta)
 1.77  29-Jul-2023  christos typo
 1.76  29-Jul-2023  christos Add/fix statx, readahead, close_range. From GSoC 2023 by Theodore Preduta
 1.75  28-Jul-2023  christos add epoll syscalls
 1.74  02-Dec-2021  ryo add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32
 1.73  24-Nov-2021  ryo add getrandom(2) syscall entry
 1.72  20-Sep-2021  thorpej Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.71  20-Sep-2021  thorpej Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.70  19-Sep-2021  thorpej Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32.
 1.69  19-Sep-2021  thorpej Add the POSIX timer syscalls (timer_create(), timer_settime(), timer_gettime(),
timer_getoverrun(), and timer_delete()) to COMPAT_LINUX and COMPAT_LINUX32.
 1.68  26-Apr-2020  thorpej branches: 1.68.2;
Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
 1.67  09-Nov-2019  jdolecek add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;
this is needed so that glibc falls back to emulation and apps behaving
properly, since EOPNOTSUPP is a documented and expected return code, but
ENOSYS is not

right now there are no filesystems in NetBSD tree supporting the fallocate
VOP, so no point trying to map this to a native call

supposed to help with problem reported in
https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html
 1.66  09-Feb-2017  christos branches: 1.66.14;
revert listen
 1.65  09-Feb-2017  christos fix listen
 1.64  04-Feb-2017  christos fix broken entries that prevented compilation.
 1.63  03-Feb-2017  christos add missing unimpl and sendmmsg and recvmmsg
 1.62  02-Feb-2017  christos implement accept4
XXX: mips looks busted (the syscalls file has lots of NOARGS syscalls that
should be STD).
 1.61  02-Jan-2017  manu branches: 1.61.2;
Add pselect6 Linux system call.
This lets Matlab R2016A run on NetBSD/amd64
 1.60  24-Jul-2016  njoly Small cleanup. Adjust readlink/readlinkat signatures to reduce diffs with
native.
 1.59  27-Oct-2015  njoly branches: 1.59.2;
Fix wrong gid types from previous.
 1.58  25-Oct-2015  njoly Cleanup posix chown family syscalls to match native (alpha, mips and
powerpc).
 1.57  22-Nov-2014  njoly branches: 1.57.2;
Fix ppoll signature (int ->u_int)
 1.56  31-May-2014  njoly branches: 1.56.2;
Fix munmap(2) signature.
 1.55  29-May-2014  njoly For utimes(2), use compat_50_sys_utimes() instead of local version.
 1.54  20-May-2014  njoly Fix getgroups/setgroups signature.
 1.53  17-May-2014  njoly Fix fadvise64 syscalls to use 64bit offset types.
 1.52  06-May-2014  njoly Reduce diffs between archs; make mknod device argument unsigned.
 1.51  04-May-2014  njoly Fix pread/pwrite syscalls which need a 64bit offset argument.
 1.50  08-Apr-2014  njoly Adjust read/write/readv/writev signature to match native versions.
 1.49  08-Dec-2013  njoly branches: 1.49.2;
Sprinkle a few more linux_umode_t where appropriate.
Reduce diffs between archs.
 1.48  19-Nov-2013  chs add the *at() syscalls.
 1.47  07-Nov-2013  njoly Fix dup/dup2/dup3 argument types (u_int -> int).
 1.46  24-Sep-2013  njoly Add utimensat(2) for compat linux.
 1.45  08-Apr-2013  pooka branches: 1.45.4;
support utimes on non-alpha linux platforms
 1.44  19-Sep-2012  pooka emulate ppoll which is essentially our pollts
 1.43  18-Nov-2011  christos branches: 1.43.10;
add sigtimedwait
 1.42  09-Jul-2011  christos branches: 1.42.2;
the first argument of {g,s}etitimer() is int not u_int.
 1.41  30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.40  15-Apr-2011  he Add dup3() and pipe2() for these archs as well.
 1.39  20-Feb-2011  matt Change some ints to longs (for LP64).
 1.38  07-Jul-2010  chs branches: 1.38.2; 1.38.4;
many changes for COMPAT_LINUX:
- update the linux syscall table for each platform.
- support new-style (NPTL) linux pthreads on all platforms.
clone() with CLONE_THREAD uses 1 process with many LWPs
instead of separate processes.
- move the contents of sys__lwp_setprivate() into a new
lwp_setprivate() and use that everywhere.
- update linux_release[] and linux32_release[] to "2.6.18".
- adjust placement of emul fork/exec/exit hooks as needed
and adjust other emul code to match.
- convert all struct emul definitions to use named initializers.
- change the pid allocator to allow multiple pids to refer to the same proc.
- remove a few fields from struct proc that are no longer needed.
- disable the non-functional "vdso" code in linux32/amd64,
glibc works fine without it.
- fix a race in the futex code where we could miss a wakeup after
a requeue operation.
- redo futex locking to be a little more efficient.
 1.37  24-Nov-2009  njoly branches: 1.37.2; 1.37.4;
Update personality(2) to match Linux definition where the argument is an
unsigned long.
 1.36  17-Jun-2009  njoly Add a new linux_msghdr structure, as its size differs on 64bit archs.
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
 1.35  08-Jun-2009  njoly Update rt_queueinfo(2) definition, and kill a corresponding comment.
 1.34  17-Jan-2009  njoly branches: 1.34.2;
Convert linux/linux32 wait(4) to use a compat50 rusage structure.
 1.33  15-Jan-2009  njoly Update some syscalls/arguments to use the new compat50 equivalents.
 1.32  13-Jan-2009  pooka Convert the syscalls.master to a format from which it is easier
to parse and generate the compat name and basename (e.g. __stat50
and stat). Use this to autogenerate __RENAME()'s to the rump_syscalls
header so that they can be called e.g. rump_sys_socket() instead
of rump_sys___socket30().
 1.31  19-Nov-2008  ad Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.30  12-Nov-2008  njoly Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep
syscall, but rather a modified version the will take care of `struct
timespec' conversions.
 1.29  23-Apr-2008  ad branches: 1.29.2; 1.29.4; 1.29.8; 1.29.10; 1.29.12;
-SYCALL_MPSAFE
 1.28  04-Apr-2008  njoly branches: 1.28.2;
Cleanup. Kill linux_sys_msync and use sys___msync13 instead.
No functional changes expected.
 1.27  24-Dec-2007  njoly branches: 1.27.6;
Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
 1.26  21-Dec-2007  njoly - Fix setfsuid to return uid on success.
- Replace getfsuid, which never existed on Linux, by correct setfsgid
syscall.

ok by christos and dsl.
 1.25  20-Dec-2007  dsl Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.24  16-Nov-2007  njoly branches: 1.24.2; 1.24.6;
Cleanup. Remove a few linux syscalls definitions, now identical to
native ones (with stackgap and ALT_CHECK_xxx removal). No functional
changes expected.
 1.23  04-Mar-2007  christos branches: 1.23.14; 1.23.16; 1.23.20; 1.23.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.22  09-Feb-2007  ad branches: 1.22.2;
Merge newlock2 to head.
 1.21  10-Jun-2006  christos branches: 1.21.6;
linux getpriority is off-by-20 so use our own function.
From PR/33671: Nicolas Joly
 1.20  11-Dec-2005  christos branches: 1.20.4; 1.20.8; 1.20.14;
merge ktrace-lwp.
 1.19  16-May-2005  fvdl branches: 1.19.2;
Add clock_* POSIX functions.
 1.18  16-May-2005  fvdl Add *xattr functions (they all return EOPNOTSUPP).
 1.17  26-Feb-2005  perry nuke trailing whitespace
 1.16  20-Sep-2004  jdolecek branches: 1.16.4; 1.16.6;
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.15  08-Sep-2004  jdolecek implement basic exit_group(2), which just terminates calling thread;
apparently not many apps use thread groups yet, at least not with default
SuSE 9.1 libraries, so this is enough for now
 1.14  01-Aug-2004  jdolecek sync the syscall lists with Linux kernel 2.6.7
 1.13  01-Aug-2004  jdolecek connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.12  10-Aug-2003  jdolecek add Linux compat arg wrapper for ftruncate64(), and change linux compat
truncate64() wrapper to translate args structure
NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have
to do the argument translation

Problem found and patch supplied in PR kern/22360 by Ales Krenek

This is the last of syscalls with hidden 'pad' arg we didn't have
wrapper for; all the others (lseek, mmap, pwrite, pread) already had
wrapper before.
 1.11  23-Jun-2003  christos branches: 1.11.2;
PR/21937: Todd Vierling: Proper support for mmap2
 1.10  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.9  10-Apr-2002  christos branches: 1.9.4;
add getdents64
 1.8  22-Mar-2002  christos add mprotect, nuke mmap2
 1.7  17-Feb-2002  rafal Use linux_sys_{g,s}etrlimit() since there's a common implementation now; but
MIPS has no sys_ugetrlimit, so don't declare it (209 is UNIMPL in the OSS
Linux-mips tree)
 1.6  15-Feb-2002  christos proper comment.
 1.5  15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.4  20-Nov-2001  manu branches: 1.4.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.3  06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2  30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1  22-Sep-2001  manu branches: 1.1.2;
More work on Linux compat for Mips: system calls mapping.
 1.1.2.9  29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.1.2.8  17-Apr-2002  nathanw Catch up to -current.
 1.1.2.7  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.6  28-Feb-2002  nathanw Catch up to -current.
 1.1.2.5  08-Jan-2002  nathanw Catch up to -current.
 1.1.2.4  22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3  08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2  26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1  22-Sep-2001  nathanw file syscalls.master was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2  01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1  30-Sep-2001  fvdl file syscalls.master was added on branch thorpej-devvp on 2001-10-01 12:43:41 +0000
 1.4.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1  20-Nov-2001  thorpej file syscalls.master was added on branch kqueue on 2002-01-10 19:51:35 +0000
 1.9.4.3  14-Jun-2004  jmc Pullup patch (requested by skrll in ticket #1708)

Bring netbsd-1-6 inline with -current sources after the mistakes in ticket #1686
 1.9.4.2  11-May-2004  tron Pull up revision 1.12 via patch (requested by wennmach in ticket #1686):
add Linux compat arg wrapper for ftruncate64(), and change linux compat
truncate64() wrapper to translate args structure
NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have
to do the argument translation
Problem found and patch supplied in PR kern/22360 by Ales Krenek
This is the last of syscalls with hidden 'pad' arg we didn't have
wrapper for; all the others (lseek, mmap, pwrite, pread) already had
wrapper before.
 1.9.4.1  22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.11.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.11.2.4  24-Sep-2004  skrll Sync with HEAD.
 1.11.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1  03-Aug-2004  skrll Sync with HEAD
 1.16.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.16.4.1  29-Apr-2005  kent sync with -current
 1.19.2.5  21-Jan-2008  yamt sync with head
 1.19.2.4  07-Dec-2007  yamt sync with head
 1.19.2.3  03-Sep-2007  yamt sync with head.
 1.19.2.2  26-Feb-2007  yamt sync with head.
 1.19.2.1  21-Jun-2006  yamt sync with head.
 1.20.14.1  19-Jun-2006  chap Sync with head.
 1.20.8.1  26-Jun-2006  yamt sync with head.
 1.20.4.1  09-Sep-2006  rpaulo sync with head
 1.21.6.1  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.22.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.23.22.2  27-Dec-2007  mjf Sync with HEAD.
 1.23.22.1  19-Nov-2007  mjf Sync with HEAD.
 1.23.20.1  18-Nov-2007  bouyer Sync with HEAD
 1.23.16.1  09-Jan-2008  matt sync with HEAD
 1.23.14.1  21-Nov-2007  joerg Sync with HEAD.
 1.24.6.1  02-Jan-2008  bouyer Sync with HEAD
 1.24.2.1  26-Dec-2007  ad Sync with head.
 1.27.6.2  17-Jan-2009  mjf Sync with HEAD.
 1.27.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.28.2.1  18-May-2008  yamt sync with head.
 1.29.12.1  20-Nov-2008  snj Pull up following revision(s) (requested by njoly in ticket #81):
sys/compat/linux/arch/mips/syscalls.master: revision 1.30
sys/compat/linux/arch/m68k/syscalls.master: revision 1.63
sys/compat/linux32/arch/amd64/syscalls.master: revision 1.39
sys/compat/linux/arch/alpha/syscalls.master: revision 1.63
sys/compat/linux/arch/powerpc/syscalls.master: revision 1.38
sys/compat/linux32/common/linux32_time.c: revision 1.22
sys/compat/linux/arch/amd64/syscalls.master: revision 1.25
sys/compat/linux/arch/i386/syscalls.master: revision 1.94
sys/compat/linux/arch/arm/syscalls.master: revision 1.36
sys/compat/linux/common/linux_time.c: revision 1.26
Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep
syscall, but rather a modified version the will take care of `struct
timespec' conversions.
 1.29.10.1  19-Jan-2009  skrll Sync with HEAD.
 1.29.8.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.29.4.2  14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.29.4.1  10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.29.2.4  11-Aug-2010  yamt sync with head.
 1.29.2.3  11-Mar-2010  yamt sync with head
 1.29.2.2  20-Jun-2009  yamt sync with head
 1.29.2.1  04-May-2009  yamt sync with head.
 1.34.2.1  23-Jul-2009  jym Sync with HEAD.
 1.37.4.3  31-May-2011  rmind sync with head
 1.37.4.2  21-Apr-2011  rmind sync with head
 1.37.4.1  05-Mar-2011  rmind sync with head
 1.37.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.38.4.1  05-Mar-2011  bouyer Sync with HEAD
 1.38.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.42.2.3  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.42.2.2  30-Oct-2012  yamt sync with head
 1.42.2.1  17-Apr-2012  yamt sync with head
 1.43.10.4  03-Dec-2017  jdolecek update from HEAD
 1.43.10.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.43.10.2  23-Jun-2013  tls resync from head
 1.43.10.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.45.4.1  18-May-2014  rmind sync with head
 1.49.2.1  10-Aug-2014  tls Rebase.
 1.56.2.1  17-Apr-2017  snj Pull up following revision(s) (requested by manu in ticket #1354):
sys/compat/linux/arch/alpha/syscalls.master: revision 1.92 via patch
sys/compat/linux/arch/amd64/syscalls.master: revision 1.58 via patch
sys/compat/linux/arch/arm/syscalls.master: revision 1.65 via patch
sys/compat/linux/arch/i386/syscalls.master: revision 1.122 via patch
sys/compat/linux/arch/m68k/syscalls.master: revision 1.91 via patch
sys/compat/linux/arch/mips/syscalls.master: revision 1.61 via patch
sys/compat/linux/arch/powerpc/syscalls.master: revision 1.70 via patch
sys/compat/linux/common/linux_misc.c: revision 1.234
sys/compat/linux/common/linux_signal.h: revision 1.31
Add pselect6 Linux system call.
This lets Matlab R2016A run on NetBSD/amd64
 1.57.2.4  28-Aug-2017  skrll Sync with HEAD
 1.57.2.3  05-Feb-2017  skrll Sync with HEAD
 1.57.2.2  05-Oct-2016  skrll Sync with HEAD
 1.57.2.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.59.2.3  20-Mar-2017  pgoyette Sync with HEAD
 1.59.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.59.2.1  26-Jul-2016  pgoyette Sync with HEAD
 1.61.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.66.14.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.68.2.2  17-Dec-2020  thorpej Add suppport for Linux preadv(2) and pwritev(2). Same as native, except
for the silly way that the offset argument is passed in.
 1.68.2.1  15-Dec-2020  thorpej Add Linux eventfd, timerfd, and POSIX timer calls.

RSS XML Feed