History log of /freebsd-current/sys/sys/sysproto.h
Revision Date Author Comments
# 5d88a2aa 15-Apr-2024 Brooks Davis <brooks@FreeBSD.org>

sysproto.h: sys/acl.h -> sys/types.h

In sysproto.h, stop including sys/acl.h as syscall defintions now use
__acl* types from sys/_types.h. Add sys/types.h to provide types
previously provided by sys/param.h (via sys/acl.h).

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44467


# e07d37c7 19-Mar-2024 Brooks Davis <brooks@FreeBSD.org>

sysent: regen


# 38bfddf5 19-Jan-2024 Konstantin Belousov <kib@FreeBSD.org>

regen


# 7893419d 04-Dec-2023 Brooks Davis <brooks@FreeBSD.org>

Remove never implemented sbrk and sstk syscalls

Both system calls were stubs returning EOPNOTSUPP and libc did not
provide _ or __sys_ prefixed symbols. The actual implementation of
sbrk(2) is on top of the undocumented break(2) system call.

Technically this is a change in ABI, but no non-contrived program ever
called these syscalls.

Reviewed by: kib, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D42872


# ab89c5f7 01-Dec-2023 Brooks Davis <brooks@FreeBSD.org>

sysproto.h: regen after c1c8afd04e34d


# af93fea7 23-Aug-2023 Jake Freeland <jfree@freebsd.org>

timerfd: Move implementation from linux compat to sys/kern

Move the timerfd impelemntation from linux compat code to sys/kern. Use
it to implement the new system calls for timerfd. Add a hook to kern_tc
to allow timerfd to know when the system time has stepped. Add kqueue
support to timerfd. Adjust a few names to be less Linux centric.

RelNotes: YES
Reviewed by: markj (on irc), imp, kib (with reservations), jhb (slack)
Differential Revision: https://reviews.freebsd.org/D38459


# c7df8720 22-Aug-2023 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 9121945d 09-Jun-2023 Warner Losh <imp@FreeBSD.org>

Regenerate sysent stuff after $FreeBSD$ removal

Sponsored by: Netflix


# 11cdffc6 31-Mar-2023 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 6a0a6345 25-Mar-2023 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 8601fca7 28-Mar-2022 Brooks Davis <brooks@FreeBSD.org>

sysent: regen for syscallarg_t


# 0910a41e 12-Jan-2022 Brooks Davis <brooks@FreeBSD.org>

Revert "syscallarg_t: Add a type for system call arguments"

Missed issues in truss on at least armv7 and powerpcspe need to be
resolved before recommit.

This reverts commit 3889fb8af0b611e3126dc250ebffb01805152104.
This reverts commit 1544e0f5d1f1e3b8c10a64cb899a936976ca7ea4.


# 3889fb8a 12-Jan-2022 Brooks Davis <brooks@FreeBSD.org>

sysent: regen for syscallarg_t


# b7c55487 08-Dec-2021 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 0e765d9b 29-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 401eec36 29-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 5c1835b1 29-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 7fb006e7 29-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# c2996f8a 29-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# d3308574 22-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# e58e9a8c 22-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 97e4bec5 22-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 85d1d2a6 17-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: use struct siginfo rather than siginfo_t

This allows freebsd32 to use struct siginfo32 with an automatable
conversion.

Reviewed by: kevans


# f5032882 17-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: fix type of osendmsg

osendmsg takes an struct omsghdr * not a void *.

Reviewed by: kevans


# 2385f4d1 17-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: use __socklen_t as appropriate

No functional change as __socklen_t is an int.

Obtained from: CheriBSD

Reviewed by: kevans


# b64f3dc2 17-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: [gs]etitimer takes an int which

Match the function decleration which takes an int not a signed int.
No functional change as the range of valid values is 0-2.

Obtained from: CheriBSD

Reviewed by: kevans


# b7fd8611 17-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: sprinkle in const values

Add missing const qualifiers to a number of syscall arguments.

Obtained from: CheriBSD

Reviewed by: kevans


# 3f8ced5b 15-Nov-2021 Brooks Davis <brooks@FreeBSD.org>

syscalls: regen


# 439c3d95 10-Nov-2021 Konstantin Belousov <kib@FreeBSD.org>

Regen


# da9fe352 04-Aug-2021 Ka Ho Ng <khng@FreeBSD.org>

Regen after 0dc332bff200


# 273728b1 27-Jul-2021 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 9f3d1a98 02-Jun-2021 Warner Losh <imp@FreeBSD.org>

regen after tweaks to getgroups and setgroups

Sponsored by: Netflix


# 20321e62 05-Jan-2021 Alan Somers <asomers@FreeBSD.org>

Regenerate syscall files after reallocation of aio_writev/aio_readv


# 1868a91f 02-Jan-2021 Alan Somers <asomers@FreeBSD.org>

Regenerate syscall files after addition of aio_writev/aio_readv


# 9dd48b87 26-Dec-2020 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# 0c5bd5f9 25-Sep-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Regen after r366145.

Sponsored by: DARPA


# f6e54eb3 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

sys: clean up empty lines in .c and .h files


# f4903a79 28-May-2020 Rick Macklem <rmacklem@FreeBSD.org>

Oops, missed syscall.h and sysproto.h for r361602.

Pointy hat goes on me.


# 2c9c433e 23-Apr-2020 Kyle Evans <kevans@FreeBSD.org>

sysent: re-roll after 360236 (AUE_CLOSERANGE used)


# e19b97f7 14-Apr-2020 Kyle Evans <kevans@FreeBSD.org>

sysent: re-roll after r359930


# 3d224fc9 12-Apr-2020 Kyle Evans <kevans@FreeBSD.org>

sysent: re-roll after introduction of close_range in r359836


# 65cdfb4c 20-Feb-2020 Mateusz Guzik <mjg@FreeBSD.org>

make sysent for r358172 ("vfs: add realpathat syscall")


# f88c67a6 09-Feb-2020 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# 4cc12fb8 18-Nov-2019 Kyle Evans <kevans@FreeBSD.org>

sysent: regenerate after r354835

The lua-based makesyscalls produces slightly different output than its
makesyscalls.sh predecessor, all whitespace differences more closely
matching the source syscalls.master.


# 2d5603fe 18-Nov-2019 David Bright <dab@FreeBSD.org>

Jail and capability mode for shm_rename; add audit support for shm_rename

Co-mingling two things here:

* Addressing some feedback from Konstantin and Kyle re: jail,
capability mode, and a few other things
* Adding audit support as promised.

The audit support change includes a partial refresh of OpenBSM from
upstream, where the change to add shm_rename has already been
accepted. Matthew doesn't plan to work on refreshing anything else to
support audit for those new event types.

Submitted by: Matthew Bryan <matthew.bryan@isilon.com>
Reviewed by: kib
Relnotes: Yes
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D22083


# c4571256 26-Sep-2019 David Bright <dab@FreeBSD.org>

sysent: regenerate after r352747.

Sponsored by: Dell EMC Isilon


# a9ac5e14 25-Sep-2019 Kyle Evans <kevans@FreeBSD.org>

sysent: regenerate after r352705

This also implements it, fixes kdump, and removes no longer needed bits from
lib/libc/sys/shm_open.c for the interim.


# 460211e7 25-Sep-2019 Kyle Evans <kevans@FreeBSD.org>

sysent: regenerate after r352700


# d19f028e 25-Sep-2019 Kyle Evans <kevans@FreeBSD.org>

sysent: regenerate after r352693


# d05b53e0 02-Sep-2019 Mateusz Guzik <mjg@FreeBSD.org>

Add sysctlbyname system call

Previously userspace would issue one syscall to resolve the sysctl and then
another one to actually use it. Do it all in one trip.

Fallback is provided in case newer libc happens to be running on an older
kernel.

Submitted by: Pawel Biernacki
Reported by: kib, brooks
Differential Revision: https://reviews.freebsd.org/D17282


# bf499e87 24-Jul-2019 Rick Macklem <rmacklem@FreeBSD.org>

Update the generated syscall files for copy_file_range(2) added by
r350315.


# 0e26cd44 07-May-2019 Ed Maste <emaste@FreeBSD.org>

make sysent after r347228

Regenerate to add @generated tag in generated files.


# a4890265 06-Apr-2019 Mariusz Zaborski <oshogbo@FreeBSD.org>

Regen after r345982.


# 90f2d501 31-Jan-2019 Brooks Davis <brooks@FreeBSD.org>

Regen after r342190.

Differential Revision: https://reviews.freebsd.org/D18444


# fd52edaf 07-Dec-2018 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# 94857412 04-Dec-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r341495: Remove NOARGS from oaccept.


# 63de13cf 04-Dec-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r341474: Normalize COMPAT_43 syscall declarations.


# 4b499c75 09-Nov-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r340302: Fix freebsd32 mknod(at).

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17928


# 938e8dcf 06-Nov-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r340199: Use declared types for caddr_t arguments.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17852


# 4e8c73eb 02-Nov-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r340080: Add const to input-only char * arguments.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17812


# f7e5ce32 01-Nov-2018 Brooks Davis <brooks@FreeBSD.org>

Regent after r340034: Use mode_t when the documented signature does.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17784


# c7864b97 22-Oct-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r339622.

Note: changes to freebsd32 syscalls.master impacted no generated files.


# c542c43e 16-Aug-2018 Jamie Gritton <jamie@FreeBSD.org>

Revert r337922, except for some documention-only bits. This needs to wait
until user is changed to stop using jail(2).

Differential Revision: D14791


# 284001a2 16-Aug-2018 Jamie Gritton <jamie@FreeBSD.org>

Put jail(2) under COMPAT_FREEBSD11. It has been the "old" way of creating
jails since FreeBSD 7.

Along with the system call, put the various security.jail.allow_foo and
security.jail.foo_allowed sysctls partly under COMPAT_FREEBSD11 (or
BURN_BRIDGES). These sysctls had two disparate uses: on the system side,
they were global permissions for jails created via jail(2) which lacked
fine-grained permission controls; inside a jail, they're read-only
descriptions of what the current jail is allowed to do. The first use
is obsolete along with jail(2), but keep them for the second-read-only use.

Differential Revision: D14791


# 7d87c005 14-Jun-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after 335177 (rename sys_obreak to sys_break).


# 659a2e92 25-May-2018 Brooks Davis <brooks@FreeBSD.org>

Regen after r334223: make vadvise compat freebsd11.


# 4948f7bf 20-Mar-2018 Conrad Meyer <cem@FreeBSD.org>

Regenerate sysent files after r331279.


# af80820a 12-Jan-2018 Jeff Roberson <jeff@FreeBSD.org>

Regenerate auto-generated files


# eb84ca64 16-Jun-2017 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# ec95c622 23-May-2017 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# a3b7d0fb 06-Apr-2017 Brooks Davis <brooks@FreeBSD.org>

Regen after r316594.


# d8ca0a2b 29-Mar-2017 Robert Watson <rwatson@FreeBSD.org>

Hook up new audit event identifiers for various non-Orange Book/CAPP
system calls supported by OpenBSM 1.2-alpha5.

Obtained from: TrustedBSD Project
MFC after: 3 weeks
Sponsored by: DARPA, AFRL


# 26f86ab7 18-Mar-2017 Eric van Gyzen <vangyzen@FreeBSD.org>

Regenerate syscall files for r315526

Sponsored by: Dell EMC


# bb9b7104 10-Feb-2017 John Baldwin <jhb@FreeBSD.org>

Regenerate all the system call tables to drop "created from" lines.

One of the ibcs2 files contains some actual changes (new headers) as
it hasn't been regenerated after older changes to makesyscalls.sh.


# 1fabda45 27-Dec-2016 John Baldwin <jhb@FreeBSD.org>

Regen after r310638.

Differential Revision: https://reviews.freebsd.org/D8854


# 52b42f62 07-Dec-2016 Robert Watson <rwatson@FreeBSD.org>

Regnerate system-call definitions following r309677 correcting a whitespace
glitch in syscalls.master.


# 3e7e2333 18-Aug-2016 George V. Neville-Neil <gnn@FreeBSD.org>

Remove the obsolete and unused openbsd_poll system call. (Phase 2)

Reported by: brooks
Reviewed by: brooks, jhb
Differential Revision: https://reviews.freebsd.org/D7548


# 1d2537a2 15-Aug-2016 Konstantin Belousov <kib@FreeBSD.org>

Regen after r304176, fdatasync(2) addition.


# c1fa4404 04-Aug-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Regenerate after r303755.

MFC after: 3 days
X-MFC-With: r303755
Sponsored by: EMC / Isilon Storage Division


# e938ebbc 03-Aug-2016 Ed Schouten <ed@FreeBSD.org>

Regenerate system call tables for r303699 and r303700.


# 5590eb98 27-Jul-2016 Ed Schouten <ed@FreeBSD.org>

Regenerate system call table for r303435.


# e5ec7339 10-Jul-2016 Robert Watson <rwatson@FreeBSD.org>

Do allow auditing of read(2) and write(2) system calls, by assigning
those system calls audit event identifiers AUE_READ and AUE_WRITE.
While auditing file-descriptor I/O is not required by the Common
Criteria, in practice this proves useful for both live and forensic
analysis.

NB: freebsd32 already assigns AUE_READ and AUE_WRITE to read(2) and
write(2).

MFC after: 3 days
Sponsored by: DARPA, AFRL


# a72c64b0 22-Jun-2016 Brooks Davis <brooks@FreeBSD.org>

Generate syscall tables and update pipe() implementation after r302094.

Mark the pipe() system call as COMPAT10.

As of r302092 libc uses pipe2() with a zero flags value instead of pipe().

Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D6816


# 70f52fd6 21-Mar-2016 John Baldwin <jhb@FreeBSD.org>

Regen.


# 8d91aced 09-Mar-2016 John Baldwin <jhb@FreeBSD.org>

Regen.


# ea7b054e 22-Oct-2015 John Baldwin <jhb@FreeBSD.org>

Missing regen after last change to sys/kern/syscalls.master.


# 871ef8b0 11-Jul-2015 Adrian Chadd <adrian@FreeBSD.org>

Regenerate syscalls.


# 8103a8f6 18-Apr-2015 Konstantin Belousov <kib@FreeBSD.org>

Regen.


# 2b35e6a9 23-Jan-2015 Jilles Tjoelker <jilles@FreeBSD.org>

Run make sysent.


# 1beb1a8e 04-Jan-2015 Dmitry Chagin <dchagin@FreeBSD.org>

Regen for r276654 (__getcwd()).


# c28d9d0f 12-Nov-2014 Dmitry Chagin <dchagin@FreeBSD.org>

Regen for r274462.


# 2e763450 09-Oct-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Regenerate after r272823:
Move the SCTP syscalls to netinet with the rest of the SCTP code.

Submitted by: Steve Kiernan <stevek@juniper.net>
Reviewed by: tuexen, rrs
Obtained from: Juniper Networks, Inc.


# 4f11a684 18-Mar-2014 Attilio Rao <attilio@FreeBSD.org>

Regen per r263318.

Sponsored by: EMC / Isilon storage division


# a566e8e3 19-Sep-2013 John Baldwin <jhb@FreeBSD.org>

Regen.

Approved by: re (delphij)


# eb2e5544 12-Sep-2013 John Baldwin <jhb@FreeBSD.org>

Regen.

Approved by: re (kib)


# 00a7f703 04-Sep-2013 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Regenerate after r255219.

Sponsored by: The FreeBSD Foundation


# 8d1aa3c6 08-Jun-2013 Gleb Smirnoff <glebius@FreeBSD.org>

aio_mlock() added:
- Regen for r251526.
- Bump __FreeBSD_version.


# f85769eb 21-May-2013 Konstantin Belousov <kib@FreeBSD.org>

Regenerate.


# b201f4a0 01-May-2013 Jilles Tjoelker <jilles@FreeBSD.org>

Regenerate files for pipe2().


# 1bf6b724 01-May-2013 Jilles Tjoelker <jilles@FreeBSD.org>

Regenerate files for accept4().


# b3e6bbc6 01-Apr-2013 Matthew D Fleming <mdf@FreeBSD.org>

Regen.

MFC after: 1 week


# 5d463824 21-Mar-2013 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Regenerate after r248599.

Sponsored by: The FreeBSD Foundation


# 14cd1ffd 21-Mar-2013 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Regenerate after r248597.

Sponsored by: The FreeBSD Foundation


# 378a73d1 02-Mar-2013 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Regen after r247667.


# 1dc31587 01-Mar-2013 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Regen after r247602.


# 552e9935 12-Nov-2012 Konstantin Belousov <kib@FreeBSD.org>

Regen


# e31eb35c 16-Aug-2012 David Xu <davidxu@FreeBSD.org>

regen.


# d65f1abc 16-Aug-2012 David Xu <davidxu@FreeBSD.org>

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


# 4412ad48 25-May-2012 Ed Schouten <ed@FreeBSD.org>

Regenerate system call tables.


# cf13a585 20-Nov-2011 Lawrence Stewart <lstewart@FreeBSD.org>

- Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate()
system calls to provide feed-forward clock management capabilities to
userspace processes. ffclock_getcounter() returns the current value of the
kernel's feed-forward clock counter. ffclock_getestimate() returns the current
feed-forward clock parameter estimates and ffclock_setestimate() updates the
feed-forward clock parameter estimates.

- Document the syscalls in the ffclock.2 man page.

- Regenerate the script-derived syscall related files.

Committed on behalf of Julien Ridoux and Darryl Veitch from the University of
Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward
Clock Synchronization Algorithms" project.

For more information, see http://www.synclab.org/radclock/

Submitted by: Julien Ridoux (jridoux at unimelb edu au)


# 51cfb947 18-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Regenerate system call tables.


# cd06ae5c 03-Nov-2011 John Baldwin <jhb@FreeBSD.org>

Regen.


# 9eca9361 16-Sep-2011 Kip Macy <kmacy@FreeBSD.org>

Auto-generated code from sys_ prefixing makesyscalls.sh change

Approved by: re(bz)


# f8ca0a75 18-Aug-2011 Jonathan Anderson <jonathan@FreeBSD.org>

Auto-generated system call code based on r224987.

Approved by: re (implicit)


# 74536edd 12-Aug-2011 Robert Watson <rwatson@FreeBSD.org>

Regenerate system call files following r224812 changes to capabilities.conf.
A no-op for non-Capsicum kernels; for Capsicum kernels, completes the
enabling of fooat(2) system calls using capabilities. With this change,
and subject to bug fixes, Capsicum capability support is now complete for
9.0.

Approved by: re (kib)
Submitted by: jonathan
Sponsored by: Google Inc


# 63ba8b5e 15-Jul-2011 Jonathan Anderson <jonathan@FreeBSD.org>

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

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


# 7323776b 18-Apr-2011 Matthew D Fleming <mdf@FreeBSD.org>

Regen.


# 66db16fc 30-Mar-2011 Edward Tomasz Napierala <trasz@FreeBSD.org>

Regenerate.


# e7767093 04-Mar-2011 Edward Tomasz Napierala <trasz@FreeBSD.org>

Regenerate.


# ddfe0c2b 01-Mar-2011 Robert Watson <rwatson@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# e7fb6634 30-Aug-2010 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 13cedde2 28-Jun-2010 Konstantin Belousov <kib@FreeBSD.org>

Regenerate


# 0ae9845d 19-Dec-2009 Konstantin Belousov <kib@FreeBSD.org>

Regen


# 8ffab864 16-Dec-2009 Warner Losh <imp@FreeBSD.org>

Revert 200606.


# 42b3331b 16-Dec-2009 Warner Losh <imp@FreeBSD.org>

Fix compiling FREEBSD_COMPAT[4,5,6] without FREEBSD_COMPAT7.

Note: Not sure this is the right way to do compat, but it makes the
headers consistent with the implementations.


# a43ee308 13-Dec-2009 Robert Watson <rwatson@FreeBSD.org>

Regenerate sysent files after r200491.


# 550ca2a8 27-Oct-2009 Konstantin Belousov <kib@FreeBSD.org>

Regenerate


# 718dbcfe 30-Sep-2009 Robert Watson <rwatson@FreeBSD.org>

Regenerate system call files following r197636.


# edefbdd7 10-Sep-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

If a certain feature that was present in FreeBSD 7 was removed or changed in
FreeBSD 8, the compatibility shims should be built not just when FreeBSD 7
compatibility is requested, but also when compatibility with any older
FreeBSD version where that feature was present is requested.o

Without this patch, a kernel config that sets COMPAT_FREEBSD6 but not *7
would fail to build due to inconsistencies between the declaration of the
compatibility shims and their use in the SysV code.

There are similar errors in other *proto.h headers in the tree.

MFC after: 3 weeks


# e2b881bf 08-Jul-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Regenerate after lpathconf(2) addition.

Approved by: re (kib)


# 3899e0df 24-Jun-2009 John Baldwin <jhb@FreeBSD.org>

Regen.


# e47a833f 22-Jun-2009 John Baldwin <jhb@FreeBSD.org>

Regen.


# 4b7b144f 17-Jun-2009 John Baldwin <jhb@FreeBSD.org>

Regen.


# 6653a583 15-Jun-2009 John Baldwin <jhb@FreeBSD.org>

Regen.


# fe2f3c65 29-Apr-2009 Jamie Gritton <jamie@FreeBSD.org>

Regen for new jail system calls in r191673.

Approved by: bz (mentor)


# ebb45b06 09-Nov-2008 Ed Schouten <ed@FreeBSD.org>

Regenerate system call tables for r184789.


# 45e6ab7f 03-Nov-2008 Doug Rabson <dfr@FreeBSD.org>

Regen.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 74d9b5a5 25-Sep-2008 John Baldwin <jhb@FreeBSD.org>

Regen.


# 5ae50405 24-Aug-2008 Robert Watson <rwatson@FreeBSD.org>

Regenerate following r182123.


# 18cf1354 20-Aug-2008 Ed Schouten <ed@FreeBSD.org>

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


# bc093719 20-Aug-2008 Ed Schouten <ed@FreeBSD.org>

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


# 8b07e49a 09-May-2008 Julian Elischer <julian@FreeBSD.org>

Add code to allow the system to handle multiple routing tables.
This particular implementation is designed to be fully backwards compatible
and to be MFC-able to 7.x (and 6.x)

Currently the only protocol that can make use of the multiple tables is IPv4
Similar functionality exists in OpenBSD and Linux.

From my notes:

-----

One thing where FreeBSD has been falling behind, and which by chance I
have some time to work on is "policy based routing", which allows
different
packet streams to be routed by more than just the destination address.

Constraints:
------------

I want to make some form of this available in the 6.x tree
(and by extension 7.x) , but FreeBSD in general needs it so I might as
well do it in -current and back port the portions I need.

One of the ways that this can be done is to have the ability to
instantiate multiple kernel routing tables (which I will now
refer to as "Forwarding Information Bases" or "FIBs" for political
correctness reasons). Which FIB a particular packet uses to make
the next hop decision can be decided by a number of mechanisms.
The policies these mechanisms implement are the "Policies" referred
to in "Policy based routing".

One of the constraints I have if I try to back port this work to
6.x is that it must be implemented as a EXTENSION to the existing
ABIs in 6.x so that third party applications do not need to be
recompiled in timespan of the branch.

This first version will not have some of the bells and whistles that
will come with later versions. It will, for example, be limited to 16
tables in the first commit.
Implementation method, Compatible version. (part 1)
-------------------------------
For this reason I have implemented a "sufficient subset" of a
multiple routing table solution in Perforce, and back-ported it
to 6.x. (also in Perforce though not always caught up with what I
have done in -current/P4). The subset allows a number of FIBs
to be defined at compile time (8 is sufficient for my purposes in 6.x)
and implements the changes needed to allow IPV4 to use them. I have not
done the changes for ipv6 simply because I do not need it, and I do not
have enough knowledge of ipv6 (e.g. neighbor discovery) needed to do it.

Other protocol families are left untouched and should there be
users with proprietary protocol families, they should continue to work
and be oblivious to the existence of the extra FIBs.

To understand how this is done, one must know that the current FIB
code starts everything off with a single dimensional array of
pointers to FIB head structures (One per protocol family), each of
which in turn points to the trie of routes available to that family.

The basic change in the ABI compatible version of the change is to
extent that array to be a 2 dimensional array, so that
instead of protocol family X looking at rt_tables[X] for the
table it needs, it looks at rt_tables[Y][X] when for all
protocol families except ipv4 Y is always 0.
Code that is unaware of the change always just sees the first row
of the table, which of course looks just like the one dimensional
array that existed before.

The entry points rtrequest(), rtalloc(), rtalloc1(), rtalloc_ign()
are all maintained, but refer only to the first row of the array,
so that existing callers in proprietary protocols can continue to
do the "right thing".
Some new entry points are added, for the exclusive use of ipv4 code
called in_rtrequest(), in_rtalloc(), in_rtalloc1() and in_rtalloc_ign(),
which have an extra argument which refers the code to the correct row.

In addition, there are some new entry points (currently called
rtalloc_fib() and friends) that check the Address family being
looked up and call either rtalloc() (and friends) if the protocol
is not IPv4 forcing the action to row 0 or to the appropriate row
if it IS IPv4 (and that info is available). These are for calling
from code that is not specific to any particular protocol. The way
these are implemented would change in the non ABI preserving code
to be added later.

One feature of the first version of the code is that for ipv4,
the interface routes show up automatically on all the FIBs, so
that no matter what FIB you select you always have the basic
direct attached hosts available to you. (rtinit() does this
automatically).

You CAN delete an interface route from one FIB should you want
to but by default it's there. ARP information is also available
in each FIB. It's assumed that the same machine would have the
same MAC address, regardless of which FIB you are using to get
to it.

This brings us as to how the correct FIB is selected for an outgoing
IPV4 packet.

Firstly, all packets have a FIB associated with them. if nothing
has been done to change it, it will be FIB 0. The FIB is changed
in the following ways.

Packets fall into one of a number of classes.

1/ locally generated packets, coming from a socket/PCB.
Such packets select a FIB from a number associated with the
socket/PCB. This in turn is inherited from the process,
but can be changed by a socket option. The process in turn
inherits it on fork. I have written a utility call setfib
that acts a bit like nice..

setfib -3 ping target.example.com # will use fib 3 for ping.

It is an obvious extension to make it a property of a jail
but I have not done so. It can be achieved by combining the setfib and
jail commands.

2/ packets received on an interface for forwarding.
By default these packets would use table 0,
(or possibly a number settable in a sysctl(not yet)).
but prior to routing the firewall can inspect them (see below).
(possibly in the future you may be able to associate a FIB
with packets received on an interface.. An ifconfig arg, but not yet.)

3/ packets inspected by a packet classifier, which can arbitrarily
associate a fib with it on a packet by packet basis.
A fib assigned to a packet by a packet classifier
(such as ipfw) would over-ride a fib associated by
a more default source. (such as cases 1 or 2).

4/ a tcp listen socket associated with a fib will generate
accept sockets that are associated with that same fib.

5/ Packets generated in response to some other packet (e.g. reset
or icmp packets). These should use the FIB associated with the
packet being reponded to.

6/ Packets generated during encapsulation.
gif, tun and other tunnel interfaces will encapsulate using the FIB
that was in effect withthe proces that set up the tunnel.
thus setfib 1 ifconfig gif0 [tunnel instructions]
will set the fib for the tunnel to use to be fib 1.

Routing messages would be associated with their
process, and thus select one FIB or another.
messages from the kernel would be associated with the fib they
refer to and would only be received by a routing socket associated
with that fib. (not yet implemented)

In addition Netstat has been edited to be able to cope with the
fact that the array is now 2 dimensional. (It looks in system
memory using libkvm (!)). Old versions of netstat see only the first FIB.

In addition two sysctls are added to give:
a) the number of FIBs compiled in (active)
b) the default FIB of the calling process.

Early testing experience:
-------------------------

Basically our (IronPort's) appliance does this functionality already
using ipfw fwd but that method has some drawbacks.

For example,
It can't fully simulate a routing table because it can't influence the
socket's choice of local address when a connect() is done.

Testing during the generating of these changes has been
remarkably smooth so far. Multiple tables have co-existed
with no notable side effects, and packets have been routes
accordingly.

ipfw has grown 2 new keywords:

setfib N ip from anay to any
count ip from any to any fib N

In pf there seems to be a requirement to be able to give symbolic names to the
fibs but I do not have that capacity. I am not sure if it is required.

SCTP has interestingly enough built in support for this, called VRFs
in Cisco parlance. it will be interesting to see how that handles it
when it suddenly actually does something.

Where to next:
--------------------

After committing the ABI compatible version and MFCing it, I'd
like to proceed in a forward direction in -current. this will
result in some roto-tilling in the routing code.

Firstly: the current code's idea of having a separate tree per
protocol family, all of the same format, and pointed to by the
1 dimensional array is a bit silly. Especially when one considers that
there is code that makes assumptions about every protocol having the
same internal structures there. Some protocols don't WANT that
sort of structure. (for example the whole idea of a netmask is foreign
to appletalk). This needs to be made opaque to the external code.

My suggested first change is to add routing method pointers to the
'domain' structure, along with information pointing the data.
instead of having an array of pointers to uniform structures,
there would be an array pointing to the 'domain' structures
for each protocol address domain (protocol family),
and the methods this reached would be called. The methods would have
an argument that gives FIB number, but the protocol would be free
to ignore it.

When the ABI can be changed it raises the possibilty of the
addition of a fib entry into the "struct route". Currently,
the structure contains the sockaddr of the desination, and the resulting
fib entry. To make this work fully, one could add a fib number
so that given an address and a fib, one can find the third element, the
fib entry.

Interaction with the ARP layer/ LL layer would need to be
revisited as well. Qing Li has been working on this already.

This work was sponsored by Ironport Systems/Cisco

Reviewed by: several including rwatson, bz and mlair (parts each)
Obtained from: Ironport systems/Cisco


# f2296b58 30-Mar-2008 Konstantin Belousov <kib@FreeBSD.org>

Regen


# a7ac0db6 26-Mar-2008 Doug Rabson <dfr@FreeBSD.org>

Regen.


# b2798e25 25-Mar-2008 Ruslan Ermilov <ru@FreeBSD.org>

Regen after changing prototypes of cpuset_{get,set}affinity().


# 6617724c 12-Mar-2008 Jeff Roberson <jeff@FreeBSD.org>

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.


# 4da2b9d4 02-Mar-2008 Jeff Roberson <jeff@FreeBSD.org>

- Regen for cpuset

Sponsored by: Nokia


# b95bd24d 12-Feb-2008 Ruslan Ermilov <ru@FreeBSD.org>

Regenerate for readlink(2).


# 20c6fe82 20-Jan-2008 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# 4ad6d200 08-Jan-2008 John Baldwin <jhb@FreeBSD.org>

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


# 6ec46f7a 15-Aug-2007 David Xu <davidxu@FreeBSD.org>

Regenerate.

Approved by: re(kensmith)


# 552fbe75 04-Jul-2007 Peter Wemm <peter@FreeBSD.org>

Regenerate after mmap/lseek/etc syscall changes.

Approved by: re (kensmith)


# 564739a2 11-Nov-2006 Ruslan Ermilov <ru@FreeBSD.org>

Regen (cosmetics in sys/sysproto.h).


# 6aeb05d7 11-Nov-2006 Tom Rhodes <trhodes@FreeBSD.org>

Merge posix4/* into normal kernel hierarchy.

Reviewed by: glanced at by jhb
Approved by: silence on -arch@ and -standards@


# af998510 03-Nov-2006 Randall Stewart <rrs@FreeBSD.org>

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


# f8829a4a 03-Nov-2006 Randall Stewart <rrs@FreeBSD.org>

Ok, here it is, we finally add SCTP to current. Note that this
work is not just mine, but it is also the works of Peter Lei
and Michael Tuexen. They both are my two key other developers
working on the project.. and they need ata-boy's too:
****
peterlei@cisco.com
tuexen@fh-muenster.de
****
I did do a make sysent which updated the
syscall's and sysproto.. I hope that is correct... without
it you don't build since we have new syscalls for SCTP :-0

So go out and look at the NOTES, add
option SCTP (make sure inet and inet6 are present too)
and play with SCTP.

I will see about comitting some test tools I have after I
figure out where I should place them. I also have a
lib (libsctp.a) that adds some of the missing socketapi
functions that I need to put into lib's.. I will talk
to George about this :-)

There may still be some 64 bit issues in here, none of
us have a 64 bit processor to test with yet.. Michael
may have a MAC but thats another beast too..

If you have a mac and want to use SCTP contact Michael
he maintains a web site with a loadable module with
this code :-)

Reviewed by: gnn
Approved by: gnn


# 034b26fc 16-Oct-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# 531147aa 03-Oct-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# cca0a557 20-Sep-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# da7cbdc2 17-Sep-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# 89ede214 03-Sep-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate for updated audit event identifiers.


# 863ccba5 03-Sep-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# cd42ca3c 27-Aug-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# f8f1f7fb 15-Aug-2006 John Baldwin <jhb@FreeBSD.org>

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


# 4657002e 02-Aug-2006 David Xu <davidxu@FreeBSD.org>

don't include sys/thr.h and sys/umtx.h, it is unnecessary.


# 91ce2694 28-Jul-2006 John Baldwin <jhb@FreeBSD.org>

Regen for MPSAFE flag removal.


# ba493ceb 13-Jul-2006 David Xu <davidxu@FreeBSD.org>

regenerate.


# 90aff9de 11-Jul-2006 John Baldwin <jhb@FreeBSD.org>

Regen.


# 761aed36 05-Jul-2006 Wayne Salamon <wsalamon@FreeBSD.org>

Regen the system calls files, picking up the extended attr events, and some
mount-related changes done previously.

Approved by: rwatson (mentor)


# 867c089b 28-Mar-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

Revert previous commit at davidxu's insistance. Instead, use __DECONST
(argh!) and rearrange the prototypes to make it clear that _umtx_op()
is not deprecated.


# b3efbabe 28-Mar-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

The undocumented and deprecated system call _umtx_op() takes two pointer
arguments. The first one is never used (all callers pass in 0); the
second is sometimes used to pass in a struct timespec * which is used as
a timeout and never modified. Constify that argument so callers can pass
a const struct timespec * without jumping through hoops.


# 177e987e 23-Mar-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# 80452384 28-Feb-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# 9653775b 05-Feb-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# 25c926f1 04-Feb-2006 David Xu <davidxu@FreeBSD.org>

Regenerate.


# d7bd3313 03-Feb-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# 06f2859f 01-Feb-2006 Robert Watson <rwatson@FreeBSD.org>

Regenerate.


# 4ca4c9ee 21-Jan-2006 David Xu <davidxu@FreeBSD.org>

Regen.


# 25f6e35a 23-Dec-2005 Poul-Henning Kamp <phk@FreeBSD.org>

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>


# 6829585c 26-Nov-2005 David Xu <davidxu@FreeBSD.org>

Regen.


# 7023331e 25-Nov-2005 David Xu <davidxu@FreeBSD.org>

Regen.


# 01790d85 29-Oct-2005 David Xu <davidxu@FreeBSD.org>

Regen.


# e706ee8a 22-Oct-2005 David Xu <davidxu@FreeBSD.org>

Regen for POSIX timer syscalls.


# dbe16e65 18-Oct-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Regenerate.


# 823acd70 13-Oct-2005 David Xu <davidxu@FreeBSD.org>

Regen for sigqueue syscall.


# 6acd4b61 27-Sep-2005 Christian S.J. Peron <csjp@FreeBSD.org>

Update the "created from" section to reflect the most recent version of
syscalls.master

Requested by: jhb


# 522ccb23 08-Jul-2005 John Baldwin <jhb@FreeBSD.org>

Regen.

Approved by: re (scottl)


# 9f3157a2 07-Jul-2005 John Baldwin <jhb@FreeBSD.org>

Regenerate.

Approved by: re (scottl)


# 3984b232 30-May-2005 Robert Watson <rwatson@FreeBSD.org>

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


# 0cc00905 28-May-2005 Robert Watson <rwatson@FreeBSD.org>

Regenerate from syscalls.master.


# 7329f580 28-May-2005 Robert Watson <rwatson@FreeBSD.org>

Regenerate for updated syscalls.master.


# 958a52b8 28-May-2005 Robert Watson <rwatson@FreeBSD.org>

Regenerate from syscalls.master.


# a72baeca 28-May-2005 Robert Watson <rwatson@FreeBSD.org>

Regenerate from updated syscalls.master.


# 848c3ec3 28-May-2005 Robert Watson <rwatson@FreeBSD.org>

Regenerate system call tables from syscalls.master.


# 40f2d4da 22-Apr-2005 David Xu <davidxu@FreeBSD.org>

Regen.


# c1aa81b6 01-Mar-2005 Paul Saab <ps@FreeBSD.org>

regen


# e1279468 24-Jan-2005 Jeff Roberson <jeff@FreeBSD.org>

- Regen for recent vfs syscall changes.

Sponsored By: Isilon Systems, Inc.


# 3195113e 02-Jan-2005 Marcel Moolenaar <marcel@FreeBSD.org>

Regen.


# c180db2b 25-Dec-2004 David Xu <davidxu@FreeBSD.org>

Make _umtx_op() as more general interface, the final parameter needn't be
timespec pointer, every parameter will be interpreted by its opcode.


# 50586e8b 17-Dec-2004 David Xu <davidxu@FreeBSD.org>

1. make umtx sharable between processes, the way is two or more processes
call mmap() to create a shared space, and then initialize umtx on it,
after that, each thread in different processes can use the umtx same
as threads in same process.
2. introduce a new syscall _umtx_op to support timed lock and condition
variable semantics. also, orignal umtx_lock and umtx_unlock inline
functions now are reimplemented by using _umtx_op, the _umtx_op can
use arbitrary id not just a thread id.


# 2524cfb7 18-Nov-2004 Mark Santcroos <marks@FreeBSD.org>

Rebuild from syscalls.master:1.179

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


# 299b4e7f 23-Oct-2004 Robert Watson <rwatson@FreeBSD.org>

Rebuild from syscalls.master:1.178.


# ebfcca3d 06-Oct-2004 David Xu <davidxu@FreeBSD.org>

Regen to unbreak world.

Pointy hat to: mtm


# 65a311fc 13-Jul-2004 Poul-Henning Kamp <phk@FreeBSD.org>

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.


# 507b0318 12-Jul-2004 David Xu <davidxu@FreeBSD.org>

Change kse_switchin to accept kse_thr_mailbox pointer, the syscall
will be used heavily in debugging KSE threads. This breaks libpthread
on IA64, but because libpthread was not in 5.2.1 release, I would like
to change it so we needn't to introduce another syscall.


# c2589102 01-Jul-2004 Marcel Moolenaar <marcel@FreeBSD.org>

Regen.


# 5282c617 21-Jun-2004 Robert Watson <rwatson@FreeBSD.org>

Regenerate after updating syscalls.master.


# 7af72ad7 21-Jun-2004 Robert Watson <rwatson@FreeBSD.org>

Rebuild following marking link() as MPSAFE.


# e2c8a799 05-Apr-2004 Doug Rabson <dfr@FreeBSD.org>

Regen.


# a73027fe 27-Mar-2004 Mike Makonnen <mtm@FreeBSD.org>

Regen for libthr thread synchronization syscalls.


# 31c7e8b0 16-Mar-2004 David Malone <dwmalone@FreeBSD.org>

Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.
Use kern_open() to implement creat() rather than taking the long route
through open(). Mark creat as MPSAFE.

While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the
difference it will make.


# 6b55d75c 15-Mar-2004 John Baldwin <jhb@FreeBSD.org>

Regen for ptrace being safe again.


# 78c45c5d 13-Mar-2004 Peter Wemm <peter@FreeBSD.org>

Regen for mpsafe kse_create()


# b5426f09 02-Feb-2004 Daniel Eischen <deischen@FreeBSD.org>

Regen after adding ksem_timedwait().


# 0d2a853b 25-Dec-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen (__restrict)


# 424b70d0 24-Dec-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen (after removal of restrict)


# 1a7a6037 24-Dec-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen


# 2c743096 22-Dec-2003 Peter Wemm <peter@FreeBSD.org>

Regen - this should be essentially a NOP, except for rcsid changes.


# 5be4b10c 10-Dec-2003 Peter Wemm <peter@FreeBSD.org>

Regen


# cfa4b1e7 07-Dec-2003 Marcel Moolenaar <marcel@FreeBSD.org>

Regen due to kse_switchin(2).


# 808674fd 13-Nov-2003 Jeff Roberson <jeff@FreeBSD.org>

- regen.


# 1977597b 12-Nov-2003 Kirk McKusick <mckusick@FreeBSD.org>

Update the five files derived from /sys/kern/syscalls.master
after the additions made for the new statfs structure (version
1.157). These must be updated in a separate checkin after
syscalls.master has been checked in so that they reflect its
new CVS identity. As these are purely derived files, it is not
clear to me why they are under CVS at all. I presume that it has
something to do with having `make world' operate properly.


# dac33f12 07-Nov-2003 John Baldwin <jhb@FreeBSD.org>

Regen.


# bd781a1e 21-Oct-2003 Scott Long <scottl@FreeBSD.org>

Don peril-sensitive sunglasses and mark pipe(2) as MPSAFE. I've beaten up
on it for the last 15 hours with no signs of problems. It gives a small
(1%) gain on buildworld since pipe_read/pipe_write are already free of Giant.


# 111b0d0d 20-Oct-2003 David Malone <dwmalone@FreeBSD.org>

Mark dup as MPSAFE. Giant was pushed into dup ages ago, but it looks
like it was missed in syscalls.master.

Spotted by: alc


# ffe5125e 06-Sep-2003 Alan Cox <alc@FreeBSD.org>

msync(2) should be declared MP-safe.


# dd7da9aa 17-Jul-2003 David Xu <davidxu@FreeBSD.org>

o Refine kse_thr_interrupt to allow it to handle different commands.
o Remove TDF_NOSIGPOST.
o Add a member td_waitset to proc structure, it will be used for sigwait.

Tested by: deischen


# 9dde3bc9 28-Jun-2003 David Xu <davidxu@FreeBSD.org>

o Change kse_thr_interrupt to allow send a signal to a specified thread,
or unblock a thread in kernel, and allow UTS to specify whether syscall
should be restarted.
o Add ability for UTS to monitor signal comes in and removed from process,
the flag PS_SIGEVENT is used to indicate the events.
o Add a KMF_WAITSIGEVENT for KSE mailbox flag, UTS call kse_release with
this flag set to wait for above signal event.
o For SA based thread, kernel masks all signal in its signal mask, let
UTS to use kse_thr_interrupt interrupt a thread, and install a signal
frame in userland for the thread.
o Add a tm_syncsig in thread mailbox, when a hardware trap occurs,
it is used to deliver synchronous signal to userland, and upcall
is schedule, so UTS can process the synchronous signal for the thread.

Reviewed by: julian (mentor)


# 31d13e2a 03-Jun-2003 Robert Watson <rwatson@FreeBSD.org>

Regen from syscalls.master:1.149, addition of extended attribute
list system calls for fd, file, link.


# 94d079eb 08-Apr-2003 Mike Barcroft <mike@FreeBSD.org>

Regen.


# 45185895 31-Mar-2003 Jeff Roberson <jeff@FreeBSD.org>

- Regen.


# 8af830c3 31-Mar-2003 Jeff Roberson <jeff@FreeBSD.org>

- Regen for umtx.


# d4a63cb9 31-Mar-2003 Jeff Roberson <jeff@FreeBSD.org>

- Regen for thr related system calls.


# 72254792 31-Mar-2003 Jeff Roberson <jeff@FreeBSD.org>

- Regen for the sig*wait* system calls.


# eb117d5c 20-Feb-2003 David Xu <davidxu@FreeBSD.org>

Add a timeout parameter to kse_release.


# 9799a92d 26-Jan-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen


# 71e8fa87 25-Jan-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen


# 004a10f2 25-Jan-2003 Alfred Perlstein <alfred@FreeBSD.org>

regen.


# b47679cc 07-Jan-2003 David Xu <davidxu@FreeBSD.org>

Some KSE syscalls are MPSAFE.


# 6f123c35 29-Dec-2002 Robert Watson <rwatson@FreeBSD.org>

Regen from syscalls.master:1.139


# 72e7f3dd 15-Dec-2002 Matthew Dillon <dillon@FreeBSD.org>

Regenerate system calls (swapoff added)


# f3ec9000 15-Nov-2002 Daniel Eischen <deischen@FreeBSD.org>

Regenerate after adding system calls.


# 051c41ca 05-Nov-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 01ce3b56 02-Nov-2002 Robert Watson <rwatson@FreeBSD.org>

Regen from yesterday's system call placeholder rename.


# 23eeeff7 25-Oct-2002 Peter Wemm <peter@FreeBSD.org>

Split 4.x and 5.x signal handling so that we can keep 4.x signal
handling clean and functional as 5.x evolves. This allows some of the
nasty bandaids in the 5.x codepaths to be unwound.

Encapsulate 4.x signal handling under COMPAT_FREEBSD4 (there is an
anti-foot-shooting measure in place, 5.x folks need this for a while) and
finish encapsulating the older stuff under COMPAT_43. Since the ancient
stuff is required on alpha (longjmp(3) passes a 'struct osigcontext *'
to the current sigreturn(2), instead of the 'ucontext_t *' that sigreturn
is supposed to take), add a compile time check to prevent foot shooting
there too. Add uniform COMPAT_43 stubs for ia64/sparc64/powerpc.

Tested on: i386, alpha, ia64. Compiled on sparc64 (a few days ago).
Approved by: re


# 5cb559a5 22-Oct-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 3ab93f09 19-Oct-2002 Robert Watson <rwatson@FreeBSD.org>

Regen from addition of execve_mac placeholder.


# e1961f5c 09-Oct-2002 Robert Watson <rwatson@FreeBSD.org>

Regen from syntax fix to syscalls.master.


# 233d4635 09-Oct-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 36a8dac1 02-Oct-2002 Archie Cobbs <archie@FreeBSD.org>

Let kse_wakeup() take a KSE mailbox pointer argument.

Reviewed by: julian


# d0bd8ced 30-Sep-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 89def71c 25-Sep-2002 Archie Cobbs <archie@FreeBSD.org>

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


# 3ffb9fad 18-Sep-2002 Alfred Perlstein <alfred@FreeBSD.org>

Regen for added syscalls.


# 8815d2e8 19-Aug-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# d2118dfa 06-Aug-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 47ac133d 30-Jul-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 4266d0d0 30-Jul-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 03a719dc 29-Jul-2002 Robert Watson <rwatson@FreeBSD.org>

Rebuild of files generated from syscalls.master.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs


# d11a5661 12-Jul-2002 Alfred Perlstein <alfred@FreeBSD.org>

regen for freebsd4_sendfile(2) compat.


# 6480dc74 13-Jun-2002 Robert Watson <rwatson@FreeBSD.org>

Regen.


# 52183d01 28-May-2002 Marcel Moolenaar <marcel@FreeBSD.org>

Add uuidgen(2) and uuidgen(1).

The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.

From the Perforce logs (change 11995):

Round of cleanups:
o Give uuidgen() the correct prototype in syscalls.master
o Define struct uuid according to DCE 1.1 in sys/uuid.h
o Use struct uuid instead of uuid_t. The latter is defined
in sys/uuid.h but should not be used in kernel land.
o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o Rename the non-standard struct uuid in kern/kern_uuid.c
to struct uuid_private and give it a slightly better definition
for better byte-order handling. See below.
o In sys/gpt.h, fix the broken uuid definitions to match the now
compliant struct uuid definition. See below.
o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.

A note about byte-order:
The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.


# 9d997d8b 05-May-2002 Maxime Henrion <mux@FreeBSD.org>

Add the lchflags(2) syscall.

Reviewed by: rwatson


# d786139c 17-Apr-2002 Maxime Henrion <mux@FreeBSD.org>

Rework the kernel environment subsystem. We now convert the static
environment needed at boot time to a dynamic subsystem when VM is
up. The dynamic kernel environment is protected by an sx lock.

This adds some new functions to manipulate the kernel environment :
freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be
called after every getenv() when you have finished using the string.
testenv() only tests if an environment variable is present, and
doesn't require a freeenv() call. setenv() and unsetenv() are self
explanatory.

The kenv(2) syscall exports these new functionalities to userland,
mainly for kenv(1).

Reviewed by: peter


# 24ab015f 13-Apr-2002 Alan Cox <alc@FreeBSD.org>

Regen


# ab9ab570 11-Apr-2002 Alan Cox <alc@FreeBSD.org>

Regen


# 789f12fe 19-Mar-2002 Alfred Perlstein <alfred@FreeBSD.org>

Remove __P


# ba51c265 05-Mar-2002 Robert Watson <rwatson@FreeBSD.org>

Part II: update various mechanically generated files to allow for new
system call number allocations.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs


# c28841c1 18-Feb-2002 Julian Elischer <julian@FreeBSD.org>

Add stub syscalls and definitions for KSE calls.
"Book'em Danno"


# 1e599eee 17-Feb-2002 Daniel Eischen <deischen@FreeBSD.org>

Regenerate these files after change to syscalls.master.


# 1aa1d02a 09-Feb-2002 Robert Watson <rwatson@FreeBSD.org>

Part II: Update system calls for extended attributes. Rebuild of
generated files.


# b6fe6a5d 01-Feb-2002 Bruce Evans <bde@FreeBSD.org>

Regenerate to make osigreturn standard.


# 581cad5a 30-Jan-2002 Bruce Evans <bde@FreeBSD.org>

Regenerate _after_ the commit to syscalls.master.


# 06d133c4 02-Nov-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Add nmount() stub function and regenerate the syscall-glue which should
not need to check in generated files.


# ab323a7d 13-Oct-2001 Robert Watson <rwatson@FreeBSD.org>

o Update init_sysent.c and friends for allocation of afs_syscall.


# a90a3f28 21-Sep-2001 Robert Watson <rwatson@FreeBSD.org>

o Part two of eaccess(2) commit, rebuilt system call code.

Obtained from: TrustedBSD Project


# 98cdde71 18-Sep-2001 Peter Wemm <peter@FreeBSD.org>

Regenerate


# b40ce416 12-Sep-2001 Julian Elischer <julian@FreeBSD.org>

KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after: ha ha ha ha


# c8b8bac3 01-Sep-2001 Matthew Dillon <dillon@FreeBSD.org>

Regenerate syscalls


# f7b200fd 31-Aug-2001 Matthew Dillon <dillon@FreeBSD.org>

regenerate syscalls


# 040ef07a 22-Aug-2001 Thomas Moestl <tmm@FreeBSD.org>

Regenerate from syscalls.master using the new makesyscalls.sh revision.


# 2c3c8469 18-May-2001 Alfred Perlstein <alfred@FreeBSD.org>

Regen syscalls that were made mpsafe via vm_mtx

obreak, getpagesize, sbrk, sstk, mmap, ovadvise, munmap, mprotect,
madvise, mincore, mmap, mlock, munlock, minherit, msync, mlockall,
munlockall


# 40829dd2 11-Apr-2001 Robert Watson <rwatson@FreeBSD.org>

o Regenerated following introduction of __setugid() system call for
"options REGRESSION".

Obtained from: TrustedBSD Project


# 68557486 31-Mar-2001 Robert Watson <rwatson@FreeBSD.org>

o Part two of introduction of extattr_{delete,get,set}_fd() system calls,
regenerate necessary automatically-generated code.

Obtained from: TrustedBSD Project


# 231b9e91 18-Mar-2001 Robert Watson <rwatson@FreeBSD.org>

o Rename "namespace" argument to "attrnamespace" as namespace is a C++
reserved word. Part 2 of syscalls.master commit to catch rebuilt
files.

Submitted by: jkh
Obtained from: TrustedBSD Project


# 043cc5a6 14-Mar-2001 Peter Wemm <peter@FreeBSD.org>

Regenerate after rwatson's commit to syscalls.master (rev 1.85)


# a4bd171d 01-Dec-2000 Jake Burkholder <jake@FreeBSD.org>

Regen.


# 78525ce3 01-Dec-2000 Alfred Perlstein <alfred@FreeBSD.org>

sysvipc loadable.

new syscall entry lkmressys - "reserved loadable syscall"

Make syscall_register allow overwriting of such entries (lkmressys).


# 3f4ab653 28-Aug-2000 Marcel Moolenaar <marcel@FreeBSD.org>

Regen: fix prototypes for {o|}{g|s}etrlimit.


# 3a285cc8 29-Jul-2000 Peter Wemm <peter@FreeBSD.org>

Regen. (Fix SYS_exit)


# 69065e88 28-Jul-2000 Peter Wemm <peter@FreeBSD.org>

Regenerate with makesyscalls.sh


# a8e65b91 18-Jul-2000 Jonathan Lemon <jlemon@FreeBSD.org>

Simplify kqueue API slightly.

Discussed on: -arch


# e8483a05 13-Jul-2000 Robert Watson <rwatson@FreeBSD.org>

o Commit two of two, introducing __cap_{get,set}_{fd,file} syscalls to
modify capability sets on files.

Obtained from: TrustedBSD Project


# 625cc848 15-Jun-2000 Robert Watson <rwatson@FreeBSD.org>

Second of two commits adding capability manipulation syscalls for
processes.

Obtained from: TrustedBSD Project


# 4aee570d 09-May-2000 Bruce Evans <bde@FreeBSD.org>

Regenerated (fixed the type of mmap()'s padding arg).


# 2553c04c 01-May-2000 Peter Wemm <peter@FreeBSD.org>

Regenerate (removed semconfig)


# cb679c38 16-Apr-2000 Jonathan Lemon <jlemon@FreeBSD.org>

Introduce kqueue() and kevent(), a kernel event notification facility.


# 9b0be035 18-Jan-2000 Robert Watson <rwatson@FreeBSD.org>

Fix bde'isms in acl/extattr syscall interface, renaming syscalls to
prettier (?) names, adding some const's around here, et al.

Commit 2 out of 3.

Reviewed by: bde


# 8ccd6334 16-Jan-2000 Peter Wemm <peter@FreeBSD.org>

Implement setres[ug]id() and getres[ug]id(). This has been sitting in
my tree for ages (~2 years) waiting for an excuse to commit it. Now Linux
has implemented it and it seems that Staroffice (when using the
linux_base6.1 port's libc) calls this in the linux emulator and dies in
setup. The Linux emulator can call these now.


# bfbbc4aa 13-Jan-2000 Jason Evans <jasone@FreeBSD.org>

Add aio_waitcomplete(). Make aio work correctly for socket descriptors.
Make gratuitous style(9) fixes (me, not the submitter) to make the aio
code more readable.

PR: kern/12053
Submitted by: Chris Sedore <cmsedore@maxwell.syr.edu>


# 91f37dcb 18-Dec-1999 Robert Watson <rwatson@FreeBSD.org>

Second pass commit to introduce new ACL and Extended Attribute system
calls, vnops, vfsops, both in /kern, and to individual file systems that
require a vfsop_ array entry.

Reviewed by: eivind


# 9ed3b901 18-Nov-1999 Brian Somers <brian@FreeBSD.org>

Cop on a bit and regenerate things correctly.

Pointed out by: bde


# b08210f5 17-Nov-1999 Brian Somers <brian@FreeBSD.org>

modfind(char *) -> modfind(const char *)

Reminded by: dfr


# 38a7743a 12-Oct-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Now that userland, including modules don't use the osig* syscalls
and the kernel itself doesn't use any SYS_osig* constants, change
the syscalls to be of type COMPAT.


# 2c42a146 29-Sep-1999 Marcel Moolenaar <marcel@FreeBSD.org>

sigset_t change (part 2 of 5)
-----------------------------

The core of the signalling code has been rewritten to operate
on the new sigset_t. No methodological changes have been made.
Most references to a sigset_t object are through macros (see
signalvar.h) to create a level of abstraction and to provide
a basis for further improvements.

The NSIG constant has not been changed to reflect the maximum
number of signals possible. The reason is that it breaks
programs (especially shells) which assume that all signals
have a non-null name in sys_signame. See src/bin/sh/trap.c
for an example. Instead _SIG_MAXSIG has been introduced to
hold the maximum signal possible with the new sigset_t.

struct sigprop has been moved from signalvar.h to kern_sig.c
because a) it is only used there, and b) access must be done
though function sigprop(). The latter because the table doesn't
holds properties for all signals, but only for the first NSIG
signals.

signal.h has been reorganized to make reading easier and to
add the new and/or modified structures. The "old" structures
are moved to signalvar.h to prevent namespace polution.

Especially the coda filesystem suffers from the change, because
it contained lines like (p->p_sigmask == SIGIO), which is easy
to do for integral types, but not for compound types.

NOTE: kdump (and port linux_kdump) must be recompiled.

Thanks to Garrett Wollman and Daniel Eischen for pressing the
importance of changing sigreturn as well.


# 818a7190 10-Sep-1999 Alfred Perlstein <alfred@FreeBSD.org>

regenerate to include proper "gererated from" taglines.


# c24fda81 10-Sep-1999 Alfred Perlstein <alfred@FreeBSD.org>

Seperate the export check in VFS_FHTOVP, exports are now checked via
VFS_CHECKEXP.

Add fh(open|stat|stafs) syscalls to allow userland to query filesystems
based on (network) filehandle.

Obtained from: NetBSD


# 21859779 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

Regen after Id->FreeBSD


# 7055d4f5 05-Aug-1999 Jordan K. Hubbard <jkh@FreeBSD.org>

commit these files after updating syscalls.master.


# 853cbeeb 13-May-1999 Bruce Evans <bde@FreeBSD.org>

Regenerated.


# 75c13541 28-Apr-1999 Poul-Henning Kamp <phk@FreeBSD.org>

This Implements the mumbled about "Jail" feature.

This is a seriously beefed up chroot kind of thing. The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.

For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact: "real virtual servers".

Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.

Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.

It generally does what one would expect, but setting up a jail
still takes a little knowledge.

A few notes:

I have no scripts for setting up a jail, don't ask me for them.

The IP number should be an alias on one of the interfaces.

mount a /proc in each jail, it will make ps more useable.

/proc/<pid>/status tells the hostname of the prison for
jailed processes.

Quotas are only sensible if you have a mountpoint per prison.

There are no privisions for stopping resource-hogging.

Some "#ifdef INET" and similar may be missing (send patches!)

If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!

Tools, comments, patches & documentation most welcome.

Have fun...

Sponsored by: http://www.rndassociates.com/
Run for almost a year by: http://www.servetheweb.com/


# 5cc4ab53 04-Apr-1999 Dmitrij Tejblum <dt@FreeBSD.org>

Regenerate (padding for pread and pwrite).


# 4160ccd9 27-Mar-1999 Alan Cox <alc@FreeBSD.org>

Added pread and pwrite. These functions are defined by the X/Open
Threads Extension. (Note: We use the same syscall numbers as NetBSD.)

Submitted by: John Plevyak <jplevyak@inktomi.com>


# a533143f 11-Nov-1998 Peter Wemm <peter@FreeBSD.org>

regenerate (+kldsym)


# dd0b2081 05-Nov-1998 David Greenman <dg@FreeBSD.org>

Implemented zero-copy TCP/IP extensions via sendfile(2) - send a
file to a stream socket. sendfile(2) is similar to implementations in
HP-UX, Linux, and other systems, but the API is more extensive and
addresses many of the complaints that the Apache Group and others have
had with those other implementations. Thanks to Marc Slemko of the
Apache Group for helping me work out the best API for this.
Anyway, this has the "net" result of speeding up sends of files over
TCP/IP sockets by about 10X (that is to say, uses 1/10th of the CPU
cycles) when compared to a traditional read/write loop.


# c49265d0 24-Aug-1998 Doug Rabson <dfr@FreeBSD.org>

Regnerate.


# 414c93f3 08-Jun-1998 Bruce Evans <bde@FreeBSD.org>

Updated generated files.


# ecbb00a2 07-Jun-1998 Doug Rabson <dfr@FreeBSD.org>

This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.

The prototype FreeBSD/alpha machdep will follow in a couple of days
time.


# 06b64935 14-May-1998 Peter Wemm <peter@FreeBSD.org>

regen after signanosleep nuke


# 1f562172 10-May-1998 John Dyson <dyson@FreeBSD.org>

Fix the futimes/undelete/utrace conflict with other BSD's. Note that
the only common usage of utrace (the possible problem with this
commit) is with malloc, so this should be a real problem. Add
the various NetBSD syscalls that allow full emulation of their
development environment.


# 8a6472b7 28-Mar-1998 Peter Dufault <dufault@FreeBSD.org>

Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and
_KPOSIX_PRIORITY_SCHEDULING options to work. Changes:

Change all "posix4" to "p1003_1b". Misnamed files are left
as "posix4" until I'm told if I can simply delete them and add
new ones;

Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;

Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;

Add options to LINT;

Minor fixes to P1003_1B code during testing.


# a92ae475 03-Feb-1998 Bruce Evans <bde@FreeBSD.org>

Updated generated files.


# c5b193bf 30-Jan-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Retire LFS.

If you want to play with it, you can find the final version of the
code in the repository the tag LFS_RETIREMENT.

If somebody makes LFS work again, adding it back is certainly
desireable, but as it is now nobody seems to care much about it,
and it has suffered considerable bitrot since its somewhat haphazard
integration.

R.I.P


# 4027779c 16-Dec-1997 Eivind Eklund <eivind@FreeBSD.org>

Regenerate after changing makesyscalls.sh.


# 5591b823d 16-Dec-1997 Eivind Eklund <eivind@FreeBSD.org>

Make COMPAT_43 and COMPAT_SUNOS new-style options.


# cb226aaa 06-Nov-1997 Poul-Henning Kamp <phk@FreeBSD.org>

Move the "retval" (3rd) parameter from all syscall functions and put
it in struct proc instead.

This fixes a boatload of compiler warning, and removes a lot of cruft
from the sources.

I have not removed the /*ARGSUSED*/, they will require some looking at.

libkvm, ps and other userland struct proc frobbing programs will need
recompiled.


# e83f7677 26-Oct-1997 Poul-Henning Kamp <phk@FreeBSD.org>

Remade syscalls.master derived files.


# 921af254 14-Sep-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate _after_ the commit to syscalls.master


# 7822f1c6 14-Sep-1997 Poul-Henning Kamp <phk@FreeBSD.org>

Add a __getcwd() syscall. This is intentionally undocumented, but all
it does is to try to figure the pwd out from the vfs namecache, and
return a reversed string to it. libc:getcwd() is responsible for
flipping it back.


# 818661c8 13-Sep-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate (added poll etc)


# 217cb20c 18-Aug-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate


# e747e4bc 29-Jun-1997 Bruce Evans <bde@FreeBSD.org>

Updated generated files (makesyscalls.sh changed). Only sysproto.h
really changed.


# 2c1011f7 15-Jun-1997 John Dyson <dyson@FreeBSD.org>

Modifications to existing files to support the initial AIO/LIO and
kernel based threading support.


# 83a6ec5e 01-Jun-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate


# 3a5322f2 08-May-1997 Peter Wemm <peter@FreeBSD.org>

regenerate


# cea6c86c 07-May-1997 Doug Rabson <dfr@FreeBSD.org>

This is the kernel linker. To use it, you will first need to apply
the patches in freefall:/home/dfr/ld.diffs to your ld sources and set
BINFORMAT to aoutkld when linking the kernel.

Library changes and userland utilities will appear in a later commit.


# 7ec6369d 31-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate (added issetugid)


# f77da286 30-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate


# d050e1a8 21-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Regenerate to include correct Id string


# 996c772f 09-Feb-1997 John Dyson <dyson@FreeBSD.org>

This is the kernel Lite/2 commit. There are some requisite userland
changes, so don't expect to be able to run the kernel as-is (very well)
without the appropriate Lite/2 userland changes.

The system boots and can mount UFS filesystems.

Untested: ext2fs, msdosfs, NFS
Known problems: Incorrect Berkeley ID strings in some files.
Mount_std mounts will not work until the getfsent
library routine is changed.

Reviewed by: various people
Submitted by: Jeffery Hsu <hsu@freebsd.org>


# 713aa001 16-Jan-1997 Bruce Evans <bde@FreeBSD.org>

Updated generated files.


# e6c4b9ba 19-Sep-1996 Poul-Henning Kamp <phk@FreeBSD.org>

Add the utrace(caddr_t addr,size_t len) syscall, that will store the
data pointed at in a ktrace file, if this process is being ktrace'ed.
I'm using this to profile malloc usage.
The advantage is that there is no context around this call, ie, no
open file or socket, so it will work in any process, and you can
decide if you want it to collect data or not.


# fc0b1dbf 13-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Don't use __dead in the kernel. It was an obfuscation for gcc >= 2.5
and a no-op for gcc >= 2.6.


# c2bbab53 20-Aug-1996 Sujal Patel <smpatel@FreeBSD.org>

Reran makesyscalls.sh after changing select()'s first argument to 'int'.


# b08f7993 20-Aug-1996 Sujal Patel <smpatel@FreeBSD.org>

Remove the kernel FD_SETSIZE limit for select().
Make select()'s first argument 'int' not 'u_int'.

Reviewed by: bde


# bad43528 02-Mar-1996 Peter Wemm <peter@FreeBSD.org>

reran makesyscalls.sh after "int len" -> "size_t len" changes.


# e89de7b5 23-Feb-1996 Peter Wemm <peter@FreeBSD.org>

Run makesyscalls to regen the tables.


# 99cb2993 13-Jan-1996 Poul-Henning Kamp <phk@FreeBSD.org>

Add an option NFS_NOSERVER which saves 100K in the install kernel (or
any other kernel that uses it). Use with option NFS.


# 7f75db1c 07-Jan-1996 Peter Wemm <peter@FreeBSD.org>

reran makesyscalls..


# 50c73f36 04-Jan-1996 Garrett Wollman <wollman@FreeBSD.org>

Convert SYSV IPC to new-style options. (I hope I got everything...)
The LKMs will need an extra file, to come later.


# db6a20e2 03-Jan-1996 Garrett Wollman <wollman@FreeBSD.org>

Converted two options over to the new scheme: USER_LDT and KTRACE.


# 295ab049 14-Dec-1995 Peter Wemm <peter@FreeBSD.org>

Regenerated from syscalls.master...


# c484c256 11-Nov-1995 Bruce Evans <bde@FreeBSD.org>

Updated machine-generated files.


# 4170ff3e 07-Oct-1995 Steven Wallace <swallace@FreeBSD.org>

Update sysproto.h to reflect changes.


# 4887ee51 07-Oct-1995 Steven Wallace <swallace@FreeBSD.org>

Remake generated files to reflect makesyscalls.sh changes


# c1b0bf46 19-Sep-1995 Bruce Evans <bde@FreeBSD.org>

Update machine-generated files.