History log of /freebsd-9.3-release/sys/compat/freebsd32/freebsd32_syscall.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 260221 03-Jan-2014 pluknet

Regen.


# 254665 22-Aug-2013 kib

Regenerate.


# 254399 16-Aug-2013 davidxu

Regen.


# 254398 16-Aug-2013 davidxu

MFC r239347, 240295, 240296 and 253325:

r239347 | davidxu | 2012-08-17 10:26:31 +0800 (Fri, 17 Aug 2012) | 7 lines

Implement syscall clock_getcpuclockid2, so we can get a clock id
for process, thread or others we want to support.
Use the syscall to implement POSIX API clock_getcpuclock and
pthread_getcpuclockid.

PR: 168417

------------------------------------------------------------------------
r240295 | davidxu | 2012-09-10 13:00:29 +0800 (Mon, 10 Sep 2012) | 2 lines

Add missing prototype for clock_getcpuclockid.

------------------------------------------------------------------------
r240296 | davidxu | 2012-09-10 13:09:39 +0800 (Mon, 10 Sep 2012) | 2 lines

Process CPU-Time Clocks option is supported, define _POSIX_CPUTIME.

------------------------------------------------------------------------
r253325 | kib | 2013-07-14 03:32:50 +0800 (Sun, 14 Jul 2013) | 6 lines

Allow to call clock_gettime() on the clock id for zombie process.

Reported by: Petr Salinger <Petr.Salinger@seznam.cz>
PR: threads/180496
Sponsored by: The FreeBSD Foundation


# 254131 09-Aug-2013 kib

Regenerate.


# 254129 09-Aug-2013 kib

Regenerate.


# 254127 09-Aug-2013 kib

Regenerate.


# 251052 28-May-2013 kib

Regenerate.


# 244174 13-Dec-2012 kib

Regenerate.


# 239581 22-Aug-2012 kib

Regen.


# 239576 22-Aug-2012 kib

Regen.


# 237134 15-Jun-2012 kib

MFC r226342 (by marcel):
In elf32_trans_prot() and when compiling for amd64 or ia64, add
PROT_EXECUTE when PROT_READ is needed. By default i386 allows
execution when reading is allowed and JDK 1.4.x depends on that.

MFC r226343 (by marcel):
In sys_obreak() and when compiling for amd64 or ia64, when the process
is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x
depends on being able to execute from the heap on i386.

MFC r226347 (by marcel):
In freebsd32_mmap() and when compiling for amd64 or ia64, also
ask for execute permissions when read permissions are wanted.
This is needed for JDK 1.4.x on i386.

MFC r226348 (by marcel):
Wrap mprotect(2).

MFC r226349 (by marcel):
Wrap mprotect(2) so that we can add execute permissions when read
permissions are requested. This is needed on amd64 and ia64 for
JDK 1.4.x.

MFC r226353 (by marcel):
Use PTRIN().

MFC r226388:
Control the execution permission of the readable segments for
i386 binaries on the amd64 and ia64 with the sysctl, instead of
unconditionally enabling it.

MFC note: the syscall tables were regenerated in r226349 and committed
together with changes to non-generated files. The merge includes
syscall tables regenerated after the merge, for stable/9.


# 229724 06-Jan-2012 jhb

Regen.


# 229513 04-Jan-2012 jhb

Regen.

Reminded by: kib


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 225618 16-Sep-2011 kmacy

Auto-generated code from sys_ prefixing makesyscalls.sh change

Approved by: re(bz)


# 224067 15-Jul-2011 jonathan

Auto-generated system call code with cap_new(), cap_getrights().

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc


# 223167 16-Jun-2011 kib

Regen.


# 220792 18-Apr-2011 mdf

Regen.


# 220239 01-Apr-2011 kib

Regen


# 220164 30-Mar-2011 trasz

Regenerate.


# 220159 30-Mar-2011 kib

Regen.


# 219305 05-Mar-2011 trasz

Regenerate.


# 219132 01-Mar-2011 rwatson

Regenerate system call files following addition of cap_enter(2),
cap_getmode(2), and capabilities.conf.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months


# 209581 28-Jun-2010 kib

Regenerate


# 205328 19-Mar-2010 kib

Regen


# 205016 11-Mar-2010 nwhitehorn

Regen after big endian compatibility import.


# 205014 11-Mar-2010 nwhitehorn

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

Reviewed by: kib, jhb


# 200112 04-Dec-2009 kib

Regenerate.


# 198512 27-Oct-2009 kib

Regenerate


# 197637 30-Sep-2009 rwatson

Regenerate system call files following r197636.


# 195469 08-Jul-2009 trasz

Regen the freebsd32 parts.

Approved by: re (kib)


# 194919 24-Jun-2009 jhb

Regen.


# 194647 22-Jun-2009 jhb

Regen.


# 194392 17-Jun-2009 jhb

Regen.


# 194263 15-Jun-2009 jhb

Regen.


# 193917 10-Jun-2009 kib

Regenerate


# 191675 29-Apr-2009 jamie

Regen for new jail system calls in r191673.

Approved by: bz (mentor)


# 190622 01-Apr-2009 kib

Regen


# 185879 10-Dec-2008 jhb

Regen.


# 185436 29-Nov-2008 bz

Regen after jail support was added in r185435.


# 184790 09-Nov-2008 ed

Regenerate system call tables for r184789.


# 184589 03-Nov-2008 dfr

Regen.


# 184184 22-Oct-2008 jhb

Regen for freebsd32_getdirentries().


# 183362 25-Sep-2008 jhb

Regen.


# 183271 22-Sep-2008 obrien

Regenerate for r183270.


# 183189 19-Sep-2008 obrien

Regenerate for r183188.


# 183043 15-Sep-2008 obrien

Regenerate for r183042.


# 182124 24-Aug-2008 rwatson

Regenerate following r182123.


# 181906 20-Aug-2008 ed

Update system call tables.

The previous commit also included changes to all the system call lists,
but it is a tradition to update these lists in a second commit, so rerun
make sysent to update the $FreeBSD$ tags inside these files to refer to
the latest version of syscalls.master.

Requested by: rwatson


# 181905 20-Aug-2008 ed

Integrate the new MPSAFE TTY layer to the FreeBSD operating system.

The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

The old TTY layer has a driver model that is not abstract enough to
make it friendly to use. A good example is the output path, where the
device drivers directly access the output buffers. This means that an
in-kernel PPP implementation must always convert network buffers into
TTY buffers.

If a PPP implementation would be built on top of the new TTY layer
(still needs a hooks layer, though), it would allow the PPP
implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

With the old TTY layer, it isn't entirely safe to destroy TTY's from
the system. This implementation has a two-step destructing design,
where the driver first abandons the TTY. After all threads have left
the TTY, the TTY layer calls a routine in the driver, which can be
used to free resources (unit numbers, etc).

The pts(4) driver also implements this feature, which means
posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

One of the major improvements is the per-TTY mutex, which is expected
to improve scalability when compared to the old Giant locking.
Another change is the unbuffered copying to userspace, which is both
used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from: //depot/projects/mpsafetty/...
Approved by: philip (ex-mentor)
Discussed: on the lists, at BSDCan, at the DevSummit
Sponsored by: Snow B.V., the Netherlands
dcons(4) fixed by: kan


# 180434 10-Jul-2008 brooks

Regen


# 177790 31-Mar-2008 kib

Regen


# 177634 26-Mar-2008 dfr

Regen.


# 177613 25-Mar-2008 jhb

Regen.


# 177091 12-Mar-2008 jeff

Remove kernel support for M:N threading.

While the KSE project was quite successful in bringing threading to
FreeBSD, the M:N approach taken by the kse library was never developed
to its full potential. Backwards compatibility will be provided via
libmap.conf for dynamically linked binaries and static binaries will
be broken.


# 176216 12-Feb-2008 ru

Regenerate for readlink(2).


# 175518 20-Jan-2008 rwatson

Regenerate.


# 175165 08-Jan-2008 jhb

Regen for shm_open(2) and shm_unlink(2).


# 174383 06-Dec-2007 jhb

Regen.


# 171861 16-Aug-2007 davidxu

Regenerate.

Approved by: re(kensmith)


# 171214 04-Jul-2007 peter

Regenerate after mmap/lseek/etc syscall changes

Approved by: re (kensmith)


# 165406 20-Dec-2006 jkim

Regen.


# 164199 11-Nov-2006 ru

Regen.

Forgotten by: trhodes


# 163961 03-Nov-2006 ru

Regen.


# 163956 03-Nov-2006 rrs

This commits the remake in kern/ make sysent to get
the correct syscalls.master's $FreeBSD$ tag record and
a make sysent in sys/compat/freebsd32. Thanks Ruslan
for pointing out the steps I missed :-0
Approved by: gnn


# 163664 24-Oct-2006 sobomax

Regen.


# 163658 24-Oct-2006 rwatson

Regenerate.


# 163451 17-Oct-2006 davidxu

Regenerate.


# 163047 06-Oct-2006 davidxu

Regenerate.


# 163020 04-Oct-2006 davidxu

Regenerate.


# 162993 03-Oct-2006 rwatson

Regenerate.


# 162566 22-Sep-2006 davidxu

Regenerate.


# 162552 22-Sep-2006 davidxu

Regenerate.


# 162537 21-Sep-2006 davidxu

Regenerate.


# 162502 21-Sep-2006 davidxu

Regenerate.


# 162374 17-Sep-2006 rwatson

Regenerate.


# 162167 08-Sep-2006 davidxu

The following functions need not to be reimplemented, reuse 64bit
syscalls instead:
sigqueue, thr_set_name, thr_setscheduler, thr_getscheduler,
thr_setschedparam.


# 161960 03-Sep-2006 rwatson

Regenerate.


# 161948 03-Sep-2006 rwatson

Regenerate. Looks like someone missed doing this previously as more than
just the audit event change appears in the diff.


# 161330 15-Aug-2006 jhb

Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier
systrace changes.


# 160799 28-Jul-2006 jhb

Regen for MPSAFE flag removal.


# 159983 27-Jun-2006 jhb

Regen.


# 159961 26-Jun-2006 jhb

Regen.


# 157286 30-Mar-2006 ps

regen for 32bit System V shared memory


# 156115 28-Feb-2006 ps

regen for 32bit sendfile


# 155295 04-Feb-2006 rwatson

Regenerate.


# 154587 20-Jan-2006 ambrisko

Regen.


# 153692 23-Dec-2005 ru

Regen.


# 153681 23-Dec-2005 phk

Regenerate sysent with new abort2 system call.

Implement abort2(const char *reason, int narg, void **args);

Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>


# 153248 08-Dec-2005 ambrisko

Regen for futimes.


# 151721 26-Oct-2005 peter

Regenerate (with the correct #ifdef COMPAT_43 tests now)


# 151583 23-Oct-2005 ps

regen


# 151360 15-Oct-2005 ps

regen after recvmsg, recvfrom, sendmsg


# 151358 15-Oct-2005 ps

regen for clock_gettime, clock_settime, clock_getres


# 151356 15-Oct-2005 ps

regen


# 150632 27-Sep-2005 peter

Regenerate


# 147975 13-Jul-2005 jhb

Regen.


# 147814 07-Jul-2005 jhb

Regenerate.

Approved by: re (scottl)


# 146807 30-May-2005 rwatson

Rebuild generated system call definition files following the addition of
the audit event field to the syscalls.master file format.

Submitted by: wsalamon
Obtained from: TrustedBSD Project


# 142874 01-Mar-2005 ps

Correct the freebsd32_kevent prototype.


# 142390 24-Feb-2005 jhb

Regen.


# 140482 19-Jan-2005 ps

Add a 32bit syscall wrapper for modstat

Obtained from: Yahoo!


# 140481 19-Jan-2005 ps

- rename nanosleep1 to kern_nanosleep
- Add a 32bit syscall entry for nanosleep

Reviewed by: peter
Obtained from: Yahoo!


# 139682 04-Jan-2005 jhb

Regenerate.


# 137877 18-Nov-2004 marks

Rebuild from compat/freebsd32/syscalls.master:1.43

Reviewed by: imp, phk, njl, peter
Approved by: njl


# 136834 23-Oct-2004 rwatson

Rebuild from FreeBSD32 syscalls.master:1.42.


# 136192 06-Oct-2004 mtm

Close a race between a thread exiting and the freeing of it's stack.
After some discussion the best option seems to be to signal the thread's
death from within the kernel. This requires that thr_exit() take an
argument.

Discussed with: davidxu, deischen, marcel
MFC after: 3 days


# 132127 13-Jul-2004 peter

Regen


# 132117 13-Jul-2004 phk

Give kldunload a -f(orce) argument.

Add a MOD_QUIESCE event for modules. This should return error (EBUSY)
of the module is in use.

MOD_UNLOAD should now only fail if it is impossible (as opposed to
inconvenient) to unload the module. Valid reasons are memory references
into the module which cannot be tracked down and eliminated.

When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is
not given, MOD_QUIESCE failing will also prevent the unload.

For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as
success.

Document that modules should return EOPNOTSUPP for unknown events.


# 131430 01-Jul-2004 marcel

Regen.


# 128261 14-Apr-2004 peter

Regen


# 127891 05-Apr-2004 dfr

Regen.


# 127484 27-Mar-2004 mtm

Regen for libthr thread synchronization syscalls.


# 126093 21-Feb-2004 peter

Regen (FWIW)


# 125371 03-Feb-2004 deischen

Regen.


# 125171 28-Jan-2004 peter

Regen


# 123756 23-Dec-2003 peter

Regen (should be a NOP except for rcsid)


# 123748 23-Dec-2003 peter

Regen


# 123745 23-Dec-2003 peter

Regen


# 123427 11-Dec-2003 peter

regen


# 123417 10-Dec-2003 peter

Regen


# 122302 08-Nov-2003 peter

Regen


# 122245 07-Nov-2003 jhb

Regen.


# 119332 22-Aug-2003 peter

Regen


# 119194 21-Aug-2003 peter

Regen


# 114988 14-May-2003 peter

Regen

Approved by: re (amd64 blanket)


# 114017 25-Apr-2003 jhb

Regen.


# 113989 24-Apr-2003 jhb

Regen.


# 107923 15-Dec-2002 marcel

Regen: swapoff


# 106993 16-Nov-2002 deischen

Regenerate after adding syscalls.


# 104741 09-Oct-2002 peter

re-regen. Sigh.


# 104739 09-Oct-2002 peter

regenerate. sendfile stuff and other recently picked up stubs.


# 103972 25-Sep-2002 archie

Make the following name changes to KSE related functions, etc., to better
represent their purpose and minimize namespace conflicts:

kse_fn_t -> kse_func_t
struct thread_mailbox -> struct kse_thr_mailbox
thread_interrupt() -> kse_thr_interrupt()
kse_yield() -> kse_release()
kse_new() -> kse_create()

Add missing declaration of kse_thr_interrupt() to <sys/kse.h>.
Regenerate the various generated syscall files. Minor style fixes.

Reviewed by: julian


# 100385 20-Jul-2002 peter

Regenerate


# 94380 10-Apr-2002 dfr

Initial support for executing IA-32 binaries. This will not compile
without a few patches for the rest of the kernel to allow the image
activator to override exec_copyout_strings and setregs.

None of the syscall argument translation has been done. Possibly, this
translation layer can be shared with any platform that wants to support
running ILP32 binaries on an LP64 host (e.g. sparc32 binaries?)