History log of /freebsd-9.3-release/lib/libc/sys/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
267655 20-Jun-2014 gjb

Remove svn:mergeinfo carried over from stable/9.

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


/freebsd-9.3-release/COPYRIGHT
/freebsd-9.3-release/MAINTAINERS
/freebsd-9.3-release/Makefile
/freebsd-9.3-release/Makefile.inc1
/freebsd-9.3-release/ObsoleteFiles.inc
/freebsd-9.3-release/UPDATING
/freebsd-9.3-release/bin
/freebsd-9.3-release/bin/cat
/freebsd-9.3-release/bin/cp
/freebsd-9.3-release/bin/csh
/freebsd-9.3-release/bin/date
/freebsd-9.3-release/bin/dd
/freebsd-9.3-release/bin/df
/freebsd-9.3-release/bin/ed
/freebsd-9.3-release/bin/expr
/freebsd-9.3-release/bin/getfacl
/freebsd-9.3-release/bin/kenv
/freebsd-9.3-release/bin/ln
/freebsd-9.3-release/bin/mkdir
/freebsd-9.3-release/bin/mv
/freebsd-9.3-release/bin/pkill
/freebsd-9.3-release/bin/ps
/freebsd-9.3-release/bin/pwait
/freebsd-9.3-release/bin/rcp
/freebsd-9.3-release/bin/rm
/freebsd-9.3-release/bin/setfacl
/freebsd-9.3-release/bin/sh
/freebsd-9.3-release/bin/sleep
/freebsd-9.3-release/bin/test
/freebsd-9.3-release/bin/uuidgen
/freebsd-9.3-release/cddl
/freebsd-9.3-release/cddl/contrib
/freebsd-9.3-release/cddl/contrib/dtracetoolkit
/freebsd-9.3-release/cddl/contrib/opensolaris
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zfs
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zpool
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libdtrace/common
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs
/freebsd-9.3-release/cddl/lib
/freebsd-9.3-release/cddl/lib/drti
/freebsd-9.3-release/cddl/lib/libdtrace
/freebsd-9.3-release/cddl/usr.bin/zinject
/freebsd-9.3-release/contrib
/freebsd-9.3-release/contrib/bind9
/freebsd-9.3-release/contrib/binutils
/freebsd-9.3-release/contrib/bmake
/freebsd-9.3-release/contrib/bsnmp
/freebsd-9.3-release/contrib/bsnmp/snmp_mibII
/freebsd-9.3-release/contrib/bzip2
/freebsd-9.3-release/contrib/compiler-rt
/freebsd-9.3-release/contrib/dialog
/freebsd-9.3-release/contrib/diff
/freebsd-9.3-release/contrib/ee
/freebsd-9.3-release/contrib/expat
/freebsd-9.3-release/contrib/file
/freebsd-9.3-release/contrib/gcc
/freebsd-9.3-release/contrib/gcclibs
/freebsd-9.3-release/contrib/gdb
/freebsd-9.3-release/contrib/gdtoa
/freebsd-9.3-release/contrib/gnu-sort
/freebsd-9.3-release/contrib/gperf
/freebsd-9.3-release/contrib/groff
/freebsd-9.3-release/contrib/less
/freebsd-9.3-release/contrib/libarchive
/freebsd-9.3-release/contrib/libarchive/cpio
/freebsd-9.3-release/contrib/libarchive/libarchive
/freebsd-9.3-release/contrib/libarchive/libarchive_fe
/freebsd-9.3-release/contrib/libarchive/tar
/freebsd-9.3-release/contrib/libc++
/freebsd-9.3-release/contrib/libc-pwcache
/freebsd-9.3-release/contrib/libc-vis
/freebsd-9.3-release/contrib/libcxxrt
/freebsd-9.3-release/contrib/libpcap
/freebsd-9.3-release/contrib/libstdc++
/freebsd-9.3-release/contrib/libucl
/freebsd-9.3-release/contrib/llvm
/freebsd-9.3-release/contrib/llvm/tools/clang
/freebsd-9.3-release/contrib/mknod
/freebsd-9.3-release/contrib/mtree
/freebsd-9.3-release/contrib/ncurses
/freebsd-9.3-release/contrib/netcat
/freebsd-9.3-release/contrib/ntp
/freebsd-9.3-release/contrib/nvi
/freebsd-9.3-release/contrib/one-true-awk
/freebsd-9.3-release/contrib/openbsm
/freebsd-9.3-release/contrib/openpam
/freebsd-9.3-release/contrib/openresolv
/freebsd-9.3-release/contrib/opie
/freebsd-9.3-release/contrib/pf
/freebsd-9.3-release/contrib/pnpinfo
/freebsd-9.3-release/contrib/sendmail
/freebsd-9.3-release/contrib/tcpdump
/freebsd-9.3-release/contrib/tcsh
/freebsd-9.3-release/contrib/telnet
/freebsd-9.3-release/contrib/tnftp
/freebsd-9.3-release/contrib/top
/freebsd-9.3-release/contrib/top/install-sh
/freebsd-9.3-release/contrib/traceroute
/freebsd-9.3-release/contrib/tzcode
/freebsd-9.3-release/contrib/tzcode/stdtime
/freebsd-9.3-release/contrib/tzcode/zic
/freebsd-9.3-release/contrib/tzdata
/freebsd-9.3-release/contrib/unvis
/freebsd-9.3-release/contrib/vis
/freebsd-9.3-release/contrib/wpa
/freebsd-9.3-release/contrib/xz
/freebsd-9.3-release/crypto/heimdal
/freebsd-9.3-release/crypto/openssh
/freebsd-9.3-release/crypto/openssl
/freebsd-9.3-release/etc
/freebsd-9.3-release/etc/mtree
/freebsd-9.3-release/etc/rc.d
/freebsd-9.3-release/games/bcd
/freebsd-9.3-release/games/caesar
/freebsd-9.3-release/games/factor
/freebsd-9.3-release/games/fortune
/freebsd-9.3-release/games/fortune/fortune
/freebsd-9.3-release/games/grdc
/freebsd-9.3-release/games/morse
/freebsd-9.3-release/games/number
/freebsd-9.3-release/games/pom
/freebsd-9.3-release/games/random
/freebsd-9.3-release/gnu/lib
/freebsd-9.3-release/gnu/lib/csu
/freebsd-9.3-release/gnu/lib/libgcc
/freebsd-9.3-release/gnu/lib/libgomp
/freebsd-9.3-release/gnu/lib/libstdc++
/freebsd-9.3-release/gnu/lib/libsupc++
/freebsd-9.3-release/gnu/usr.bin/binutils
/freebsd-9.3-release/gnu/usr.bin/binutils/libbinutils
/freebsd-9.3-release/gnu/usr.bin/cc/c++
/freebsd-9.3-release/gnu/usr.bin/cc/cc_tools
/freebsd-9.3-release/gnu/usr.bin/cc/include
/freebsd-9.3-release/gnu/usr.bin/gdb
/freebsd-9.3-release/gnu/usr.bin/gdb/kgdb
/freebsd-9.3-release/gnu/usr.bin/gperf
/freebsd-9.3-release/gnu/usr.bin/groff
/freebsd-9.3-release/gnu/usr.bin/send-pr
/freebsd-9.3-release/include
/freebsd-9.3-release/include/arpa
/freebsd-9.3-release/kerberos5
/freebsd-9.3-release/kerberos5/lib/libgssapi_krb5
/freebsd-9.3-release/lib
/freebsd-9.3-release/lib/Makefile
/freebsd-9.3-release/lib/bind
/freebsd-9.3-release/lib/clang
/freebsd-9.3-release/lib/clang/include
/freebsd-9.3-release/lib/csu
/freebsd-9.3-release/lib/libarchive
/freebsd-9.3-release/lib/libbluetooth
/freebsd-9.3-release/lib/libc
/freebsd-9.3-release/lib/libc++
/freebsd-9.3-release/lib/libc/stdtime
/freebsd-9.3-release/lib/libc/sys
/freebsd-9.3-release/lib/libc/uuid
/freebsd-9.3-release/lib/libcam
/freebsd-9.3-release/lib/libcompiler_rt
/freebsd-9.3-release/lib/libcrypt
/freebsd-9.3-release/lib/libcxxrt
/freebsd-9.3-release/lib/libdwarf
/freebsd-9.3-release/lib/libedit
/freebsd-9.3-release/lib/libelf
/freebsd-9.3-release/lib/libexpat
/freebsd-9.3-release/lib/libfetch
/freebsd-9.3-release/lib/libgeom
/freebsd-9.3-release/lib/libgpib
/freebsd-9.3-release/lib/libgssapi
/freebsd-9.3-release/lib/libiconv_modules
/freebsd-9.3-release/lib/libipsec
/freebsd-9.3-release/lib/libjail
/freebsd-9.3-release/lib/libkiconv
/freebsd-9.3-release/lib/libkvm
/freebsd-9.3-release/lib/libmagic
/freebsd-9.3-release/lib/libmemstat
/freebsd-9.3-release/lib/libncp
/freebsd-9.3-release/lib/libnetbsd
/freebsd-9.3-release/lib/libnetgraph
/freebsd-9.3-release/lib/libopie
/freebsd-9.3-release/lib/libpam
/freebsd-9.3-release/lib/libpcap
/freebsd-9.3-release/lib/libpmc
/freebsd-9.3-release/lib/libproc
/freebsd-9.3-release/lib/libprocstat
/freebsd-9.3-release/lib/libradius
/freebsd-9.3-release/lib/librpcsec_gss
/freebsd-9.3-release/lib/librpcsvc
/freebsd-9.3-release/lib/librt
/freebsd-9.3-release/lib/libsbuf
/freebsd-9.3-release/lib/libsm
/freebsd-9.3-release/lib/libstand
/freebsd-9.3-release/lib/libstdbuf
/freebsd-9.3-release/lib/libtacplus
/freebsd-9.3-release/lib/libthr
/freebsd-9.3-release/lib/libthr/thread/thr_setprio.c
/freebsd-9.3-release/lib/libthr/thread/thr_setschedparam.c
/freebsd-9.3-release/lib/libthread_db
/freebsd-9.3-release/lib/libucl
/freebsd-9.3-release/lib/libulog
/freebsd-9.3-release/lib/libusb
/freebsd-9.3-release/lib/libusbhid
/freebsd-9.3-release/lib/libutil
/freebsd-9.3-release/lib/libvgl
/freebsd-9.3-release/lib/libypclnt
/freebsd-9.3-release/lib/libz
/freebsd-9.3-release/lib/msun
/freebsd-9.3-release/lib/ncurses/form
/freebsd-9.3-release/lib/ncurses/menu
/freebsd-9.3-release/lib/ncurses/ncurses
/freebsd-9.3-release/lib/ncurses/panel
/freebsd-9.3-release/libexec/atrun
/freebsd-9.3-release/libexec/bootpd
/freebsd-9.3-release/libexec/comsat
/freebsd-9.3-release/libexec/ftpd
/freebsd-9.3-release/libexec/getty
/freebsd-9.3-release/libexec/mail.local
/freebsd-9.3-release/libexec/pppoed
/freebsd-9.3-release/libexec/rbootd
/freebsd-9.3-release/libexec/rshd
/freebsd-9.3-release/libexec/rtld-elf
/freebsd-9.3-release/libexec/save-entropy
/freebsd-9.3-release/libexec/smrsh
/freebsd-9.3-release/libexec/tftpd
/freebsd-9.3-release/libexec/ypxfr
/freebsd-9.3-release/release
/freebsd-9.3-release/release/doc
/freebsd-9.3-release/release/doc/en_US.ISO8859-1/hardware
/freebsd-9.3-release/release/ia64
/freebsd-9.3-release/release/picobsd/tinyware/passwd
/freebsd-9.3-release/rescue
/freebsd-9.3-release/rescue/rescue
/freebsd-9.3-release/sbin
/freebsd-9.3-release/sbin/atacontrol
/freebsd-9.3-release/sbin/atm/atmconfig
/freebsd-9.3-release/sbin/bsdlabel
/freebsd-9.3-release/sbin/camcontrol
/freebsd-9.3-release/sbin/ccdconfig
/freebsd-9.3-release/sbin/ddb
/freebsd-9.3-release/sbin/devd
/freebsd-9.3-release/sbin/devfs
/freebsd-9.3-release/sbin/dhclient
/freebsd-9.3-release/sbin/dump
/freebsd-9.3-release/sbin/dumpfs
/freebsd-9.3-release/sbin/fdisk
/freebsd-9.3-release/sbin/fdisk_pc98
/freebsd-9.3-release/sbin/fsck_ffs
/freebsd-9.3-release/sbin/fsck_msdosfs
/freebsd-9.3-release/sbin/fsdb
/freebsd-9.3-release/sbin/fsirand
/freebsd-9.3-release/sbin/gbde
/freebsd-9.3-release/sbin/geom
/freebsd-9.3-release/sbin/geom/class/mirror
/freebsd-9.3-release/sbin/geom/class/multipath
/freebsd-9.3-release/sbin/geom/class/part
/freebsd-9.3-release/sbin/geom/class/raid
/freebsd-9.3-release/sbin/geom/class/raid3
/freebsd-9.3-release/sbin/geom/class/sched
/freebsd-9.3-release/sbin/geom/class/virstor
/freebsd-9.3-release/sbin/ggate
/freebsd-9.3-release/sbin/growfs
/freebsd-9.3-release/sbin/gvinum
/freebsd-9.3-release/sbin/hastctl
/freebsd-9.3-release/sbin/hastd
/freebsd-9.3-release/sbin/ifconfig
/freebsd-9.3-release/sbin/init
/freebsd-9.3-release/sbin/ipf
/freebsd-9.3-release/sbin/ipfw
/freebsd-9.3-release/sbin/iscontrol
/freebsd-9.3-release/sbin/kldload
/freebsd-9.3-release/sbin/mca
/freebsd-9.3-release/sbin/md5
/freebsd-9.3-release/sbin/mdconfig
/freebsd-9.3-release/sbin/mdmfs
/freebsd-9.3-release/sbin/mount
/freebsd-9.3-release/sbin/mount_cd9660
/freebsd-9.3-release/sbin/mount_msdosfs
/freebsd-9.3-release/sbin/mount_nfs
/freebsd-9.3-release/sbin/mount_ntfs
/freebsd-9.3-release/sbin/mount_nullfs
/freebsd-9.3-release/sbin/mount_unionfs
/freebsd-9.3-release/sbin/natd
/freebsd-9.3-release/sbin/newfs
/freebsd-9.3-release/sbin/newfs_msdos
/freebsd-9.3-release/sbin/nvmecontrol
/freebsd-9.3-release/sbin/ping6
/freebsd-9.3-release/sbin/quotacheck
/freebsd-9.3-release/sbin/rcorder
/freebsd-9.3-release/sbin/reboot
/freebsd-9.3-release/sbin/recoverdisk
/freebsd-9.3-release/sbin/restore
/freebsd-9.3-release/sbin/route
/freebsd-9.3-release/sbin/routed/rtquery
/freebsd-9.3-release/sbin/savecore
/freebsd-9.3-release/sbin/setkey
/freebsd-9.3-release/sbin/shutdown
/freebsd-9.3-release/sbin/swapon
/freebsd-9.3-release/sbin/sysctl
/freebsd-9.3-release/sbin/tunefs
/freebsd-9.3-release/sbin/umount
/freebsd-9.3-release/secure/lib/libcrypt
/freebsd-9.3-release/secure/lib/libcrypto
/freebsd-9.3-release/secure/lib/libssh
/freebsd-9.3-release/secure/lib/libssl
/freebsd-9.3-release/secure/libexec/ssh-keysign
/freebsd-9.3-release/secure/usr.bin/openssl
/freebsd-9.3-release/secure/usr.bin/ssh
/freebsd-9.3-release/secure/usr.sbin/sshd
/freebsd-9.3-release/share
/freebsd-9.3-release/share/doc
/freebsd-9.3-release/share/doc/bind9
/freebsd-9.3-release/share/doc/smm
/freebsd-9.3-release/share/dtrace
/freebsd-9.3-release/share/examples
/freebsd-9.3-release/share/examples/csh
/freebsd-9.3-release/share/examples/cvsup
/freebsd-9.3-release/share/examples/diskless
/freebsd-9.3-release/share/examples/etc
/freebsd-9.3-release/share/examples/kld/dyn_sysctl
/freebsd-9.3-release/share/examples/ppp
/freebsd-9.3-release/share/examples/printing
/freebsd-9.3-release/share/examples/scsi_target
/freebsd-9.3-release/share/examples/ses
/freebsd-9.3-release/share/i18n/csmapper
/freebsd-9.3-release/share/info
/freebsd-9.3-release/share/man
/freebsd-9.3-release/share/man/man3
/freebsd-9.3-release/share/man/man4
/freebsd-9.3-release/share/man/man4/run.4
/freebsd-9.3-release/share/man/man4/runfw.4
/freebsd-9.3-release/share/man/man5
/freebsd-9.3-release/share/man/man7
/freebsd-9.3-release/share/man/man8
/freebsd-9.3-release/share/man/man9
/freebsd-9.3-release/share/misc
/freebsd-9.3-release/share/mk
/freebsd-9.3-release/share/mk/bsd.arch.inc.mk
/freebsd-9.3-release/share/mk/bsd.sys.mk
/freebsd-9.3-release/share/skel
/freebsd-9.3-release/share/syscons
/freebsd-9.3-release/share/syscons/keymaps
/freebsd-9.3-release/share/termcap
/freebsd-9.3-release/share/zoneinfo
/freebsd-9.3-release/sys
/freebsd-9.3-release/sys/amd64/include/xen
/freebsd-9.3-release/sys/boot
/freebsd-9.3-release/sys/boot/forth
/freebsd-9.3-release/sys/boot/i386/efi
/freebsd-9.3-release/sys/boot/i386/gptboot
/freebsd-9.3-release/sys/boot/ia64/efi
/freebsd-9.3-release/sys/boot/ia64/ski
/freebsd-9.3-release/sys/boot/powerpc/boot1.chrp
/freebsd-9.3-release/sys/boot/powerpc/ofw
/freebsd-9.3-release/sys/cddl/contrib/opensolaris
/freebsd-9.3-release/sys/conf
/freebsd-9.3-release/sys/contrib/dev/acpica
/freebsd-9.3-release/sys/contrib/dev/run
/freebsd-9.3-release/sys/contrib/octeon-sdk
/freebsd-9.3-release/sys/contrib/pf
/freebsd-9.3-release/sys/contrib/x86emu
/freebsd-9.3-release/sys/dev
/freebsd-9.3-release/sys/dev/e1000
/freebsd-9.3-release/sys/dev/isp
/freebsd-9.3-release/sys/dev/ixgbe
/freebsd-9.3-release/sys/dev/puc
/freebsd-9.3-release/sys/dev/usb/wlan/if_run.c
/freebsd-9.3-release/sys/dev/usb/wlan/if_runreg.h
/freebsd-9.3-release/sys/fs
/freebsd-9.3-release/sys/fs/ntfs
/freebsd-9.3-release/sys/modules
/freebsd-9.3-release/sys/modules/ixgbe
/freebsd-9.3-release/sys/net
/freebsd-9.3-release/sys/netpfil
/freebsd-9.3-release/sys/sys
/freebsd-9.3-release/tools
/freebsd-9.3-release/tools/build
/freebsd-9.3-release/tools/build/options
/freebsd-9.3-release/tools/diag
/freebsd-9.3-release/tools/kerneldoc
/freebsd-9.3-release/tools/regression
/freebsd-9.3-release/tools/regression/aio/aiotest
/freebsd-9.3-release/tools/regression/bin/sh
/freebsd-9.3-release/tools/regression/bin/test
/freebsd-9.3-release/tools/regression/doat
/freebsd-9.3-release/tools/regression/fifo
/freebsd-9.3-release/tools/regression/fsx
/freebsd-9.3-release/tools/regression/lib/libc
/freebsd-9.3-release/tools/regression/netinet
/freebsd-9.3-release/tools/regression/pipe
/freebsd-9.3-release/tools/regression/security/cap_test
/freebsd-9.3-release/tools/regression/sockets
/freebsd-9.3-release/tools/regression/usr.sbin
/freebsd-9.3-release/tools/regression/usr.sbin/etcupdate
/freebsd-9.3-release/tools/test
/freebsd-9.3-release/tools/test/auxinfo
/freebsd-9.3-release/tools/test/pthread_vfork
/freebsd-9.3-release/tools/tools
/freebsd-9.3-release/tools/tools/ath
/freebsd-9.3-release/tools/tools/bootparttest
/freebsd-9.3-release/tools/tools/cxgbetool
/freebsd-9.3-release/tools/tools/ether_reflect
/freebsd-9.3-release/tools/tools/mcgrab
/freebsd-9.3-release/tools/tools/nanobsd
/freebsd-9.3-release/tools/tools/netmap
/freebsd-9.3-release/tools/tools/syscall_timing
/freebsd-9.3-release/tools/tools/sysdoc
/freebsd-9.3-release/tools/tools/umastat
/freebsd-9.3-release/tools/tools/vimage
/freebsd-9.3-release/tools/tools/zfsboottest
/freebsd-9.3-release/usr.bin
/freebsd-9.3-release/usr.bin/apply
/freebsd-9.3-release/usr.bin/ar
/freebsd-9.3-release/usr.bin/at
/freebsd-9.3-release/usr.bin/bc
/freebsd-9.3-release/usr.bin/bmake
/freebsd-9.3-release/usr.bin/brandelf
/freebsd-9.3-release/usr.bin/bsdiff
/freebsd-9.3-release/usr.bin/c89
/freebsd-9.3-release/usr.bin/c99
/freebsd-9.3-release/usr.bin/calendar
/freebsd-9.3-release/usr.bin/calendar/calendars
/freebsd-9.3-release/usr.bin/chpass
/freebsd-9.3-release/usr.bin/clang
/freebsd-9.3-release/usr.bin/comm
/freebsd-9.3-release/usr.bin/compress
/freebsd-9.3-release/usr.bin/cpio
/freebsd-9.3-release/usr.bin/csup
/freebsd-9.3-release/usr.bin/ctlstat
/freebsd-9.3-release/usr.bin/cut
/freebsd-9.3-release/usr.bin/dc
/freebsd-9.3-release/usr.bin/dig
/freebsd-9.3-release/usr.bin/du
/freebsd-9.3-release/usr.bin/ee
/freebsd-9.3-release/usr.bin/fetch
/freebsd-9.3-release/usr.bin/find
/freebsd-9.3-release/usr.bin/finger
/freebsd-9.3-release/usr.bin/fstat
/freebsd-9.3-release/usr.bin/gcore
/freebsd-9.3-release/usr.bin/gprof
/freebsd-9.3-release/usr.bin/grep
/freebsd-9.3-release/usr.bin/gzip
/freebsd-9.3-release/usr.bin/hexdump
/freebsd-9.3-release/usr.bin/host
/freebsd-9.3-release/usr.bin/indent
/freebsd-9.3-release/usr.bin/ipcrm
/freebsd-9.3-release/usr.bin/join
/freebsd-9.3-release/usr.bin/kdump
/freebsd-9.3-release/usr.bin/killall
/freebsd-9.3-release/usr.bin/ktrace
/freebsd-9.3-release/usr.bin/ktrdump
/freebsd-9.3-release/usr.bin/last
/freebsd-9.3-release/usr.bin/lastcomm
/freebsd-9.3-release/usr.bin/ldd
/freebsd-9.3-release/usr.bin/less
/freebsd-9.3-release/usr.bin/lex
/freebsd-9.3-release/usr.bin/limits
/freebsd-9.3-release/usr.bin/locale
/freebsd-9.3-release/usr.bin/lock
/freebsd-9.3-release/usr.bin/lockf
/freebsd-9.3-release/usr.bin/login
/freebsd-9.3-release/usr.bin/lsvfs
/freebsd-9.3-release/usr.bin/m4
/freebsd-9.3-release/usr.bin/mail
/freebsd-9.3-release/usr.bin/make
/freebsd-9.3-release/usr.bin/makewhatis
/freebsd-9.3-release/usr.bin/man
/freebsd-9.3-release/usr.bin/minigzip
/freebsd-9.3-release/usr.bin/ministat
/freebsd-9.3-release/usr.bin/mkcsmapper
/freebsd-9.3-release/usr.bin/mkesdb
/freebsd-9.3-release/usr.bin/mklocale
/freebsd-9.3-release/usr.bin/mktemp
/freebsd-9.3-release/usr.bin/msgs
/freebsd-9.3-release/usr.bin/mt
/freebsd-9.3-release/usr.bin/ncal
/freebsd-9.3-release/usr.bin/ncplist
/freebsd-9.3-release/usr.bin/ncplogin
/freebsd-9.3-release/usr.bin/netstat
/freebsd-9.3-release/usr.bin/newgrp
/freebsd-9.3-release/usr.bin/nfsstat
/freebsd-9.3-release/usr.bin/nslookup
/freebsd-9.3-release/usr.bin/passwd
/freebsd-9.3-release/usr.bin/pr
/freebsd-9.3-release/usr.bin/printf
/freebsd-9.3-release/usr.bin/procstat
/freebsd-9.3-release/usr.bin/protect
/freebsd-9.3-release/usr.bin/rctl
/freebsd-9.3-release/usr.bin/rlogin
/freebsd-9.3-release/usr.bin/rpcgen
/freebsd-9.3-release/usr.bin/rsh
/freebsd-9.3-release/usr.bin/rwho
/freebsd-9.3-release/usr.bin/script
/freebsd-9.3-release/usr.bin/sed
/freebsd-9.3-release/usr.bin/seq
/freebsd-9.3-release/usr.bin/sockstat
/freebsd-9.3-release/usr.bin/split
/freebsd-9.3-release/usr.bin/stat
/freebsd-9.3-release/usr.bin/stdbuf
/freebsd-9.3-release/usr.bin/su
/freebsd-9.3-release/usr.bin/systat
/freebsd-9.3-release/usr.bin/tail
/freebsd-9.3-release/usr.bin/talk
/freebsd-9.3-release/usr.bin/tar
/freebsd-9.3-release/usr.bin/tftp
/freebsd-9.3-release/usr.bin/top
/freebsd-9.3-release/usr.bin/touch
/freebsd-9.3-release/usr.bin/truss
/freebsd-9.3-release/usr.bin/unvis
/freebsd-9.3-release/usr.bin/unzip
/freebsd-9.3-release/usr.bin/usbhidaction
/freebsd-9.3-release/usr.bin/usbhidctl
/freebsd-9.3-release/usr.bin/users
/freebsd-9.3-release/usr.bin/uuencode
/freebsd-9.3-release/usr.bin/vacation
/freebsd-9.3-release/usr.bin/vis
/freebsd-9.3-release/usr.bin/vmstat
/freebsd-9.3-release/usr.bin/w
/freebsd-9.3-release/usr.bin/wall
/freebsd-9.3-release/usr.bin/who
/freebsd-9.3-release/usr.bin/whois
/freebsd-9.3-release/usr.bin/write
/freebsd-9.3-release/usr.bin/xinstall
/freebsd-9.3-release/usr.bin/xlint
/freebsd-9.3-release/usr.bin/yes
/freebsd-9.3-release/usr.sbin
/freebsd-9.3-release/usr.sbin/Makefile
/freebsd-9.3-release/usr.sbin/ac
/freebsd-9.3-release/usr.sbin/acpi/acpidump
/freebsd-9.3-release/usr.sbin/adduser
/freebsd-9.3-release/usr.sbin/amd
/freebsd-9.3-release/usr.sbin/ancontrol
/freebsd-9.3-release/usr.sbin/apmd
/freebsd-9.3-release/usr.sbin/arp
/freebsd-9.3-release/usr.sbin/authpf
/freebsd-9.3-release/usr.sbin/bluetooth/ath3kfw
/freebsd-9.3-release/usr.sbin/bluetooth/bthidd
/freebsd-9.3-release/usr.sbin/bluetooth/hccontrol
/freebsd-9.3-release/usr.sbin/bluetooth/sdpd
/freebsd-9.3-release/usr.sbin/boot0cfg
/freebsd-9.3-release/usr.sbin/bootparamd
/freebsd-9.3-release/usr.sbin/bsdconfig
/freebsd-9.3-release/usr.sbin/bsdinstall
/freebsd-9.3-release/usr.sbin/bsdinstall/scripts
/freebsd-9.3-release/usr.sbin/bsnmpd
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_hostres
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_wlan
/freebsd-9.3-release/usr.sbin/bsnmpd/tools/bsnmptools
/freebsd-9.3-release/usr.sbin/btxld
/freebsd-9.3-release/usr.sbin/burncd
/freebsd-9.3-release/usr.sbin/cdcontrol
/freebsd-9.3-release/usr.sbin/chkgrp
/freebsd-9.3-release/usr.sbin/config
/freebsd-9.3-release/usr.sbin/cpucontrol
/freebsd-9.3-release/usr.sbin/crashinfo
/freebsd-9.3-release/usr.sbin/cron
/freebsd-9.3-release/usr.sbin/cron/crontab
/freebsd-9.3-release/usr.sbin/crunch
/freebsd-9.3-release/usr.sbin/ctladm
/freebsd-9.3-release/usr.sbin/ctm/ctm_dequeue
/freebsd-9.3-release/usr.sbin/daemon
/freebsd-9.3-release/usr.sbin/diskinfo
/freebsd-9.3-release/usr.sbin/edquota
/freebsd-9.3-release/usr.sbin/etcupdate
/freebsd-9.3-release/usr.sbin/flowctl
/freebsd-9.3-release/usr.sbin/freebsd-update
/freebsd-9.3-release/usr.sbin/fwcontrol
/freebsd-9.3-release/usr.sbin/gpioctl
/freebsd-9.3-release/usr.sbin/gssd
/freebsd-9.3-release/usr.sbin/i2c
/freebsd-9.3-release/usr.sbin/ifmcstat
/freebsd-9.3-release/usr.sbin/inetd
/freebsd-9.3-release/usr.sbin/iostat
/freebsd-9.3-release/usr.sbin/ip6addrctl
/freebsd-9.3-release/usr.sbin/jail
/freebsd-9.3-release/usr.sbin/jls
/freebsd-9.3-release/usr.sbin/kbdcontrol
/freebsd-9.3-release/usr.sbin/kbdmap
/freebsd-9.3-release/usr.sbin/keyserv
/freebsd-9.3-release/usr.sbin/kgmon
/freebsd-9.3-release/usr.sbin/kldxref
/freebsd-9.3-release/usr.sbin/lpr
/freebsd-9.3-release/usr.sbin/lpr/filters
/freebsd-9.3-release/usr.sbin/lpr/lpd
/freebsd-9.3-release/usr.sbin/makefs
/freebsd-9.3-release/usr.sbin/memcontrol
/freebsd-9.3-release/usr.sbin/mergemaster
/freebsd-9.3-release/usr.sbin/mfiutil
/freebsd-9.3-release/usr.sbin/mixer
/freebsd-9.3-release/usr.sbin/mountd
/freebsd-9.3-release/usr.sbin/moused
/freebsd-9.3-release/usr.sbin/mptutil
/freebsd-9.3-release/usr.sbin/mtest
/freebsd-9.3-release/usr.sbin/mtree
/freebsd-9.3-release/usr.sbin/named
/freebsd-9.3-release/usr.sbin/ndiscvt
/freebsd-9.3-release/usr.sbin/ndp
/freebsd-9.3-release/usr.sbin/newsyslog
/freebsd-9.3-release/usr.sbin/nfscbd
/freebsd-9.3-release/usr.sbin/nfsd
/freebsd-9.3-release/usr.sbin/nmtree
/freebsd-9.3-release/usr.sbin/ntp
/freebsd-9.3-release/usr.sbin/pc-sysinstall
/freebsd-9.3-release/usr.sbin/pciconf
/freebsd-9.3-release/usr.sbin/pkg
/freebsd-9.3-release/usr.sbin/pkg_install
/freebsd-9.3-release/usr.sbin/pkg_install/add
/freebsd-9.3-release/usr.sbin/pkg_install/info
/freebsd-9.3-release/usr.sbin/pkg_install/updating
/freebsd-9.3-release/usr.sbin/pmcannotate
/freebsd-9.3-release/usr.sbin/pmccontrol
/freebsd-9.3-release/usr.sbin/pmcstat
/freebsd-9.3-release/usr.sbin/portsnap
/freebsd-9.3-release/usr.sbin/portsnap/portsnap
/freebsd-9.3-release/usr.sbin/powerd
/freebsd-9.3-release/usr.sbin/ppp
/freebsd-9.3-release/usr.sbin/pw
/freebsd-9.3-release/usr.sbin/pwd_mkdb
/freebsd-9.3-release/usr.sbin/rarpd
/freebsd-9.3-release/usr.sbin/route6d
/freebsd-9.3-release/usr.sbin/rpc.lockd
/freebsd-9.3-release/usr.sbin/rpc.statd
/freebsd-9.3-release/usr.sbin/rpc.yppasswdd
/freebsd-9.3-release/usr.sbin/rpc.ypupdated
/freebsd-9.3-release/usr.sbin/rpc.ypxfrd
/freebsd-9.3-release/usr.sbin/rrenumd
/freebsd-9.3-release/usr.sbin/rtadvctl
/freebsd-9.3-release/usr.sbin/rtadvd
/freebsd-9.3-release/usr.sbin/rtprio
/freebsd-9.3-release/usr.sbin/rtsold
/freebsd-9.3-release/usr.sbin/rwhod
/freebsd-9.3-release/usr.sbin/sa
/freebsd-9.3-release/usr.sbin/sade
/freebsd-9.3-release/usr.sbin/sendmail
/freebsd-9.3-release/usr.sbin/service
/freebsd-9.3-release/usr.sbin/services_mkdb
/freebsd-9.3-release/usr.sbin/setfib
/freebsd-9.3-release/usr.sbin/smbmsg
/freebsd-9.3-release/usr.sbin/syslogd
/freebsd-9.3-release/usr.sbin/sysrc
/freebsd-9.3-release/usr.sbin/tcpdrop
/freebsd-9.3-release/usr.sbin/tcpdump
/freebsd-9.3-release/usr.sbin/timed
/freebsd-9.3-release/usr.sbin/timed/timed
/freebsd-9.3-release/usr.sbin/traceroute6
/freebsd-9.3-release/usr.sbin/tzsetup
/freebsd-9.3-release/usr.sbin/uhsoctl
/freebsd-9.3-release/usr.sbin/usbdump
/freebsd-9.3-release/usr.sbin/utxrm
/freebsd-9.3-release/usr.sbin/vidcontrol
/freebsd-9.3-release/usr.sbin/vipw
/freebsd-9.3-release/usr.sbin/wake
/freebsd-9.3-release/usr.sbin/watch
/freebsd-9.3-release/usr.sbin/watchdogd
/freebsd-9.3-release/usr.sbin/wlandebug
/freebsd-9.3-release/usr.sbin/wpa
/freebsd-9.3-release/usr.sbin/wpa/hostapd
/freebsd-9.3-release/usr.sbin/wpa/wpa_supplicant
/freebsd-9.3-release/usr.sbin/yp_mkdb
/freebsd-9.3-release/usr.sbin/ypbind
/freebsd-9.3-release/usr.sbin/yppush
/freebsd-9.3-release/usr.sbin/ypserv
/freebsd-9.3-release/usr.sbin/zic
267654 20-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


266982 02-Jun-2014 bjk

MFC r266285,266866:

------------------------------------------------------------------------
r266285 | bjk | 2014-05-16 23:05:52 -0400 (Fri, 16 May 2014) | 9 lines

Correct documentation of the limit on how much memory can be mlock()ed

vm.max_wired is a system-wide limit, not per-process. Reword the
section to make this more clear.

PR: docs/189214
Submitted by: Lawrence Chen (original text)
Approved by: hrs (mentor)

------------------------------------------------------------------------
r266866 | bjk | 2014-05-29 22:16:28 -0400 (Thu, 29 May 2014) | 5 lines

Minor mdoc fix

Submitted by: hrs
Approved by: hrs (mentor, implicit)

------------------------------------------------------------------------

PR: 189214
Approved by: re (gjb), hrs (mentor)


266498 21-May-2014 pho

MFC r265534:

msync(2) must return ENOMEM and not EINVAL when the address is outside the
allowed range or when one or more pages are not mapped. This according to
The Open Group Base Specifications Issue 7.

Sponsored by: EMC / Isilon storage division


262589 28-Feb-2014 brueffer

MFC: r262296

Match the correct variable to the variable description.

PR: 121173
Submitted by: Thomas Mueller <tmueller at sysgo.com>


261730 10-Feb-2014 brueffer

MFC: r261447

Fix a typo.


261561 06-Feb-2014 kib

MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).


261281 30-Jan-2014 pluknet

MFC r261075: Update EINVAL description.


260624 14-Jan-2014 pluknet

MFC r259921,259950:

Provide the manual page for aio_fsync(2).


260208 02-Jan-2014 jhb

MFC 255708,255711,255731:
Extend the support for exempting processes from being killed when swap is
exhausted.
- Add a new protect(1) command that can be used to set or revoke protection
from arbitrary processes. Similar to ktrace it can apply a change to all
existing descendants of a process as well as future descendants.
- Add a new procctl(2) system call that provides a generic interface for
control operations on processes (as opposed to the debugger-specific
operations provided by ptrace(2)). procctl(2) uses a combination of
idtype_t and an id to identify the set of processes on which to operate
similar to wait6().
- Add a PROC_SPROTECT control operation to manage the protection status
of a set of processes. MADV_PROTECT still works for backwards
compatability.
- Add a p_flag2 to struct proc (and a corresponding ki_flag2 to kinfo_proc)
the first bit of which is used to track if P_PROTECT should be inherited
by new child processes.


260199 02-Jan-2014 pluknet

MFC r259872:

The compile time constant limit on number of swap devices was removed in 5.2.
As such, remove the EINVAL error saying so. Currently the vm.nswapdev sysctl
just represents the number of added swap devices.


258870 03-Dec-2013 jhb

MFC 253471,253620,254430,254538:
Change mmap() to more optimally use superpages and provide support for
tweaking alignment of virtual mappings.
- Add a new address space allocation method (VMFS_OPTIMAL_SPACE) for
vm_map_find() that will try to alter the alignment of a mapping to match
any existing superpage mappings of the object being mapped. If no
suitable address range is found with the necessary alignment,
vm_map_find() will fall back to using the simple first-fit strategy
(VMFS_ANY_SPACE).
- Change mmap() without MAP_FIXED, shmat(), shm_map(), and the GEM mapping
ioctl to use VMFS_OPTIMAL_SPACE instead of VMFS_ANY_SPACE.
- MAP_ALIGNED(n) requests a mapping aligned on a boundary of (1 << n).
Requests for n >= number of bits in a pointer or less than the size of
a page fail with EINVAL. This matches the API provided by NetBSD.
- MAP_ALIGNED_SUPER is a special case of MAP_ALIGNED. It can be used
to optimize the chances of using large pages. By default it will align
the mapping on a large page boundary (the system is free to choose any
large page size to align to that seems best for the mapping request).
However, if the object being mapped is already using large pages, then
it will align the virtual mapping to match the existing large pages in
the object instead.
- Internally, VMFS_ALIGNED_SPACE is now renamed to VMFS_SUPER_SPACE, and
VMFS_ALIGNED_SPACE(n) is repurposed for specifying a specific alignment.
MAP_ALIGNED(n) maps to using VMFS_ALIGNED_SPACE(n), while
MAP_ALIGNED_SUPER maps to VMFS_SUPER_SPACE.
- mmap() of a device object now uses VMFS_OPTIMAL_SPACE rather than
explicitly using VMFS_SUPER_SPACE. All device objects are forced to
use a specific color on creation, so VMFS_OPTIMAL_SPACE is effectively
equivalent.

PR: ports/184173 (exp-run)


258341 19-Nov-2013 pluknet

MFC r257874:

Fix extattr(2) MLINKS.


257716 05-Nov-2013 jhb

MFC 253656: Enhance the description of NOTE_TRACK:
- NOTE_TRACK has never triggered a NOTE_TRACK event from the parent pid.
If NOTE_FORK is set, the listener will get a NOTE_FORK event from
the parent pid, but not a separate NOTE_TRACK event.
- Explicitly note that the event added to monitor the child process
preserves the fflags from the original event.
- Move the description of NOTE_TRACKERR under NOTE_TRACK as it is not a
bit for the user to set (which is what this list pupports to be).
Also, explicitly note that if an error occurs, the NOTE_CHILD event
will not be generated.


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


252627 03-Jul-2013 jilles

MFC r251181: fork(2): #include <sys/types.h> is not needed.


252622 03-Jul-2013 jilles

MFC r248774: accept(2): Mention inheritance of O_ASYNC and signal
destination.

While almost nobody uses O_ASYNC, and rightly so, the inheritance of the
related properties across accept() is a portability issue like the
inheritance of O_NONBLOCK.


252604 03-Jul-2013 jilles

MFC r250982: sigreturn(2): Remove ancient compatibility warning about 4.2BSD

The HISTORY subsection still says that sigreturn() was added in 4.3BSD.


252154 24-Jun-2013 glebius

Merge r248489:
There are actually two different cases when mlock(2) returns
ENOMEM. Clarify this, taking text from SUS.

Reviewed by: kib


250973 24-May-2013 jilles

MFC r248593: Allow O_CLOEXEC in posix_openpt() flags.

PR: kern/162374


250573 12-May-2013 jilles

dup(2): Remove incorrect sentence about getdtablesize().

There are no getdtablesize() bounds on the file descriptor to be duplicated;
it only has to be open. If the RLIMIT_NOFILE rlimit was decreased after
opening the file descriptor, it may be greater than or equal to
getdtablesize() but still valid.


250572 12-May-2013 jilles

MFC r249859: getdtablesize(2): Describe what this function actually does.

getdtablesize() returns the limit on new file descriptors; this says nothing
about existing descriptors.


250570 12-May-2013 jilles

MFC r249979: intro(2): Fix some errors in ENFILE and EMFILE descriptions.


247237 24-Feb-2013 jilles

MFC r246617: sigqueue(2): Fix typo (EEPERM -> EPERM).


247123 21-Feb-2013 pluknet

MFC r238802:
Update the 'C1x draft' reference to '.St -isoC-2011' mdoc macro.


247081 21-Feb-2013 kib

MFC r246485:
Document the detail of interaction between vfork and PT_TRACEME.


247080 21-Feb-2013 kib

MFC r246476:
Document the ERESTART translation to EINTR for devfs nodes.


246775 13-Feb-2013 kib

MFC r246117:
Rework the __vdso_* symbols attributes to only make the symbols weak,
but use normal references instead of weak. This makes the statically
linked binaries to use fast gettimeofday(2) by forcing the linker to
resolve references and providing the neccessary functions.


245842 23-Jan-2013 glebius

Merge r245841:
posix_fadvise(2) first appeared in FreeBSD 9.1


245788 22-Jan-2013 zont

MFC r245458:
- Use standard RETURN VALUES section.


245417 14-Jan-2013 zont

MFC r244679:
- Update manual pages accordingly to r244384 and r244385.

Approved by: kib (mentor)


244176 13-Dec-2012 kib

MFC r242961:
Document wait6() and waitid().

PR: standards/170346


244175 13-Dec-2012 kib

MFC r242960:
Implement the waitid() SUSv4 function using wait6() system call.

PR: standards/170346


242768 08-Nov-2012 jilles

MFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".


242298 29-Oct-2012 eadler

MFC r241855:
Update the kill(2) and killpg(2) man pages to the modern permission
checks. Also indicate killpg(2) is POSIX compliant.

Approved by: cperciva (implicit)


241996 24-Oct-2012 glebius

Merge r240385 from head:
Describe in detail required conditions for receiving the SCM_CREDS
control message and suggest to use LOCAL_CREDS setsockopt() for
reliability.


241316 07-Oct-2012 jhb

MFC 240132:
When WIFCONTINUED was added, the number of "first" macros grew from
three to four.


241224 05-Oct-2012 jilles

MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
condition.

Passing an invalid pointer results in undefined behaviour.

The wrappers in libthr access some of the data pointed to by the arguments
in userland, so that an invalid pointer will cause a signal and not an
[EFAULT] error return.

Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is
not a proper error in the sense that the call still commits (changing the
signal disposition or accepting the signal).


240819 22-Sep-2012 kib

MFC r237434:
Use struct vdso_timehands data to implement fast gettimeofday(2) and
clock_gettime(2) functions if supported.


239899 30-Aug-2012 kib

MFC r238667:
Fixes for symbols visibility issues and style in fcntl.h.


239859 29-Aug-2012 kib

MFC r238835:
Document F_DUP2FD_CLOEXEC.


239858 29-Aug-2012 kib

MFC r238615:
Document F_DUPFD_CLOEXEC.


239787 28-Aug-2012 jhb

MFC 230782,237274:
Refine the implementation of POSIX_FADV_NOREUSE to perform
POSIX_FADV_DONTNEED requests on the currently accessed portion of the
file on each read(2) or write(2) rather than using direct I/O. This
gives much better performance including read-ahead and write clustering
similar to normal read(2) and write(2) calls.

If subsequent read(2) and write(2) calls are sequential, then the
POSIX_FADV_DONTNEED requests will cover the entire sequentially-accessed
range.


237491 23-Jun-2012 marius

MFC: r231616, r232497, r234337

Add __aeabi_read_tp function required for thread-local storage.


237396 21-Jun-2012 marius

MFC: r233106, r233107

Fix TLS for statically linked binaries.


237395 21-Jun-2012 marius

MFC: r232582 (partial)

- Switch ARM to TLS Variant I.
- Fix TLS allocation for Variant I: both rtld and libc allocators
assume that tls_static_space includes space for TLS structure.
So increment calculated static size by the size of it.


237216 18-Jun-2012 eadler

MFC r233648:
Remove trailing whitespace per mdoc lint warning

Approved by: cperciva (implicit)


236224 29-May-2012 kib

MFC r236042:
Clarify the SEEK_HOLE description, it repositions the file pointer.


235839 23-May-2012 jamie

MFC r234712, r234744, r234934, r234988, r235294, r235335,
and bits of r235337 and r235355:

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


235580 18-May-2012 gjb

MFC r235140:

General mdoc(7) and typo fixes.

PR: 167713


235088 06-May-2012 eadler

MFC r234820:
pread(2) might fail with EBUSY, so document it

PR: docs/167201
Approved by: cperciva (implicit)


234966 03-May-2012 eadler

MFC r234131:
Return EBADF instead of EMFILE from dup2 when the second argument is
outside the range of valid file descriptors

PR: kern/164970
Approved by: cperciva (implicit)


234717 26-Apr-2012 gjb

MFC r232157, r232158:

r232157:
Fix various typos in manual pages.

Submitted by: amdmi3
PR: 165431

r232158:
Whitespace cleanup:
o Wrap sentences on to new lines
o Cleanup trailing whitespace


234628 24-Apr-2012 bjk

MFC r233160:
Expound a bit more about the system maximum number of FIBs,
how it may be set, and current limitations on the value.

PR: docs/157453
Approved by: hrs (mentor)


233942 06-Apr-2012 ed

MFC r233002, r233003 and r233012:

Remove impossible error condition from the man page.

On FreeBSD, all processes have a process group, so it is impossible for
kill(2) to fail this way. POSIX also doesn't mention this error
condition.


233731 31-Mar-2012 kib

MFC r233102:
Do not claim that msync(2) is obsoleted.
Document EIO from msync(2).


233399 23-Mar-2012 eadler

MFC r230155:
Make man page wording more clear

PR: docs/164078
Approved by: cperciva (implicit)


232806 11-Mar-2012 kib

MFC r232180:
Document SO_PROTOCOL socket option.


232290 29-Feb-2012 davidxu

MFC 230857:

If multiple threads call kevent() to get AIO events on same kqueue fd,
it is possible that a single AIO event will be reported to multiple
threads, it is not threading friendly, and the existing API can not
control this behavior.
Allocate a kevent flags field sigev_notify_kevent_flags for AIO event
notification in sigevent, and allow user to pass EV_CLEAR, EV_DISPATCH
or EV_ONESHOT to AIO kernel code, user can control whether the event
should be cleared once it is retrieved by a thread. This change should
be comptaible with existing application, because the field should have
already been zero-filled, and no additional action will be taken by
kernel.

PR: kern/156567

MFC 231006:

Add 32-bit compat code for AIO kevent flags introduced in revision 230857.

MFC 231724:

Add notes about sigev_notify_kevent_flags introduced in revision 230857
which enables thread-friendly polling on same fd for AIO events.

Reviewed by: delphij

MFC 231777:

Bump .Dd date for previous revision.


231950 21-Feb-2012 kib

MFC r231902:
Document PL_FLAG_CHILD.


231896 18-Feb-2012 jamie

MFC r231236: Acknowledge that jail_attach and jail_remove can return EPERM.


231566 12-Feb-2012 brooks

MFC 231196:
eui64_aton and eui64_ntoa are actually the equivalent of ether_aton_r and
ether_nota_r and do not use static variables so remove the note copied
from ethers.3 saying they do.

Reported by: bms


231290 09-Feb-2012 bapt

MFH r226166: Document some not-so-recently added trace points

Approved by: des (mentor)


230771 30-Jan-2012 pluknet

MFC r230613:
Remove a left-over reference to make.conf(5) for now-defunct -DVM_STACK


230723 29-Jan-2012 kib

MFC r230460:
Clarify the implementation-defined behaviour in case of close(2)
returning error.


229723 06-Jan-2012 jhb

MFC 227070,227341,227502:
Add the posix_fadvise(2) system call. It is somewhat similar to
madvise(2) except that it operates on a file descriptor instead of a
memory region. It is currently only supported on regular files.

Note that this adds a new VOP, so all filesystem modules must be
recompiled.

Approved by: re (kib)


229597 05-Jan-2012 pluknet

MFC r228970:

Fix manual section for acl_get(3) and mac_get(3) family functions.


229489 04-Jan-2012 pluknet

MFC r227792:

Add history for setsockopt(2).

PR: docs/162719
Submitted by: Niclas Zeising <niclas at zeising gmail>


229377 03-Jan-2012 kib

MFC r225974:
Remove no longer valid statement about ARM.

MFC r226066:
Remove no longer needed BUGS section.


229027 30-Dec-2011 kib

MFC r227622:
Fix typo.


228070 28-Nov-2011 rwatson

Merge r228040 from head to stable/9:

Cross-reference capsicum.4 from cap_enter.2 and cap_new.2.

Sponsored by: Google, Inc.

Approved by: re (kib)


227681 18-Nov-2011 dougb

MFC r227416:

Document that flock can return ENOLCK

Approved by: re (kib)


226994 01-Nov-2011 pluknet

MFC r226790:
Fix typo in timer_getoverrun cross-reference.

Approved by: re (kib)


225736 23-Sep-2011 kensmith

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

Approved by: re (implicit)


225172 25-Aug-2011 kib

Clarify the behaviour of sigwait() on signal interruption, and note
the difference between sigwait() and sigtimedwait()/sigwaitinfo().

Approved by: re (bz)


224987 18-Aug-2011 jonathan

Add experimental support for process descriptors

A "process descriptor" file descriptor is used to manage processes
without using the PID namespace. This is required for Capsicum's
Capability Mode, where the PID namespace is unavailable.

New system calls pdfork(2) and pdkill(2) offer the functional equivalents
of fork(2) and kill(2). pdgetpid(2) allows querying the PID of the remote
process for debugging purposes. The currently-unimplemented pdwait(2) will,
in the future, allow querying rusage/exit status. In the interim, poll(2)
may be used to check (and wait for) process termination.

When a process is referenced by a process descriptor, it does not issue
SIGCHLD to the parent, making it suitable for use in libraries---a common
scenario when using library compartmentalisation from within large
applications (such as web browsers). Some observers may note a similarity
to Mach task ports; process descriptors provide a subset of this behaviour,
but in a UNIX style.

This feature is enabled by "options PROCDESC", but as with several other
Capsicum kernel features, is not enabled by default in GENERIC 9.0.

Reviewed by: jhb, kib
Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224864 14-Aug-2011 rwatson

Cross-reference cap_new(2) from dup(2), as they have similar functionality.

Approved by: re (kib)


224227 20-Jul-2011 jonathan

Add cap_new(2) and cap_getrights(2) symbols to libc.

These system calls have already been implemented in the kernel; now we
hook up libc symbols so userspace can drive them.

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


223967 12-Jul-2011 kib

Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are
delivered, not returned.

MFC after: 1 week


223217 18-Jun-2011 obrien

Note how wait(3) is implemented.


222037 17-May-2011 jilles

mq_setattr(2): Add missing const to man page.

The declaration in the header file is correct.

MFC after: 1 week


221845 13-May-2011 pluknet

Update sticky(7) cross references.

PR: docs/124468
X-MFC with: r218998


220975 23-Apr-2011 gjb

- Clarification on kld_file_stat.size
- While here, remove a few C comments that don't seem to contribute
anything additional to the man page.

PR: 146047
Submitted by: arundel
MFC after: 3 days


220791 18-Apr-2011 mdf

Add the posix_fallocate(2) syscall. The default implementation in
vop_stdallocate() is filesystem agnostic and will run as slow as a
read/write loop in userspace; however, it serves to correctly
implement the functionality for filesystems that do not implement a
VOP_ALLOCATE.

Note that __FreeBSD_version was already bumped today to 900036 for any
ports which would like to use this function.

Also reserve space in the syscall table for posix_fadvise(2).

Reviewed by: -arch (previous version)


220646 14-Apr-2011 jilles

getfh(2): Add xrefs for fhopen(2), open(2), stat(2).

MFC after: 1 week


220253 01-Apr-2011 kib

Fix mdoc errors.

Submitted by: ru
MFC after: 3 days


220165 30-Mar-2011 trasz

Expose the rctl(2) API in libc.


220000 25-Mar-2011 kib

Document O_CLOEXEC.

Reviewed by: jhb
MFC after: 1 week


219710 17-Mar-2011 marcel

When building libc with the syscall compatibility, don't also generate the
syscall assembly files. This results in conflicting dependencies and can
cause unexpected results for parallel builds. This is because the .c file
and the .S file both generate the same .o file.

Submitted by: Simon Gerraty <sjg@juniper.net>
Sponsored by: Juniper Networks


219682 15-Mar-2011 jilles

rfork(2): Discourage rfork_thread-like approaches.

Calling rfork_thread(3) does not interoperate with pthreads and global state
is not properly protected.

Remove the BUGS section suggesting LinuxThreads entirely. With the current
pthread library libthr, all threads are kernel-level entities so there seems
little reason to use LinuxThreads.


219565 12-Mar-2011 rwatson

Move cap_enter(2) and cap_getmode(2) symbols from FBSD_1.1 to FBSD_1.2.

Suggested by: kib
Obtained from: Capsicum Project
Sponsored by: Google
MFC after: 3 months


219327 06-Mar-2011 trasz

Move getloginclass(2) and setloginclass(2) to FBSD_1.2, where they should've
been added in the first place.


219326 06-Mar-2011 trasz

Add FBSD_1.2; syscalls added in 9-CURRENT are supposed to go there.

Suggested by: kib


219322 06-Mar-2011 trasz

Add manual page for getloginclass(2) and setloginclass(2).


219304 05-Mar-2011 trasz

Add two new system calls, setloginclass(2) and getloginclass(2). This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL. This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).

Reviewed by: kib (as part of a larger patch)


219224 03-Mar-2011 rwatson

Make cap_new(2) and cap_getmode(2) symbols from libc public so applications
can link against them. Add man pages for the new system calls, with one
errant forward reference to changes not yet present in FreeBSD, but soon
will be.

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


219223 03-Mar-2011 rwatson

Add description of ECAPMODE to errno(2) man page.

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


218989 24-Feb-2011 pluknet

Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.
As it was pointed out by Alan Cox, that no longer serves its purpose with
the modern UMA allocator compared to the old one used in 4.x days.

The removal of sysctl eliminates max_proc_mmap type overflow leading to
the broken mmap(2) seen with large amount of physical memory on arches
with factually unbound KVA space (such as amd64). It was found that
slightly less than 256GB of physmem was enough to trigger the overflow.

Reviewed by: alc, kib
Approved by: avg (mentor)
MFC after: 2 months


217850 25-Jan-2011 kib

Emit .note.GNU-stack for the syscall stubs generated by libc only on
architectures that support this .note. In particular, do not unneccessary
emit the notes on ia64 and sparc64, which ABI require non-executable stacks.

Tested by: marcel


217820 25-Jan-2011 kib

Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid.

MFC after: 2 weeks


217704 21-Jan-2011 jilles

getgroups(2): Remove mention of <sys/param.h> and refer to sysconf(3).

Because {NGROUPS_MAX} may become variable, its value should be obtained
using sysconf(3). If a #define is used anyway, it should be obtained by
including <limits.h> as that is in POSIX like getgroups(2) itself is.
<sys/param.h> is not in POSIX.

MFC after: 1 week


217484 16-Jan-2011 jilles

mknod(2): The required include is <sys/stat.h>, not <unistd.h>.

This is what SUSv4 requires, and also the only thing that works if strict
standards compliance is requested or mknodat() is needed.

PR: standards/123688
Submitted by: gcooper
MFC after: 1 week


217099 07-Jan-2011 kib

Emit .note.GNU-stack for the syscall stubs generated by libc.


216515 18-Dec-2010 brucec

Sort cross references by section.

Reported by: pluknet


216508 17-Dec-2010 brucec

Update shmget(2) with POSIX access permissions and remove non-standard SHM_R,
SHM_W and machine/param.h.


215178 12-Nov-2010 luigi

This commit implements the SO_USER_COOKIE socket option, which lets
you tag a socket with an uint32_t value. The cookie can then be
used by the kernel for various purposes, e.g. setting the skipto
rule or pipe number in ipfw (this is the reason SO_USER_COOKIE has
been implemented; however there is nothing ipfw-specific in its
implementation).

The ipfw-related code that uses the optopn will be committed separately.

This change adds a field to 'struct socket', but the struct is not
part of any driver or userland-visible ABI so the change should be
harmless.

See the discussion at
http://lists.freebsd.org/pipermail/freebsd-ipfw/2009-October/004001.html

Idea and code from Paul Joe, small modifications and manpage
changes by myself.

Submitted by: Paul Joe
MFC after: 1 week


214514 29-Oct-2010 jh

- Note that non-superusers are not allowed to set the SF_ARCHIVED
flag. [1]
- Note that also fchflags(2) will return EPERM for attempts to set or
unset the SF_SNAPSHOT flag.

Submitted by: Garrett Cooper [1]
MFC after: 1 week


214132 21-Oct-2010 uqs

mdoc: make pages render with mandoc

It's a bit more pedantic regarding .Bl list elements. This has an added
benefit of unbreaking the ipfw(8) manpage, where groff was silently
skipping one list element.


213785 13-Oct-2010 rpaulo

Clang related fixes:
* When calling syslog(), pass a format string.
* Define YY_NO_INPUT on nslexer.l

Submitted by: Norberto Lopes <nlopes.ml at gmail.com>


213573 08-Oct-2010 uqs

mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd


212965 21-Sep-2010 alc

Fix exec_imgact_shell()'s handling of two error cases: (1) Previously, if
the first line of a script exceeded MAXSHELLCMDLEN characters, then
exec_imgact_shell() silently truncated the line and passed on the truncated
interpreter name or argument. Now, exec_imgact_shell() will fail and return
ENOEXEC, which is the commonly used errno among Unix variants for this type
of error. (2) Previously, exec_imgact_shell()'s check on the length of the
interpreter's name was ineffective. In other words, exec_imgact_shell()
could not possibly fail and return ENAMETOOLONG. The reason being that the
length of the interpreter name had to exceed MAXSHELLCMDLEN characters in
order that ENAMETOOLONG be returned. But, the search for the end of the
interpreter name stops after at most MAXSHELLCMDLEN - 2 characters are
scanned. (In the end, this particular error is eventually discovered
outside of exec_imgact_shell() and ENAMETOOLONG is returned. So, the real
effect of this second change is that the error is detected earlier, in
exec_imgact_shell().)

Update the definition of MAXINTERP to the actual limit on the size of
the interpreter name that has been in effect since r142453 (from
2005).

In collaboration with: kib


212492 12-Sep-2010 gjb

Bump dates in dbopen(3) and cpuset_getaffinity(2) from r212441 and
r212438, repectively.

Approved by: keramida (mentor)
MFC after: 1 week


212438 10-Sep-2010 gjb

Add EINVAL to list of possible return values for cpuset_getaffinity(2).

PR: 149978
Submitted by: gcooper
Patch by: gcooper
Approved by: keramida (mentor)
MFC after: 1 week


212405 10-Sep-2010 davidxu

Because POSIX does not allow EINTR to be returned from sigwait(),
add a wrapper for it in libc and rework the code in libthr, the
system call still can return EINTR, we keep this feature.

Discussed on: thread
Reviewed by: jilles


212269 06-Sep-2010 gjb

Add ECONNRESET to list of possible errors in connect(2).

PR: 148683
Submitted by: Gennady Proskurin <gpr at mail dot ru>
Approved by: keramida (mentor)
MFC after: 1 week


211966 29-Aug-2010 kib

Use NULL instead of 0 for pointer in example.

MFC after: 3 days


211937 28-Aug-2010 alc

Add the MAP_PREFAULT_READ option to mmap(2).

Reviewed by: jhb, kib


211936 28-Aug-2010 brucec

Fix incorrect usage of 'assure' and 'insure'.

Approved by: rrs (mentor)


211774 24-Aug-2010 imp

Powerpc is special here. powerpc and powerpc64 use different ABIs, so
their implementations aren't in the same files. Introduce LIBC_ARCH
and use that in preference to MACHINE_CPUARCH. Tested by amd64 and
powerpc64 builds (thanks nathanw@)


211750 24-Aug-2010 kib

Remove extra FreeBSD tag.

MFC after: 3 days


211748 24-Aug-2010 kib

Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition into
the separate .o for libc_pic.a. This prevents rtld from making the
symbol global.

Putting the stack_protector_compat.c into the public domain acknowledged
by kan.

Reviewed by: kan
MFC after: 2 weeks


211725 23-Aug-2010 imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.


211416 17-Aug-2010 kib

Use aux vector to get values for SSP canary, pagesize, pagesizes array,
number of host CPUs and osreldate.

This eliminates the last sysctl(2) calls from the dynamically linked image
startup.

No objections from: kan
Tested by: marius (sparc64)
MFC after: 1 month


211397 16-Aug-2010 joel

Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
translating these manual pages. Minor corrections by me.

Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>


210933 06-Aug-2010 joel

Fix typos and spelling mistakes.


210772 02-Aug-2010 joel

Spelling fixes.


210641 30-Jul-2010 uqs

Fix a couple of typos.

PR: docs/148891
Submitted by: olgeni
MFC after: 1 week


210551 27-Jul-2010 trasz

Update mlockall(2) to mention that it's superuser-only syscall, just
like the mlock(2) manual page says. Update mlock(2) to say that hitting
RLIMIT_MEMLOCK results in ENOMEM, not EAGAIN.

MFC after: 1 month


209873 10-Jul-2010 kib

Document pl_siginfo and PT_FLAG_SI for PT_LWPINFO.

MFC after: 1 month


209542 26-Jun-2010 pjd

Just like in case of setgroups(2), for getgroups(2) also advice including
sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS
definitions.


208914 08-Jun-2010 uqs

mdoc: remove literal tabs where they don't belong


208586 27-May-2010 cperciva

Change the current working directory to be inside the jail created by
the jail(8) command. [10:04]

Fix a one-NUL-byte buffer overflow in libopie. [10:05]

Correctly sanity-check a buffer length in nfs mount. [10:06]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:04.jail
Security: FreeBSD-SA-10:05.opie
Security: FreeBSD-SA-10:06.nfsclient


208513 24-May-2010 kib

Improve the documentation for PT_LWPINFO. Note that some features are
not implemented on MIPS and ARM.

MFC after: 1 month


208027 13-May-2010 uqs

mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru


207923 11-May-2010 brueffer

Document FIONREAD, FIONWRITE and FIONSPACE.

Obtained from: NetBSD
Submitted by: emaste
MFC after: 1 week


207757 07-May-2010 jilles

sigprocmask(2): pthread_sigmask(3) must be used in threaded processes.
Although libthr's pthread_sigmask() just calls sigprocmask() and this is
unlikely to change, mention this POSIX requirement on applications.

MFC after: 1 week


207736 07-May-2010 mckusick

Merger of the quota64 project into head.

This joint work of Dag-Erling Smørgrav and myself updates the
FFS quota system to support both traditional 32-bit and new 64-bit
quotas (for those of you who want to put 2+Tb quotas on your users).

By default quotas are not compiled into the kernel. To include them
in your kernel configuration you need to specify:

options QUOTA # Enable FFS quotas

If you are already running with the current 32-bit quotas, they
should continue to work just as they have in the past. If you
wish to convert to using 64-bit quotas, use `quotacheck -c 64';
if you wish to revert from 64-bit quotas back to 32-bit quotas,
use `quotacheck -c 32'.

There is a new library of functions to simplify the use of the
quota system, do `man quotafile' for details. If your application
is currently using the quotactl(2), it is highly recommended that
you convert your application to use the quotafile interface.
Note that existing binaries will continue to work.

Special thanks to John Kozubik of rsync.net for getting me
interested in pursuing 64-bit quota support and for funding
part of my development time on this project.


207735 06-May-2010 jilles

Update xrefs from 4.3BSD to modern signal functions in various man pages.

sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and
sigblock(2) to sigprocmask(2), sigpause(2) to sigsuspend(2).

Some legacy man pages still refer to them, that is OK.


207734 06-May-2010 jilles

sigaltstack(2): document some modernizations:
* un-document 'struct sigaltstack' tag for stack_t as this is BSD-specific;
this doesn't seem useful enough to document as such
* alternate stacks are per thread, not per process
* update error codes to what the kernel does and POSIX requires

MFC after: 1 week


207604 04-May-2010 kib

Document RUSAGE_THREAD.

Reviewed by: bde
MFC after: 1 week


207190 25-Apr-2010 jilles

unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY like rmdir()
for non-empty directories.

POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY,
following BSD tradition.

MFC after: 1 week


206802 18-Apr-2010 kib

Revert r206649.

Simplify the presented declaration of struct sigaction, noting the
caveat in the text. Real layout of the structure and exposed
implementation namespace only obfuscates the usage.

Submitted by: bde
MFC after: 3 days


206649 15-Apr-2010 kib

Still reference struct __sigaction with clarification when this form
of argument declaration is needed.

Discussed with: bde
MFC after: 3 days


206549 13-Apr-2010 kib

Align the declaration for sa_sigaction with POSIX.

MFC after: 3 days


205794 28-Mar-2010 ed

Don't forget to bump the date in the man page.


205792 28-Mar-2010 ed

Rename st_*timespec fields to st_*tim for POSIX 2008 compliance.

A nice thing about POSIX 2008 is that it finally standardizes a way to
obtain file access/modification/change times in sub-second precision,
namely using struct timespec, which we already have for a very long
time. Unfortunately POSIX uses different names.

This commit adds compatibility macros, so existing code should still
build properly. Also change all source code in the kernel to work
without any of the compatibility macros. This makes it all a less
ambiguous.

I am also renaming st_birthtime to st_birthtim, even though it was a
local extension anyway. It seems Cygwin also has a st_birthtim.


205536 23-Mar-2010 jhb

Reject attempts to create a MAP_ANON mapping with a non-zero offset.

PR: kern/71258
Submitted by: Alexander Best
MFC after: 2 weeks


205423 21-Mar-2010 ed

Actually make O_DIRECTORY work.

According to POSIX open() must return ENOTDIR when the path name does
not refer to a path name. Change vn_open() to respect this flag. This
also simplifies the Linuxolator a bit.


204588 02-Mar-2010 joel

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD


203990 17-Feb-2010 phk

Mention EISDIR as a possible errno.


203783 11-Feb-2010 marcel

o Add support for COMPAT_IA32.
o Incorporate review comments:
- Properly reference and lock the map
- Take into account that the VM map can change inbetween requests
- Add the fileid and fsid attributes

Credits: kib@
Reviewed by: kib@


203696 09-Feb-2010 marcel

Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process. PT_VM_TIMESTAMP can be
used to check if the memory map changed since the last time to avoid
iterating over all the VM entries unnecesarily.

MFC after: 1 month


203161 29-Jan-2010 rwatson

You must include fcntl.h (in practice) to be able to do anything useful
with shm_open(2), as otherwise the O_ flags are undefined.

MFC after: 3 days


203036 26-Jan-2010 trasz

Add information about when nmount(2) was introduced.


202721 20-Jan-2010 pjd

The waitpid(2) function needs neither sys/time.h nor sys/resource.h.


202176 12-Jan-2010 brueffer

Miscellaneous mdoc, spelling and inconsistency fixes.

PR: 142573, 142576 (mostly)
Submitted by: brucec
MFC after: 1 week


201892 09-Jan-2010 delphij

Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).

Reviewed by: davidxu
MFC after: 2 weeks


201760 07-Jan-2010 kib

Further fix grammar.

Suggested by: alc
MFC after: 3 days


201759 07-Jan-2010 brueffer

Fix a typo and bump date for the previous commit.


201743 07-Jan-2010 kib

Give some information on SF_MNOWAIT flag.

MFC after: 3 days


201350 31-Dec-2009 brooks

The devices that supported EVFILT_NETDEV kqueue filters were removed in
r195175. Remove all definitions, documentation, and usage.

fifo_misc.c:
Remove all kqueue tests as fifo_io.c performs all those that
would have remained.

Reviewed by: rwatson
MFC after: 3 weeks
X-MFC note: don't change vlan_link_state() function signature


201204 29-Dec-2009 kib

Document _FAST and _PRECISE clocks.

Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 3 days


201201 29-Dec-2009 kib

Document CLOCK_SECOND, add cross-reference from time(3) to clock_gettime(2).

Based on submission by: pluknet gmail com
MFC after: 3 days


200589 15-Dec-2009 jilles

cpuset(2): fix a typo and a markup error in the man page

MFC after: 1 week


200150 05-Dec-2009 ed

Fix many "function declaration isn't a prototype" warnings in libc.

I've only fixed code that seems to be written by `us'. There are still
many warnings like this present in resolv/, rpc/, stdtime/ and yp/.


199985 01-Dec-2009 keramida

Describe what setpgid(2) does when pgid=0. The text has been
copied from NetBSD's manpage, and it also matches the behavior
described by the Open Group's online copy of setpgid.2 at
http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html

Obtained from: NetBSD
Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr>
MFC after: 1 week


199257 13-Nov-2009 brueffer

Remove a note about vfork(4) going to be eliminated, it's here to stay.

Submitted by: kib
MFC after: 1 week


199255 13-Nov-2009 brueffer

Improved the manpage description. The committed wording
was provided by jhb.

PR: 140528
Submitted by: Chris Petrik <chris@officialunix.com>
Discussed with: remko, jhb and the submitter
MFC after: 1 week


198973 06-Nov-2009 ed

Add MAP_ANONYMOUS.

Many operating systems also provide MAP_ANONYMOUS. It's not hard to
support this ourselves, we'd better add it to make it more likely for
applications to work out of the box.

Reviewed by: alc (mman.h)


198781 02-Nov-2009 cperciva

Attempt to reduce accidental foot-shooting by pointing out that
accept(2)ed sockets do not necessarily inherit O_NONBLOCK from
listening sockets on non-FreeBSD platforms.

Feet shot: cperciva
MFC after: 1 month


198538 28-Oct-2009 kib

Move pselect(3) man page to section 2.

Noted by: jhb
MFC after: 1 month


198508 27-Oct-2009 kib

Current pselect(3) is implemented in usermode and thus vulnerable to
well-known race condition, which elimination was the reason for the
function appearance in first place. If sigmask supplied as argument to
pselect() enables a signal, the signal might be delivered before thread
called select(2), causing lost wakeup. Reimplement pselect() in kernel,
making change of sigmask and sleep atomic.

Since signal shall be delivered to the usermode, but sigmask restored,
set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK
should be cleared by ast() in case signal was not gelivered during
syscall execution.

Reviewed by: davidxu
Tested by: pho
MFC after: 1 month


197968 11-Oct-2009 jilles

Make openat(2) a cancellation point.

This is required by POSIX and matches open(2).

Reviewed by: kib, jhb
MFC after: 1 month


197958 11-Oct-2009 kib

In nanosleep(2), note that the calling thread is put to sleep, not the
whole process. Also explicitely name the parameter that specifies
sleep interval.


197949 11-Oct-2009 das

Document errno codes added in r144530.


197841 07-Oct-2009 rwatson

Add a new errno, ENOTCAPABLE, to be returned when a process requests an
operation on a file descriptor that is not authorized by the descriptor's
capability flags.

MFC after: 1 month
Sponsored by: Google


197579 28-Sep-2009 delphij

Add two new fcntls to enable/disable read-ahead:

- F_READAHEAD: specify the amount for sequential access. The amount is
specified in bytes and is rounded up to nearest block size.
- F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.

Submitted by: Igor Sysoev <is rambler-co ru>
Reviewed by: kib@
MFC after: 1 month


197312 18-Sep-2009 brueffer

Fix setfib(1) section number.

PR: 133765
Submitted by: Konstantin Zolotukhin <erebus@gorodok.net>
MFC after: 3 days


197277 17-Sep-2009 kan

Make libc.a provide __stack_chk_fail_local weak alias. This is
needed to satisfy static libraries that are compiled with -fpic
and linked into static binary afterwards. Several libraries in
gcc are examples of such static libs.


197243 16-Sep-2009 sson

Add EV_RECEIPT to kevents.

EV_RECEIPT is useful to disambiguating error conditions when multiple
events structures are passed to kevent(2). The error code is returned
in the data field and EV_ERROR is set.

Approved by: rwatson (co-mentor)


197242 16-Sep-2009 sson

Add the EV_DISPATCH flag to kevents.

When the EV_DISPATCH flag is used the event source will be disabled
immediately after the delivery of an event. This is similar to the
EV_ONESHOT flag but it doesn't delete the event.

Approved by: rwatson (co-mentor)


197241 16-Sep-2009 sson

Add EVFILT_USER to kevents.

Add user events support to kernel events which are not associated with any
kernel mechanism but are triggered by user level code. This is useful for
adding user level events to an event handler that may also be monitoring
kernel events.

Approved by: rwatson (co-mentor)


196880 06-Sep-2009 pjd

Synchornize description in manual page with strerror() output.


195882 26-Jul-2009 alc

Eliminate a stale paragraph from the BUGS section. This "bug" was
eliminated in r195693.

Approved by: re (kensmith)


195763 19-Jul-2009 jilles

Correct AT_SYMLINK_FOLLOW flag name in linkat(2) man page.

Approved by: re (kib), ed (mentor)


195697 14-Jul-2009 kan

Second attempt at eliminating .text relocations in shared libraries
compiled with stack protector.

Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC
generates local calls to this function which result in absolute
relocations put into position-independent code segment, making dynamic
loader do extra work every time given shared library is being relocated
and making affected text pages non-shareable.

Reviewed by: kib
Approved by: re (kib)


195693 14-Jul-2009 jhb

- Change mmap() to fail requests with EINVAL that pass a length of 0. This
behavior is mandated by POSIX.
- Do not fail requests that pass a length greater than SSIZE_MAX
(such as > 2GB on 32-bit platforms). The 'len' parameter is actually
an unsigned 'size_t' so negative values don't really make sense.

Submitted by: Alexander Best alexbestms at math.uni-muenster.de
Reviewed by: alc
Approved by: re (kib)
MFC after: 1 week


195656 13-Jul-2009 trasz

Move msg{snd,recv,get,ctl} manual pages from section 3 to 2.

Approved by: re (kib)


195458 08-Jul-2009 trasz

There is an optimization in chmod(1), that makes it not to call chmod(2)
if the new file mode is the same as it was before; however, this
optimization must be disabled for filesystems that support NFSv4 ACLs.
Chmod uses pathconf(2) to determine whether this is the case - however,
pathconf(2) always follows symbolic links, while the 'chmod -h' doesn't.

This change adds lpathconf(3) to make it possible to solve that problem
in a clean way.

Reviewed by: rwatson (earlier version)
Approved by: re (kib)


195380 05-Jul-2009 pjd

- Don't suggest opening file for writing in preparation for fexecve(2).
- execve(2)/fexecve(2) won't return ETXTBSY if file is open for reading.

Approved by: re (kib)


195211 30-Jun-2009 trasz

Make it clear where to look for for protocol-specific socket options.

Reviewed by: rwatson
Approved by: re (kib)


195172 29-Jun-2009 kib

Make the structure definitions in the man pages match the real code, and
remove no longer valid caution.

Approved by: re (kensmith)


195152 29-Jun-2009 kan

Back out previous revision until better tested fix is ready.

Approved by: re (impliciti, by approving previos check-in)


195151 28-Jun-2009 kan

Eliminate .text relocations in shared libraries compiled with stack protector.

Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC generates
local calls to this function which result in absolute relocations put into
position-independent code segment, making dynamic loader do extra work everys
time given shared library is being relocated and making affected text pages
non-shareable.

Reviewed by: kib
Approved by: re (kensmith)


194956 25-Jun-2009 trasz

Bump manual page timestamps.


194955 25-Jun-2009 trasz

Add NFSv4 ACL support to libc.

This adds the following functions to the acl(3) API: acl_add_flag_np,
acl_clear_flags_np, acl_create_entry_np, acl_delete_entry_np,
acl_delete_flag_np, acl_get_extended_np, acl_get_flag_np, acl_get_flagset_np,
acl_set_extended_np, acl_set_flagset_np, acl_to_text_np, acl_is_trivial_np,
acl_strip_np, acl_get_brand_np. Most of them are similar to what Darwin
does. There are no backward-incompatible changes.

Approved by: rwatson@


194910 24-Jun-2009 jhb

Change the ABI of some of the structures used by the SYSV IPC API:
- The uid/cuid members of struct ipc_perm are now uid_t instead of unsigned
short.
- The gid/cgid members of struct ipc_perm are now gid_t instead of unsigned
short.
- The mode member of struct ipc_perm is now mode_t instead of unsigned short
(this is merely a style bug).
- The rather dubious padding fields for ABI compat with SV/I386 have been
removed from struct msqid_ds and struct semid_ds.
- The shm_segsz member of struct shmid_ds is now a size_t instead of an
int. This removes the need for the shm_bsegsz member in struct
shmid_kernel and should allow for complete support of SYSV SHM regions
>= 2GB.
- The shm_nattch member of struct shmid_ds is now an int instead of a
short.
- The shm_internal member of struct shmid_ds is now gone. The internal
VM object pointer for SHM regions has been moved into struct
shmid_kernel.
- The existing __semctl(), msgctl(), and shmctl() system call entries are
now marked COMPAT7 and new versions of those system calls which support
the new ABI are now present.
- The new system calls are assigned to the FBSD-1.1 version in libc. The
FBSD-1.0 symbols in libc now refer to the old COMPAT7 system calls.
- A simplistic framework for tagging system calls with compatibility
symbol versions has been added to libc. Version tags are added to
system calls by adding an appropriate __sym_compat() entry to
src/lib/libc/incldue/compat.h. [1]

PR: kern/16195 kern/113218 bin/129855
Reviewed by: arch@, rwatson
Discussed with: kan, kib [1]


194767 23-Jun-2009 kib

Usermode portion of the support for swap allocation accounting:
- update for getrlimit(2) manpage;
- support for setting RLIMIT_SWAP in login class;
- addition to the limits(1) and sh and csh limit-setting builtins;
- tuning(7) documentation on the sysctls controlling overcommit.

In collaboration with: pho
Reviewed by: alc
Approved by: re (kensmith)


194762 23-Jun-2009 jamie

Add a limit for child jails via the "children.cur" and "children.max"
parameters. This replaces the simple "allow.jails" permission.

Approved by: bz (mentor)


194494 19-Jun-2009 brooks

In preparation for raising NGROUPS and NGROUPS_MAX, change base
system callers of getgroups(), getgrouplist(), and setgroups() to
allocate buffers dynamically. Specifically, allocate a buffer of size
sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow).

This (or similar gymnastics) is required for the code to actually follow
the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime
and where getgroups may return {NGROUPS_MAX}+1 results on systems like
FreeBSD which include the primary group.

In id(1), don't pointlessly add the primary group to the list of all
groups, it is always the first result from getgroups(). In principle
the old code was more portable, but this was only done in one of the two
places where getgroups() was called to the overall effect was pointless.

Document the actual POSIX requirements in the getgroups(2) and
setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we
may in the future.

MFC after: 2 weeks


194386 17-Jun-2009 jhb

Retire the unused stub for the nfsclnt() system call.


194267 15-Jun-2009 ed

Add revoke(1).

While hacking on TTY code, I often miss a small utility to revoke my own
(pseudo-)terminals. This small utility is just a small wrapper around
the revoke(2) call, so you can destroy your very own login sessions.

Approved by: re


194262 15-Jun-2009 jhb

Add a new 'void closefrom(int lowfd)' system call. When called, it closes
any open file descriptors >= 'lowfd'. It is largely identical to the same
function on other operating systems such as Solaris, DFly, NetBSD, and
OpenBSD. One difference from other *BSD is that this closefrom() does not
fail with any errors. In practice, while the manpages for NetBSD and
OpenBSD claim that they return EINTR, they ignore internal errors from
close() and never return EINTR. DFly does return EINTR, but for the common
use case (closing fd's prior to execve()), the caller really wants all
fd's closed and returning EINTR just forces callers to call closefrom() in
a loop until it stops failing.

Note that this implementation of closefrom(2) does not make any effort to
resolve userland races with open(2) in other threads. As such, it is not
multithread safe.

Submitted by: rwatson (initial version)
Reviewed by: rwatson
MFC after: 2 weeks


193214 01-Jun-2009 pjd

Document EINVAL for bind(2).

Reviewed by: rwatson
Obtained from: SuSv3


192895 27-May-2009 jamie

Add hierarchical jails. A jail may further virtualize its environment
by creating a child jail, which is visible to that jail and to any
parent jails. Child jails may be restricted more than their parents,
but never less. Jail names reflect this hierarchy, being MIB-style
dot-separated strings.

Every thread now points to a jail, the default being prison0, which
contains information about the physical system. Prison0's root
directory is the same as rootvnode; its hostname is the same as the
global hostname, and its securelevel replaces the global securelevel.
Note that the variable "securelevel" has actually gone away, which
should not cause any problems for code that properly uses
securelevel_gt() and securelevel_ge().

Some jail-related permissions that were kept in global variables and
set via sysctls are now per-jail settings. The sysctls still exist for
backward compatibility, used only by the now-deprecated jail(2) system
call.

Approved by: bz (mentor)


191673 29-Apr-2009 jamie

Introduce the extensible jail framework, using the same "name=value"
interface as nmount(2). Three new system calls are added:
* jail_set, to create jails and change the parameters of existing jails.
This replaces jail(2).
* jail_get, to read the parameters of existing jails. This replaces the
security.jail.list sysctl.
* jail_remove to kill off a jail's processes and remove the jail.
Most jail parameters may now be changed after creation, and jails may be
set to exist without any attached processes. The current jail(2) system
call still exists, though it is now a stub to jail_set(2).

Approved by: bz (mentor)


191668 29-Apr-2009 jamie

With the permission of phk@ change the license on remaining jail code
to a 2 clause BSD license.

Approved by: phk
Approved by: bz (mentor)


191414 23-Apr-2009 brueffer

Correct the information about when the respective functionality first
appeared in FreeBSD.

PR: 133785
Submitted by: Ulrich Spoerlein <uqs@spoerlein.net>
MFC after: 3 days


191007 13-Apr-2009 rwatson

Sort man page cross references by section, no need for a comma after the
last cross reference.

MFC after: 3 days


190641 02-Apr-2009 jhb

Properly update the shm_open/shm_unlink symbol versioning metadata after
these functions were moved into the kernel:
- Move the version entries from gen/ to sys/. Since the ABI of the actual
routines did not change, I'm still exporting them as FBSD 1.0 on purpose.
- Add FBSD-private versions for the _ and __sys_ variants.


190464 27-Mar-2009 dds

Document missing requests.


189399 05-Mar-2009 kib

Hopefully, improve the grammar and wording in the changes to shmctl(2)
manpage and UPDATING entry 20090302.

UPDATING changes suggested by bf2006a yahoo com.
man page corrections by bde.


189283 02-Mar-2009 kib

Correct types of variables used to track amount of allocated SysV shared
memory from int to size_t. Implement a workaround for current ABI not
allowing to properly save size for and report more then 2Gb sized segment
of shared memory.

This makes it possible to use > 2 Gb shared memory segments on 64bit
architectures. Please note the new BUGS section in shmctl(2) and
UPDATING note for limitations of this temporal solution.

Reviewed by: csjp
Tested by: Nikolay Dzham <i levsha org ua>
MFC after: 2 weeks


189143 28-Feb-2009 ed

Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT.

On FreeBSD, this is the default behaviour. According to the spec, we may
give this flag a value of zero, but I'd rather not do this. If we define
it to a non-zero value, we can always change default behaviour without
changing the ABI. This is very unlikely to happen, though.


188144 05-Feb-2009 jamie

Standardize the various prison_foo_ip[46] functions and prison_if to
return zero on success and an error code otherwise. The possible errors
are EADDRNOTAVAIL if an address being checked for doesn't match the
prison, and EAFNOSUPPORT if the prison doesn't have any addresses in
that address family. For most callers of these functions, use the
returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or
EINVAL.

Always include a jailed() check in these functions, where a non-jailed
cred always returns success (and makes no changes). Remove the explicit
jailed() checks that preceded many of the function calls.

Approved by: bz (mentor)


187098 12-Jan-2009 danger

- add missing include
- fix struct memeber's name [1]

PR: docs/130413 [1]
Submitted by: Thomas Mueller <tmueller@sysgo.com> [1]
MFC after: 3 days


186834 06-Jan-2009 bz

Document the special loopback address behaviour of jails.

PR: kern/103464
Submitted by: brueffer (correct markup)
Reviewed by: brueffer
MFC after: 2 weeks


186769 05-Jan-2009 trhodes

Note that the protocol argument can be set to 0.

PR: 127890
Reviewed by: rwatson


186489 25-Dec-2008 trhodes

Document that kldunloadf can return EINVAL.

PR: 125639


185489 30-Nov-2008 ivoras

It's silly to claim recv(2) is to be removed in favour of recvfrom(2)
(at least at this time :) ).

Approved by: gnn (mentor)


185435 29-Nov-2008 bz

MFp4:
Bring in updated jail support from bz_jail branch.

This enhances the current jail implementation to permit multiple
addresses per jail. In addtion to IPv4, IPv6 is supported as well.
Due to updated checks it is even possible to have jails without
an IP address at all, which basically gives one a chroot with
restricted process view, no networking,..

SCTP support was updated and supports IPv6 in jails as well.

Cpuset support permits jails to be bound to specific processor
sets after creation.

Jails can have an unrestricted (no duplicate protection, etc.) name
in addition to the hostname. The jail name cannot be changed from
within a jail and is considered to be used for management purposes
or as audit-token in the future.

DDB 'show jails' command was added to aid debugging.

Proper compat support permits 32bit jail binaries to be used on 64bit
systems to manage jails. Also backward compatibility was preserved where
possible: for jail v1 syscalls, as well as with user space management
utilities.

Both jail as well as prison version were updated for the new features.
A gap was intentionally left as the intermediate versions had been
used by various patches floating around the last years.

Bump __FreeBSD_version for the afore mentioned and in kernel changes.

Special thanks to:
- Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches
and Olivier Houchard (cognet) for initial single-IPv6 patches.
- Jeff Roberson (jeff) and Randall Stewart (rrs) for their
help, ideas and review on cpuset and SCTP support.
- Robert Watson (rwatson) for lots and lots of help, discussions,
suggestions and review of most of the patch at various stages.
- John Baldwin (jhb) for his help.
- Simon L. Nielsen (simon) as early adopter testing changes
on cluster machines as well as all the testers and people
who provided feedback the last months on freebsd-jail and
other channels.
- My employer, CK Software GmbH, for the support so I could work on this.

Reviewed by: (see above)
MFC after: 3 months (this is just so that I get the mail)
X-MFC Before: 7.2-RELEASE if possible


184849 11-Nov-2008 ed

Several cleanups related to pipe(2).

- Use `fildes[2]' instead of `*fildes' to make more clear that pipe(2)
fills an array with two descriptors.

- Remove EFAULT from the manual page. Because of the current calling
convention, pipe(2) raises a segmentation fault when an invalid
address is passed.

- Introduce kern_pipe() to make it easier for binary emulations to
implement pipe(2).

- Make Linux binary emulation use kern_pipe(), which means we don't have
to recover td_retval after calling the FreeBSD system call.

Approved by: rdivacky
Discussed on: arch


184750 07-Nov-2008 trasz

Add one more EACCES clause to rename.2.

Approved by: rwatson (mentor)


184588 03-Nov-2008 dfr

Implement support for RPCSEC_GSS authentication to both the NFS client
and server. This replaces the RPC implementation of the NFS client and
server with the newer RPC implementation originally developed
(actually ported from the userland sunrpc code) to support the NFS
Lock Manager. I have tested this code extensively and I believe it is
stable and that performance is at least equal to the legacy RPC
implementation.

The NFS code currently contains support for both the new RPC
implementation and the older legacy implementation inherited from the
original NFS codebase. The default is to use the new implementation -
add the NFS_LEGACYRPC option to fall back to the old code. When I
merge this support back to RELENG_7, I will probably change this so
that users have to 'opt in' to get the new code.

To use RPCSEC_GSS on either client or server, you must build a kernel
which includes the KGSSAPI option and the crypto device. On the
userland side, you must build at least a new libc, mountd, mount_nfs
and gssd. You must install new versions of /etc/rc.d/gssd and
/etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf.

As long as gssd is running, you should be able to mount an NFS
filesystem from a server that requires RPCSEC_GSS authentication. The
mount itself can happen without any kerberos credentials but all
access to the filesystem will be denied unless the accessing user has
a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There
is currently no support for situations where the ticket file is in a
different place, such as when the user logged in via SSH and has
delegated credentials from that login. This restriction is also
present in Solaris and Linux. In theory, we could improve this in
future, possibly using Brooks Davis' implementation of variant
symlinks.

Supporting RPCSEC_GSS on a server is nearly as simple. You must create
service creds for the server in the form 'nfs/<fqdn>@<REALM>' and
install them in /etc/krb5.keytab. The standard heimdal utility ktutil
makes this fairly easy. After the service creds have been created, you
can add a '-sec=krb5' option to /etc/exports and restart both mountd
and nfsd.

The only other difference an administrator should notice is that nfsd
doesn't fork to create service threads any more. In normal operation,
there will be two nfsd processes, one in userland waiting for TCP
connections and one in the kernel handling requests. The latter
process will create as many kthreads as required - these should be
visible via 'top -H'. The code has some support for varying the number
of service threads according to load but initially at least, nfsd uses
a fixed number of threads according to the value supplied to its '-n'
option.

Sponsored by: Isilon Systems
MFC after: 1 month


184226 24-Oct-2008 alc

Finish what revision 1.40 started. Revision 1.40 removed a false statement
from the description but not the errors section. This revision removes it
from the errors statement.

Add a statement about the non-portability of non-page-aligned offsets.


183464 29-Sep-2008 jhb

Support for CPU sets is going to appear in 7.1 before 8.0.

MFC after: 3 days


182193 26-Aug-2008 kib

Implement WNOWAIT flag for wait4(2). It specifies that process whose status
is returned shall be kept in the waitable state.
Add WSTOPPED as an alias for WUNTRACED.

Submitted by: Jukka Ukkonen <jau at iki fi>
PR: standards/116221
MFC after: 2 weeks


182191 26-Aug-2008 kib

When calculating arguments to the interpreter for the shebang script
executed by fexecve(2), imgp->args->fname is NULL. Moreover, there is
no way to recover the path to the script being executed.
Do what some other U*ixes do unconditionally, namely supply /dev/fd/n
as the script path when called from fexecve(). Document requirement of
having fdescfs mounted as caveat.


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


181440 08-Aug-2008 delphij

Add prototype defination for setfib(2) to sys/socket.h.


181312 04-Aug-2008 trhodes

Add EPERM to the ERRORS section.

PR: 125746


181265 03-Aug-2008 trhodes

Add EAGAIN to the ERRORS list, as found in kern_jail.c.

PR: 125253
Submitted by: Mateusz Guzik <mjguzik@gmail.com> (original version)


181182 02-Aug-2008 remko

remove whitespace bug (8 spaces into one tab)

Submitted by: ed


180792 25-Jul-2008 julian

Fix cut-n-paste-o

Submitted by: Kostik Belousov


180534 15-Jul-2008 danger

Update the definition of modspecific structure

PR: docs/125630


180491 13-Jul-2008 remko

Update the ktr_header structure, which changed over time.

PR: 125546
Submitted by: Mateusz Guzik <mjguzik at gmail dot com>
MFC after: 3 days


180448 11-Jul-2008 brooks

Put the _cpuset* symbols in FBSDprivate_1.0 instead of trying to put
nonexistant __cpuset* there.


180113 30-Jun-2008 danger

- Forgot to bump a date after last change


180097 29-Jun-2008 das

Make it clearer that it is possible to disable the generation of
SIGPIPE for individual sockets (PR: kern/118626).

While here, s/insure/ensure/.


180030 26-Jun-2008 danger

- add description of the MLINK error

PR: docs/123019
MFC after: 3 days


179892 20-Jun-2008 phk

Add Xr to getsockname(2)


179823 16-Jun-2008 fanf

Make it clearer that privilege is needed to reduce as well as
increase group membership.


179768 12-Jun-2008 wkoszek

Bring missing getsockopt(2) options: SO_LABEL SO_PEERLABEL SO_LISTENQLIMIT
SO_LISTENQLEN SO_LISTENINCQLEN to the manual page.

Till now those were only present in sys/socket.h file.

Reviewed by: rwatson, gnn, keramida (with mdoc hat)


179434 30-May-2008 dfr

Call the fcntl compatiblity wrapper from the thread library fcntl wrappers
so that they get the benefit of the (limited) forward ABI compatibility.

MFC after: 1 week


179358 27-May-2008 dfr

Make fcntl() a weak symbol so that it can be overridden by thread libraries.

MFC after: 2 days


178909 10-May-2008 brueffer

Misc mdoc improvements and a typo fix.


178890 09-May-2008 julian

Add setfib.2 to the list of man pages to add


178889 09-May-2008 julian

setfib.2 got left out of the last commit


178886 09-May-2008 julian

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

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

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Security:


178636 28-Apr-2008 rwatson

Correct minor typos in SCTP man pages.

MFC after: 3 days


178533 26-Apr-2008 scf

Have the man page catch up with the namespace pollution cleanup that
occurred between 2001-2003. Thanks to bde for the history lesson[1]
concerning sys/types.h and the many system calls that at one time
(pre-2001) were required by POSIX to include it.

1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html

MFC after: 3 days


178329 20-Apr-2008 antoine

Document that you must include <sys/param.h> before <sys/cpuset.h>.

Approved by: rwatson (mentor)


178249 16-Apr-2008 ru

Sort MAN and MLINKS.


178248 16-Apr-2008 ru

Connect newly added manpages to the build.

Submitted by: kib


178245 16-Apr-2008 kib

Man pages for the openat(2), fexecve(2) and related syscalls.

Reviewed by: ru


177980 07-Apr-2008 deischen

Move the cpuset functions from FBSD_1.0 to FBSD_1.1. All symbols added
to 8.0 belong in the FBSD_1.1 symbol namespace.


177911 04-Apr-2008 dfr

Add some compatibility code so that software which is built to use the new
struct flock with l_sysid member can work properly on an an old kernel which
doesn't support l_sysid.

Sponsored by: Isilon Systems


177870 03-Apr-2008 kevlo

style(9) cleanup


177791 31-Mar-2008 kib

Add the libc glue and headers definitions for the *at() syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho


177706 29-Mar-2008 jeff

- Add a man page for cpuset_getaffinity() and cpuset_setaffinity() and
hook it up to the build.

Reviewed by: brueffer (skeleton and formatting assistance)


177705 29-Mar-2008 jeff

- Add a man page for cpuset(), cpuset_setid(), and cpuset_getid() and hook
it up to the build.

Reviewed by: brueffer (skeleton and formatting assistance)


177680 28-Mar-2008 ps

Add support to mincore for detecting whether a page is part of a
"super" page or not.

Reviewed by: alc, ups


177633 26-Mar-2008 dfr

Add the new kernel-mode NFS Lock Manager. To use it instead of the
user-mode lock manager, build a kernel with the NFSLOCKD option and
add '-k' to 'rpc_lockd_flags' in rc.conf.

Highlights include:

* Thread-safe kernel RPC client - many threads can use the same RPC
client handle safely with replies being de-multiplexed at the socket
upcall (typically driven directly by the NIC interrupt) and handed
off to whichever thread matches the reply. For UDP sockets, many RPC
clients can share the same socket. This allows the use of a single
privileged UDP port number to talk to an arbitrary number of remote
hosts.

* Single-threaded kernel RPC server. Adding support for multi-threaded
server would be relatively straightforward and would follow
approximately the Solaris KPI. A single thread should be sufficient
for the NLM since it should rarely block in normal operation.

* Kernel mode NLM server supporting cancel requests and granted
callbacks. I've tested the NLM server reasonably extensively - it
passes both my own tests and the NFS Connectathon locking tests
running on Solaris, Mac OS X and Ubuntu Linux.

* Userland NLM client supported. While the NLM server doesn't have
support for the local NFS client's locking needs, it does have to
field async replies and granted callbacks from remote NLMs that the
local client has contacted. We relay these replies to the userland
rpc.lockd over a local domain RPC socket.

* Robust deadlock detection for the local lock manager. In particular
it will detect deadlocks caused by a lock request that covers more
than one blocking request. As required by the NLM protocol, all
deadlock detection happens synchronously - a user is guaranteed that
if a lock request isn't rejected immediately, the lock will
eventually be granted. The old system allowed for a 'deferred
deadlock' condition where a blocked lock request could wake up and
find that some other deadlock-causing lock owner had beaten them to
the lock.

* Since both local and remote locks are managed by the same kernel
locking code, local and remote processes can safely use file locks
for mutual exclusion. Local processes have no fairness advantage
compared to remote processes when contending to lock a region that
has just been unlocked - the local lock manager enforces a strict
first-come first-served model for both local and remote lockers.

Sponsored by: Isilon Systems
PR: 95247 107555 115524 116679
MFC after: 2 weeks


177144 13-Mar-2008 ru

Fix bugs in previous revision (missing comma, misspelled syscall name).


177092 12-Mar-2008 jeff

- Remove kse syscall symbols and man pages.


177012 10-Mar-2008 rwatson

Add reference to kldunloadf system call, which was previously not
mentioned in the kldunload(2) man page.

MFC after: 3 days
Spotted by: rink


176957 08-Mar-2008 antoine

Introduce a new F_DUP2FD command to fcntl(2), for compatibility with
Solaris and AIX.
fcntl(fd, F_DUP2FD, arg) and dup2(fd, arg) are functionnaly equivalent.
Document it.
Add some regression tests (identical to the dup2(2) regression tests).

PR: 120233
Submitted by: Jukka Ukkonen
Approved by: rwaston (mentor)
MFC after: 1 month


176730 02-Mar-2008 jeff

Add cpuset, an api for thread to cpu binding and cpu resource grouping
and assignment.
- Add a reference to a struct cpuset in each thread that is inherited from
the thread that created it.
- Release the reference when the thread is destroyed.
- Add prototypes for syscalls and macros for manipulating cpusets in
sys/cpuset.h
- Add syscalls to create, get, and set new numbered cpusets:
cpuset(), cpuset_{get,set}id()
- Add syscalls for getting and setting affinity masks for cpusets or
individual threads: cpuid_{get,set}affinity()
- Add types for the 'level' and 'which' parameters for the cpuset. This
will permit expansion of the api to cover cpu masks for other objects
identifiable with an id_t integer. For example, IRQs and Jails may be
coming soon.
- The root set 0 contains all valid cpus. All thread initially belong to
cpuset 1. This permits migrating all threads off of certain cpus to
reserve them for special applications.

Sponsored by: Nokia
Discussed with: arch, rwatson, brooks, davidxu, deischen
Reviewed by: antoine


176661 29-Feb-2008 philip

Use the easily-greppable copyright notice template from
src/share/examples/mdoc/POSIX-copyright.

Requested by: ru


176607 26-Feb-2008 ru

Added the "restrict" type-qualifier to the readlink() prototype.


176551 25-Feb-2008 brueffer

Add missing words.

MFC after: 3 days


176443 21-Feb-2008 philip

Note, as required by our agreement with IEEE/The Open Group, that the message
queue manual pages excerpt the POSIX standard.

Spotted by: Mindaugas Rasiukevicius <rmind -at- NetBSD.org>
Reviewed by: imp
MFC after: 1 day


176215 12-Feb-2008 ru

Change readlink(2)'s return type and type of the last argument
to match POSIX.

Prodded by: Alexey Lyashkov


176174 11-Feb-2008 remko

After issueing a ntpdate [1] I noticed it's already 2008, reflect that
in the last modified date.

Noticed by: brueffer [1]


176170 11-Feb-2008 remko

Fix typo (s/existance/existence/)

Noticed by: ceri


175941 03-Feb-2008 phk

Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufs
referencing the files VM pages are returned from the network stack,
making changes to the file safe.

This flag does not guarantee that the data has been transmitted to the
other end.


175798 29-Jan-2008 trhodes

Update this manual page to describe the extattr_list_file() and the
extattr_list_fd() functions.

PR: 108142
Submitted by: Richard Dawe <rich@phekda.gotadsl.co.uk>
Reviewed by: kientzle


175565 22-Jan-2008 trhodes

Xref flopen.3 which references this manual page.

PR: 112650


175388 16-Jan-2008 remko

Fix some style nits.

Prodded by: brueffer
MFC After: 3 days


175164 08-Jan-2008 jhb

Add a new file descriptor type for IPC shared memory objects and use it to
implement shm_open(2) and shm_unlink(2) in the kernel:
- Each shared memory file descriptor is associated with a swap-backed vm
object which provides the backing store. Each descriptor starts off with
a size of zero, but the size can be altered via ftruncate(2). The shared
memory file descriptors also support fstat(2). read(2), write(2),
ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared
memory file descriptors.
- shm_open(2) and shm_unlink(2) are now implemented as system calls that
manage shared memory file descriptors. The virtual namespace that maps
pathnames to shared memory file descriptors is implemented as a hash
table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash
of the pathname.
- As an extension, the constant 'SHM_ANON' may be specified in place of the
path argument to shm_open(2). In this case, an unnamed shared memory
file descriptor will be created similar to the IPC_PRIVATE key for
shmget(2). Note that the shared memory object can still be shared among
processes by sharing the file descriptor via fork(2) or sendmsg(2), but
it is unnamed. This effectively serves to implement the getmemfd() idea
bandied about the lists several times over the years.
- The backing store for shared memory file descriptors are garbage
collected when they are not referenced by any open file descriptors or
the shm_open(2) virtual namespace.

Submitted by: dillon, peter (previous versions)
Submitted by: rwatson (I based this on his version)
Reviewed by: alc (suggested converting getmemfd() to shm_open())


174765 19-Dec-2007 imp

Add note about other systems.


174463 08-Dec-2007 remko

Make the warning a bit less 'broad' then it used to be. The access
is seems to be a problem for SUID applications, which we like to
prevent as much as possible.

PR: docs/39530
Submitted by: Soren Spies <sspies at apple dot com>
MFC After: 3 days


173186 30-Oct-2007 keramida

Remove extraneous empty lines, to fix mdoc warnings.

MFC after: 3 days


173184 30-Oct-2007 keramida

Bump manpage date, missed during the last change.

MFC after: 3 days


173183 30-Oct-2007 keramida

The .Fx request doesn't recognize 2.2.0, so use ".Fx 2.2"

MFC after: 3 days


172886 22-Oct-2007 jb

Add a BUGS section to note that mount/chroot changes since
a module was loaded might make the pathname inaccurate.

I wonder if an inode reference should be stored with the pathname
to allow a validity check?

Suggested by: rwatson@


172862 22-Oct-2007 jb

Add the full module path name to the kld_file_stat structure
for kldstat(2).

This allows libdtrace to determine the exact file from which
a kernel module was loaded without having to guess.

The kldstat(2) API is versioned with the size of the
kld_file_stat structure, so this change creates version 2.

Add the pathname to the verbose output of kldstat(8) too.

MFC: 3 days


172277 21-Sep-2007 obrien

Add FreeBSD history.

Approved by: re(ken)


172185 15-Sep-2007 imp

Use better manuals for these ntp system calls. These were replaced by
the netbsd versions, and tweaked by me with suggestions from phk.

Reviewed by: phk
Approved by: re@


172075 07-Sep-2007 ru

We've been able to support EVFILT_VNODE filtering on non-UFS
file systems since 2005.

Submitted by: Igor Sysoev
Approved by: re (bmah)
MFC after: 3 days


171913 22-Aug-2007 davidxu

Add thr_kill2 syscall.

Submitted by: Tijl Coosemans tijl at ulyssis dot org
Approved by: re (kensmith)


171447 14-Jul-2007 brueffer

Take a sentence into the present by removing a reference to FreeBSD 3.0.

Approved by: re (blanket)
MFC after: 3 days


171219 04-Jul-2007 peter

Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate to
call the pad-less versions of the corresponding syscalls if the running
kernel supports it. Check kern.osreldate once per program and cache the
result to select the appropriate syscall. This maintains userland
compatability with kernel.old's from quite a while back.

Approved by: re (kensmith)


171218 04-Jul-2007 peter

Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudo
syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case
will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT,
the .c wrappers will go away and libc will make direct syscalls.

After 7-stable starts, the direct syscall method will be default.

Approved by: re (kensmith)


170904 18-Jun-2007 davidxu

Fix library names.


170683 13-Jun-2007 brueffer

Catch up with the code.

Submitted by: peter


170321 05-Jun-2007 des

Expose __stack_chk_fail_local() so -fstack-protector-all works.


170059 28-May-2007 rwatson

Correct spelling errors in comments.


169719 19-May-2007 kan

Follow NetBSD, OpenBSD and DragonfyBSD project and add BSD-licensed
SSP functions into FreeBSD libc. Use the same file name and location
for consistency with other projects.


169550 14-May-2007 pav

Document RFTHREAD

PR: docs/78915
Submitted by: Marc Olzheim <marcolz@stack.nl>
MFC after: 1 week


169104 29-Apr-2007 pjd

Add missing links and sort.


169092 29-Apr-2007 deischen

Use C comments since we now preprocess these files with CPP.


169066 27-Apr-2007 roam

Remove the MSG_PEEK flag from the documentation of the send(2) syscall -
it is only relevant to receiving data from sockets, not to sending.

PR: 109667
Submitted by: Jari Kirma <kirma@cs.hut.fi>
Approved by: wollman


168634 11-Apr-2007 emaste

Belatedly bump Dd for my recent changes.


168537 09-Apr-2007 emaste

Document PT_GETNUMLWPS.


168447 07-Apr-2007 emaste

Describe PT_GETLWPLIST's arguments.


168398 05-Apr-2007 pjd

Bump date.


168397 05-Apr-2007 pjd

Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
OpenSolaris. For more information please refer to:

http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data


167380 09-Mar-2007 bms

Wordsmithery.

Pointed out by: ru


167335 08-Mar-2007 bms

Document SO_ACCEPTCONN.

Submitted by: Vlad GALU (with changes)
MFC after: 3 days


167292 07-Mar-2007 bms

Fix license. Clause 4 is still required (UCB materiel).

Submitted by: rwatson
Pointy hat to: bms


167287 07-Mar-2007 bms

use 2-clause BSD license as per hoskins strike-off july 22 1999.
use wording of FreeBSD License.


167237 05-Mar-2007 ru

Apply my patch properly.


167235 05-Mar-2007 bms

Fix markup.

Submitted by: ru
MFC after: 2 days


167231 05-Mar-2007 bms

.Xr nit.

Submitted by: brueffer


167228 05-Mar-2007 bms

Update shutdown() manual page to reflect actual behaviour of code.

Add IMPLEMENTATION NOTES section explaining in detail the effect this
system call has in common use cases involving PF_INET and PF_INET6 sockets.

PR: kern/84761
MFC after: 2 days


167017 26-Feb-2007 rrs

Fix include declaration it was sys/sctp.h should be netinet/sctp.h,
reported by pluknet@gmail.com.


166886 22-Feb-2007 rrs

First cut of the sctp man pages. Still need work.


166798 17-Feb-2007 trhodes

Fix mis-reference of incorrect manual page in ERRORS section.

Noticed by: Harlan Stenn <stenn@ntp.isc.org>


166700 14-Feb-2007 brueffer

New sentence -> new line. While here, fix apostrophe abuse.


166693 13-Feb-2007 julian

Change the date.


166692 13-Feb-2007 julian

Make the kse man page reflect the removal of the KSEGRP kernel abstraction.


166382 01-Feb-2007 mpp

Docment the acceptable values for the id parameter.


166044 16-Jan-2007 pjd

When we try to set set-gid bit with chmod(2) on a file, which we own, but our
effective group ID (and any of our group) doesn't match the group ID of the
file, we get EPERM. This doesn't conform POSIX. POSIX requires that we should
return 0, but silently clear the set-gid bit.


165968 12-Jan-2007 imp

Remove 3rd clause, renumber, ok per email


165945 11-Jan-2007 maxim

o Document SO_TIMESTAMP and SO_BINSTAMP socket options.

PR: docs/107696
Submitted by: Rob Robertson
Reviewed by: ru
Obtained from: NetBSD (mostly)
MFC after: 1 week


165903 09-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


165878 07-Jan-2007 pjd

Be more specific in ENXIO description:
- O_NONBLOCK flag has to be set, if it is not set, open(2) will wait for
another process opening the fifo for reading,
- Use O_WRONLY which implies that the file has to be opened _only_ for write.


165877 07-Jan-2007 pjd

open(2) returns EROFS when O_CREAT is specified and the named file would
reside on a read-only file system.


165862 07-Jan-2007 pjd

- POSIX mentions that EACCES can be returned when O_TRUNC is specified
separately. Do the same.
- Document when EPERM can be returned.


165861 07-Jan-2007 pjd

Prefer "to be modified" over "to be opened for writing".
This is quite tricky situation, because we allow to open a file with
O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open
it for writing. EISDIR is also returned when we try to open a directory
O_RDONLY|O_TRUNC, which is correct.
POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.",
we choose to accept it (Solaris did the same), that's why "to be modified"
seems more accurate to me.


165585 28-Dec-2006 simon

Bump modification date for last update.


165584 28-Dec-2006 simon

Catch up struct cmsghdr and struct msghdr in the manual page with the
actual structures in socket.h (which were updated 7 years ago).

MFC after: 1 week


165252 15-Dec-2006 pjd

chflags(2) returns EPERM when user tries to set or remove the SF_SNAPSHOT flag.


165192 13-Dec-2006 pjd

- truncate(2) returns EFBIG if the length argument was greater than the
maximum file size.
- truncate(2) returns EINVAL if the length argument was less than 0.


165190 13-Dec-2006 pjd

Append-only flag also denies chown(2).


165177 13-Dec-2006 pjd

Much more correct EFTYPE description.


165176 13-Dec-2006 pjd

Better wording.


165175 13-Dec-2006 pjd

Append-only flag also denies chmod(2). Is this correct behaviour?


165167 13-Dec-2006 pjd

Be more precise with EPERM description. When chown(2) is a no-op, it will
return 0.


165166 13-Dec-2006 pjd

Write permission if of course only needed for the parent directory of
the object beeing created.

Pointed out by: bde


165164 13-Dec-2006 pjd

mkfifo(2) returns EACCES when write permission is denied for a component of
the path prefix.


165136 12-Dec-2006 pjd

Be more specific when ELOOP can be returned.


165135 12-Dec-2006 pjd

symlink(2) return EACCES if a component of the name2 path prefix denies
write permission.


165134 12-Dec-2006 pjd

Correct ENOENT description.


165133 12-Dec-2006 pjd

The 'name1' argument to symlink(2) is only limited to 1023 characters,
its components are not checked.


165120 12-Dec-2006 pjd

mkdir(2) creates directory, not file.


165117 12-Dec-2006 julian

Remove reference to confusing behaviour just removed from
the kse_exit() syscall. Describe the correct behaviour.


165080 10-Dec-2006 pjd

When directory is given as an argument for unlink(2), EPERM is returned
not matter if this is regular directory or a mount point.


165056 09-Dec-2006 pjd

If the named file has its immutable or append-only flag set, utimes(2)
returns EPERM.


165054 09-Dec-2006 pjd

If the parent directory of the named file has its immutable flag set,
mkfifo(2) returns EPERM.


165053 09-Dec-2006 pjd

If the parent directory of the destination file has its immutable flag set,
symlink(2) returns EPERM.


165052 09-Dec-2006 pjd

- If the source file has its immutable or append-only flag set, link(2)
returns EPERM.
- If the parent directory of the destination file has its immutable flag set,
link(2) returns EPERM.


165051 09-Dec-2006 pjd

If the named file has its immutable or append-only flag set, truncate(2)
and ftruncate(2) return EPERM.

Note, that if the append-only flag is set even increasing size of the file
is not permitted.


165050 09-Dec-2006 pjd

If the named file has its immutable flag set, chown(2) returns EPERM.


165049 09-Dec-2006 pjd

If the named file has its immutable flag set, chmod(2) returns EPERM.


165048 09-Dec-2006 pjd

Add reference to chflags(2).


165047 09-Dec-2006 pjd

If the parent directory of the named file has its immutable flag set,
mkdir(2) returns EPERM.


165044 09-Dec-2006 pjd

- If the directory to be removed has its immutable, undeletable or append-only
flag set, rmdir(2) returns EPERM.
- If the parent directory of the directory to be removed has its immutable or
append-only flag set, rmdir(2) returns EPERM.


165043 09-Dec-2006 pjd

- If the parent directory of the file pointed at by the from argument has its
immutable or append-only flag set, rename(2) returns EPERM.
- If the parent directory of the file pointed at by the to argument has its
immutable flag set, rename(2) returns EPERM.


165042 09-Dec-2006 pjd

Correct last commit. The parent directory of the file to be removed can
have undeletable flag set.


165041 09-Dec-2006 pjd

When immutable, undeletable or append-only flag is set, rename(2)
return EPERM.


165040 09-Dec-2006 pjd

When undeletable flag is set, unlink(2) return EPERM.


164887 04-Dec-2006 ru

Grammar.

OK'ed by: sam


164883 04-Dec-2006 sam

document recent change to return ECONNRESET for tcp sockets

MFC after: 1 month


164584 24-Nov-2006 yar

Note that, thanks to the work by Alan Cox et al, some arch'es
don't need sendfile() buffers any more.

The report on the work referenced can be found at
http://usenix.org/events/usenix05/tech/general/elmeleegy.html

MFC after: 1 week


164452 20-Nov-2006 jhb

Document that the data field for NOTE_EXIT holds the process exit status.

Submitted by: Jared Yanovich -phirerunner at comcast.net-
MFC after: 2 weeks


164121 09-Nov-2006 trhodes

Add an entry for PT_GETLWPLIST.

Nudged by: jhb
Reviewed by: davidxu


164044 06-Nov-2006 rwatson

Remove sys/uio.h include -- this is no longer required by the extattr
system call API.

MFC after: 3 weeks


163981 04-Nov-2006 danger

- clock_gettime is in time.h instead of sys/time.h

Approved by: trhodes (mentor), keramida (mentor)
PR: docs/104707
MFC-after: 3 days


163910 02-Nov-2006 ru

Replace the SEE ALSO xrefs with a more reasonable set stolen from POSIX.


163889 01-Nov-2006 pjd

Document MNT_GJOURNAL option.


163592 21-Oct-2006 simon

Minor markup fix: A comma should be seperated by space from macro
argument. This resulted in "pwritev,()" instead of the intended
"pwritev()," in the output.

MFC after: 3 days


163584 21-Oct-2006 ru

Avoid a potential hard sentence break.


163282 12-Oct-2006 ru

Use normal parentheses.

PR: docs/84549
Submitted by: Gary W. Swearingen
MFC after: 3 days


163270 12-Oct-2006 ru

Link select(2) to FD_CLR(3), FD_ISSET(3), FD_SET(3), and FD_ZERO(3).

PR: docs/57974
MFC after: 3 days


163269 12-Oct-2006 ru

Document S_IRWXU and permission bits for group/other.

PR: docs/57153
MFC after: 3 days


163242 11-Oct-2006 maxim

o Follow the trend and try to explain what the slow device is.
Not ideal but better than nothing.

Obtained from: OpenBSD, NetBSD


163073 07-Oct-2006 trhodes

Reword previous delta a little bit.

Submitted by: ru


163066 07-Oct-2006 trhodes

Fix ambiguity in description. Note that the aio_return() system call should
only be called once after failure or completion of an AIO request. Bump doc
date while I'm here.

Noticed by: Samy Al Bahra


163065 07-Oct-2006 trhodes

Add missing word "returns."

Noticed by: Samy Al Bahra


162840 30-Sep-2006 ru

Fix markup, language, function prototype, and example code.


162657 26-Sep-2006 vd

Fix typo

PR: docs/103666
Submitted by: vd
Approved by: maxim


162500 21-Sep-2006 davidxu

remove thr_getscheduler, thr_setscheduler, thr_setschedparam,
add rtprio_thread.


162385 17-Sep-2006 ru

Markup fixes.


162384 17-Sep-2006 ru

Remove more traces of Alpha.


162291 13-Sep-2006 joel

Remove reference to T/TCP.

Reviewed by: andre


162208 10-Sep-2006 brian

Fix a typo


161620 25-Aug-2006 ceri

Note that the system only allows a maximum of kern.kq_calloutmax timers.

PR: docs/102353
Submitted by: phk
MFC after: 1 week


161344 16-Aug-2006 wes

Document EAGAIN failure per PR. (Finally!)

PR: 24125


161335 15-Aug-2006 pjd

We operate on 'statfs' structures, not on 'fsstat' structures.

MFC after: 3 days


160964 04-Aug-2006 yar

Commit the results of the typo hunt by Darren Pilgrim.
This change affects documentation and comments only,
no real code involved.

PR: misc/101245
Submitted by: Darren Pilgrim <darren pilgrim bitfreak org>
Tested by: md5(1)
MFC after: 1 week


160594 23-Jul-2006 nork

Add missing ;.

Pointy hat to: myself
Approved by: deischen (implicitly)


160592 23-Jul-2006 nork

Add missing syscalls.

Reviewed by: deischen
Approved by: deischen


159837 21-Jun-2006 kib

Make the mincore(2) return ENOMEM when requested range is not fully mapped.

Requested by: Bruno Haible <bruno at clisp org>
Reviewed by: alc
Approved by: pjd (mentor)
MFC after: 1 month


159569 13-Jun-2006 maxim

o Sort .Xrs.


159568 13-Jun-2006 phk

Add xref to statfs(2)


159141 01-Jun-2006 maxim

o Document the fact truncate(2) has no effect for !VDIR or !VREG files.

Submitted by: ceri


158776 20-May-2006 rodrigc

Remove reference to "System call restart" in intro(2). intro(2) does not
have such a reference. Add a reference instead to SA_RESTART in
sigaction(2).


158662 16-May-2006 keramida

* Document the fact that non-superusers cannot change file flags for
objects with SF_IMMUTABLE, SF_APPEND, or SF_NOUNLINK.
* Document that non-superusers cannot set or clear any SF_* flag
(setting fails with EPERM, clearing is silently ignored).
* Document that superusers cannot change any flag if one of
SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK is set and securelevel is
greater than 0.
* Document SF_SNAPSHOT and note that it is maintained by the
system and is, for this reason, impossible to set to clear by
any user.

PR: docs/33877
Submitted by: harti
Help by: George Marsellis <gam9478@njit.edu>
MFC after: 1 week


157923 21-Apr-2006 trhodes

Update for rev 1.205 of vm_mmap.c.

Submitted by: fanf


157775 15-Apr-2006 maxim

o Document SO_NOSIGPIPE, touch .Dd.

PR: docs/78479
Submitted by: Mikko Tyolajarvi
MFC after: 2 weeks


157762 14-Apr-2006 ru

List pwritev in the NAME section.


157064 23-Mar-2006 peter

Document that the documented 2GB mmap limit is actually a
documentation bug. We switched to page indexes some time around
FreeBSD 2.2. The actual 'len' limit is the maximum file size or what
will fit in your address space, whichever comes first. It should be
possible to make 1TB files on 32 bit systems, but of course address space
runs out long before then.


156613 13-Mar-2006 deischen

Add each directory's symbol map file to SYM_MAPS.


156608 13-Mar-2006 deischen

Add symbol maps and initial symbol version definitions to libc.

Reviewed by: davidxu


156450 08-Mar-2006 davidxu

Remove mq.c, the POSIX mqueue is implemented in librt.

Suggested by: deischen


156309 05-Mar-2006 brueffer

Remove a useless word.

PR: 94087
Submitted by: Tadaaki Nagao <nagao@iij.ad.jp>
MFC after: 3 days


156242 03-Mar-2006 jcamou

Sync with actual code.

PR: docs/87681
Noticed by: Andreas Kohn <andreas@syndrom23.de>
Reviewed by: brooks
Approved by: trhodes (mentor)
MFC after: 3 days


156133 01-Mar-2006 davidxu

Disconnect mqueue from buildworld, as I will implement it in seperated
library.


155912 22-Feb-2006 yar

Tell the truth about a) how to get the first fileid, and
b) what return values from kldstat(2) can be expected.

Bump .Dd.

MFC after: 3 days


155750 16-Feb-2006 brd

- Massage wording to make it easier to understand and fix some grammar.

Submitted by: sbahra at gwu dot edu
Reviewed by: ru@
Approved by: ceri@
MFC after: 3 days


155035 30-Jan-2006 glebius

- In pipe() return the error returned by pipe_create(), rather then
hardcoded ENFILES, which is incorrect. pipe_create() can fail due
to ENOMEM.
- Update manual page, describing ENOMEM return code.

Reviewed by: arch


154691 22-Jan-2006 truckman

Back out the previous change to rename.2. The previous rename()
behaviour of returning EINVAL when ".." is passed as either argument
has been restored.

rmdir("..") now returns EINVAL instead of EPERM. Document the
previously undocumented behaviour of rmdir(".") returning EINVAL
as required by POSIX and SUSv3. Bump the man page change date.

undelete("..") now returns EINVAL instead of EPERM. Bump the man
page change date.

MFC after: 3 days


154655 21-Jan-2006 truckman

rename(), rmdir(), and undelete() fail with EPERM if the last component
of the path is "..".

MFC after: 3 days


154202 10-Jan-2006 grog

Add references to fhopen, fhstat, getfh, lgetfh and fhstatfs.

Pointed out by: Antony Curtis <antony@mysql.com>


154050 05-Jan-2006 dds

Document the recently-added EINVAL behavior.

MFC after: 1 week


153683 23-Dec-2005 phk

Add abort2 manual page.

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


153376 13-Dec-2005 davidxu

Sort .Xr by section number.

Submitted by: ru


153370 13-Dec-2005 davidxu

Add cross references to siginfo.3.


153161 06-Dec-2005 davidxu

Fix markeup.

Submitted by: ru


153109 05-Dec-2005 davidxu

Fix markup.

Submitted by: ru


153101 05-Dec-2005 davidxu

Document SIGEV_NONE and SIGEV_SIGNAL.


153048 03-Dec-2005 ru

Fix prototype.


153047 03-Dec-2005 ru

Fix type of argument.


153045 03-Dec-2005 ru

Break hard sentence break.


153040 03-Dec-2005 davidxu

Remove implementation-defined, it has already been described in NOTES
section.


153039 03-Dec-2005 davidxu

Remove implementation-defined sentences.


153036 03-Dec-2005 davidxu

Fix lots of markup and content bug.

Submitted by: ru


153018 02-Dec-2005 davidxu

syscall -> system call.


153014 02-Dec-2005 davidxu

Fix markup.


152990 01-Dec-2005 imp

Tweak markup for POSIX standards. Minor wordsmithing.

Submitted by: ru@


152989 01-Dec-2005 imp

Document O_NOCTTY and O_SYNC. O_NOCTTY is a nop on freebsd, while on
other systems it prevents a tty from becoming a controlling tty on the
open. O_SYNC is the POSIX name for O_FSYNC.

The Markup Police may need to tweak my references to standards.


152944 30-Nov-2005 davidxu

Update conformance and history sections.


152943 30-Nov-2005 davidxu

Symlink mq_send to mq_timedsend.
Symlink mq_receive to mq_timedreceive.


152942 30-Nov-2005 davidxu

Add manuals for POSIX message queue.


152831 26-Nov-2005 davidxu

Implement following POSIX message queue interfaces:
mq_close, mq_getattr, mq_receive, mq_send.


152752 24-Nov-2005 ru

Make SYNOPSIS compile.

Attn peter@: this manpage wasn't synced with your code changes.


152751 24-Nov-2005 ru

Fix prototypes.

Attn davidxu@: most likely, the description should also be tweaked
after your undocumented changes that changed these prototypes.


152604 19-Nov-2005 simon

Do not explicitly state how many bytes an argument list can be in the
description of E2BIG, since it's now larger on some platforms.

MFC after: 3 days


152587 18-Nov-2005 andre

Document CLOCK_UPTIME which returns the current uptime in SI seconds.
At the moment it is just an alias for CLOCK_MONOTONIC which reports
the same number.

Sponsored by: TCP/IP Optimization Fundraise 2005


152570 18-Nov-2005 ru

Fix up markup etc. in recently born manpage.


152551 17-Nov-2005 ru

-mdoc sweep.


152325 12-Nov-2005 davidxu

add continued status.


152324 12-Nov-2005 davidxu

Insert missing copyright headers.


152314 11-Nov-2005 davidxu

Only signo should be marked with .Fa.


152300 11-Nov-2005 delphij

Fix plural.


152299 11-Nov-2005 davidxu

Fix plural.


152298 11-Nov-2005 davidxu

Fix copy-paste issue.


152297 11-Nov-2005 davidxu

Add POSIX timer manuals.


152295 11-Nov-2005 davidxu

Add descriptions about signal queue.


152294 11-Nov-2005 davidxu

Er, highlight function wait().


152293 11-Nov-2005 davidxu

Add notes about queued SIGCHLD.


152291 11-Nov-2005 davidxu

Add manuals for sigqueue, sigtimedwait, sigwaitinfo.


151896 31-Oct-2005 jkoshy

Document the fact that sendfile(2) can EOPNOTSUPP if the underlying
filesystem for the file being transferred doesn't support UIO_NOCOPY.

Reported by: Niki Denev <nike_d@cytexbg.com>


151895 31-Oct-2005 jkoshy

Sort error list.


149956 10-Sep-2005 rwatson

Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's
mentioned in the description.

MFC after: 2 days


149572 29-Aug-2005 glebius

- Document the fact that the real length of listen queue is 1.5 more
than the value of backlog argument.
- Document the fact that a subsequent listen(2) calls on the listening
socket change the backlog argument.
- Note that current listen queue lengths can be queried using netstat(1).

Submitted by: Igor Sysoev <is rambler-co.ru>
Wording by: gnn


148580 31-Jul-2005 keramida

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


148505 29-Jul-2005 dds

Document the ECONNRESET errno value.


148143 18-Jul-2005 jmg

remove the supposed max of 2^31, it hasn't been this small in a very
long time... i.e. since this file was imported... (ufs1 supports much
larger files then this)...

Submitted by: Ivan Voras
MFC after: 1 week


148043 15-Jul-2005 sobomax

Document the fact that if MAP_FIXED request has been successful it
replaces any previous mapping to the same address.

Obtained from: IEEE Std 1003.1, 2004 Edition


147813 07-Jul-2005 jhb

- Add two new system calls: preadv() and pwritev() which are like readv()
and writev() except that they take an additional offset argument and do
not change the current file position. In SAT speak:
preadv:readv::pread:read and pwritev:writev::pwrite:write.
- Try to reduce code duplication some by merging most of the old
kern_foov() and dofilefoo() functions into new dofilefoo() functions
that are called by kern_foov() and kern_pfoov(). The non-v functions
now all generate a simple uio on the stack from the passed in arguments
and then call kern_foov(). For example, read() now just builds a uio and
calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev().

PR: kern/80362
Submitted by: Marc Olzheim marcolz at stack dot nl (1)
Approved by: re (scottl)
MFC after: 1 week


147700 30-Jun-2005 hmp

Use 'manual page' instead of 'man page' for consistency.

Approved by: re (hrs)


147402 15-Jun-2005 ru

Assorted markup fixes.

Approved by: re


147258 10-Jun-2005 rodrigc

Fix the wording in this man page so that it
reflects the actual behavior of the API
for listing extended attributes.

PR: docs/79261
Submitted by: rodrigc
Reviewed by: rwatson, kan
Approved by: das (mentor)


146964 04-Jun-2005 alc

Update .Dd value.


146963 04-Jun-2005 alc

Eliminate the original method of requesting notification of aio_read(2) and
aio_write(2) completion through kevent(2). This method does not work on
64-bit architectures. It was deprecated in FreeBSD 4.4. See revisions
1.87 and 1.70.2.7.

Change aio_physwakeup() to call psignal(9) directly rather than indirectly
through a timeout(9). Discussed with: bde

Correct a bug introduced in revision 1.65 that could result in premature
delivery of a signal if an lio_listio(2) consisted of a mixture of
direct/raw and queued I/O operations. Observed by: tegge

Eliminate a field from struct kaioinfo that is now unused.

Reviewed by: tegge


145856 04-May-2005 keramida

Document the fact that accept(2) may return EINVAL when addrlen is
negative (in addition to returning EINVAL when called on a descriptor
that is not a socket).

Submitted by: Arne H Juul <arnej@europe.yahoo-inc.com>
PR: docs/80587


143308 09-Mar-2005 alfred

Make MSG_NOSIGNAL available to native programs.
Bump FreeBSD_version to note this change.

Reviewed by: sobomax


142412 25-Feb-2005 trhodes

Fix a few markup nits in previous commit.

Noticed by: ru, who else? :)


142349 24-Feb-2005 trhodes

Do not mislead users into checking for a mount_ufs or mount_ufs2 manual
page. They do not exist.

PR: 53303
Submitted by: Marc Silver <marcs@draenor.org> (original version)


142344 24-Feb-2005 csjp

-document the fact that extattr_get_* can fail if the requested
attribute does not exist on the file.
-bump document date

Reviewed by: rwatson,trhodes
MFC after: 1 week


142342 23-Feb-2005 trhodes

Xref chflags(2).
Note that unlink.2 can return EPERM if the immutable or append-only flags are set.

PR: 77043


141946 15-Feb-2005 ru

Expand contractions.


141851 13-Feb-2005 ru

Expand contractions.


141846 13-Feb-2005 ru

Expand *n't contractions.


141663 10-Feb-2005 cperciva

read(), pread(), write(), and pwrite() return EINVAL if they are asked
for more than INT_MAX bytes.


141580 09-Feb-2005 ru

Fixed the misplaced $FreeBSD$.


140765 24-Jan-2005 keramida

EISCONN may be returned by sendto() if an attempt is made to specify the
destination address to a datagram socket that is already connected.

Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz>
PR: docs/76399
MFC after: 1 week


140598 21-Jan-2005 ru

Fixed punctuation in xrefs.


140505 20-Jan-2005 ru

Sort sections.


140295 15-Jan-2005 ru

Eliminate macro calls inside literal displays.


140081 11-Jan-2005 ru

Scheduled mdoc(7) sweep.


139414 29-Dec-2004 trhodes

Catch up with stat.h a bit:

o Sticky bit is actually defined as S_ISTXT not S_ISVTX.
o Sticky bit is wrapped in if __BSD_VISIBLE not _POSIX_SOURCE.


139253 23-Dec-2004 keramida

``NULL is a specific instance of a null pointer constant; the generic is
a "null pointer".''

Making good use of the excellent explanations sent to me by Ruslan
Ermilov, Garrett Wollman and Bruce Evans, correct the descriptions of
null pointers. They are just "null pointers", not nil, not NULL or
".Dv NULL".

Suggested by: ru, wollman, bde
Reviewed by: ru, wollman
Pointy hat: keramida


139187 22-Dec-2004 keramida

Punctuation marks should be separate arguments in groff macros.

Noticed by: ru


139186 22-Dec-2004 keramida

Use .Dv NULL when referring to NULL C pointers, instead of "nil".


139184 22-Dec-2004 keramida

Cross reference init(8) too, instead of vaguely referring to the
"initialization process".


138188 29-Nov-2004 ru

MNT_NODEV is deprecated.


137737 15-Nov-2004 yar

Document more fields of struct stat.
Note to mdoc(7) police:
The document date has already been touched today.


137736 15-Nov-2004 yar

Use .Vt "struct stat" consistently.


137735 15-Nov-2004 yar

Nitpicking on grammar.


137734 15-Nov-2004 yar

Improve mdoc(7) markup of the page: add several missing macros,
use .Va instead of .Li for struct stat fields.


137733 15-Nov-2004 yar

Document the S_IS*(mode) macros used to test for file types.
Bump the document date accordingly.


136993 27-Oct-2004 ceri

Add necessary whitespace to correct cross references.

PR: docs/73193
Submitted by: Jilles Tjoelker <jilles at stack.nl>


136948 25-Oct-2004 yar

Reword the last change a bit, add mdoc(7) markup.

Discussed with: bde


136660 18-Oct-2004 yar

Since sendfile(2) works on regular files only,
which have no negative offsets, "negative" and
"invalid" are equivalent WRT the offset argument.

Suggested by: bde


136610 17-Oct-2004 alfred

Document EMSGSIZE return from recvmsg due to insufficient free files
when transfering rights (file descriptors.)


136591 16-Oct-2004 yar

Explain it is a negative offset that EINVAL may indicate.
Now readers won't get an impression that pointing to beyond
the current end of file will result in EINVAL.

MFC after: 1 week


136590 16-Oct-2004 yar

Improve mdoc(7) markup.


136589 16-Oct-2004 yar

Give details on what will happen if the `offset' argument
to sendfile(2) falls beyond the end of file.

Touch .Dd.

PR: bin/72649 (in the audit trail)
MFC after: 1 week


136280 08-Oct-2004 julian

Make less wrong for desciptions of signal handling

MFC in: 1 week


134682 03-Sep-2004 roam

Add a BUGS section and copy the wording from mmap(2)'s MAP_NOSYNC,
documenting the obsoleteness of the msync(2) syscall and its single
remaining purpose.

PR: 70916
Submitted by: Radim Kolar <hsn@netmag.cz>
MFC after: 3 days


133654 13-Aug-2004 roam

Document the MNT_SNAPSHOT mount flag with a cross-reference
to mksnap_ffs(8).

PR: 70402
Submitted by: James Raftery <james@now.ie>


133439 10-Aug-2004 green

Update "documentation date" fields.


133437 10-Aug-2004 green

Update mlock(2) manpage to cross-reference m{,un}lockall(2), remove
a case where ENOMEM could be returned by munlock(2), and add possible
system deadlock to the BUGS section.


133216 06-Aug-2004 roam

Fix a case of _SC_CLK_TCK being misspelled as _SC_CLOCK_TCK.

PR: 69428
Submitted by: Sascha Schneider <suntsu@suntsu.org>
MFC after: 2 weeks


132467 20-Jul-2004 csjp

Back out previous commit. Even though statfs(2) can take a regular
file as an argument, it may still fail for the same reasons that
open(2) can.

Pointed out by: Jilles Tjoelker
Apporived by: bmilekic (mentor)


132466 20-Jul-2004 csjp

Remove reference to ENOTDIR in the documented errors
for statfs(2). This is false, if the pathname specified
is a regular file, then the information for the file
system that the file lives on will be returned.

Approved by: bmilekic (mentor)


132257 16-Jul-2004 harti

Document the MSG_DONTWAIT flag.


132231 16-Jul-2004 alfred

Clarify getfsstat(2) usage.

The getfsstat(2) function expects a buffer and a count, and returns a count.

The confusing part is that the count it takes is a byte count, while the
return value is a count of the number of structures it has filled out.

Spell this out.


132012 12-Jul-2004 marcel

Document the new PT_LWPINFO request. In fact, the request is so new
it hasn't even been implemented yet. I just wanted to be the first
to try a new approach to development ;-)


131836 08-Jul-2004 wollman

Eliminate some magic numbers and correct description of _PC_NO_TRUNC.
Slight emendation to _PC_CHOWN_RESTRICTED, which is in a very similar
boat.


131762 07-Jul-2004 alfred

there's no such define as KERN_NAME_MAX, change to _POSIX_NAME_MAX.


131635 05-Jul-2004 ru

Fix the NAME section making whatis(1) happy in particular.


131594 04-Jul-2004 ru

Sort SEE ALSO references (in dictionary order, ignoring case).


131542 03-Jul-2004 ru

Fixed markup.


131539 03-Jul-2004 ru

Eliminate double whitespace.


131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131472 02-Jul-2004 ru

Removed trailing whitespace.


131365 30-Jun-2004 ru

Markup, grammar, and spelling fixes.


131047 24-Jun-2004 rik

s/SS_CANTSENDMORE/SBS_CANTSENDMORE/


130950 23-Jun-2004 bms

Be specific about which socket properties are inherited from the original
socket upon accept(2).

PR: docs/54995, kern/45733


130865 21-Jun-2004 mpp

Spelling fixes.


130863 21-Jun-2004 mpp

PR: docs/67884
Submitted by: Chirstopger Nehren <apeiron@comcast.net>


130655 17-Jun-2004 kbyanc

CLOCK_PROF and CLOCK_VIRTUAL are implemented now.


130505 15-Jun-2004 kbyanc

The maximum value of iovcnt is IOV_MAX, not 16.


130445 14-Jun-2004 das

Use .Dv instead of .Li for all the RLIMIT_* constants.

Requested by: ru


130437 13-Jun-2004 das

Document RLIMIT_AS. While here, correct an insertion sort error.


130213 07-Jun-2004 yar

Use ".In" to mark up C include file names.


130212 07-Jun-2004 yar

Each sentence should begin on a new line.


130209 07-Jun-2004 yar

Extend and improve the mdoc(7) markup of this page.

Reviewed by: ru


130186 07-Jun-2004 yar

Finally document the option to avoid zombie creation
through ignoring SIGCHLD.


129508 20-May-2004 alc

Update the document date.

Reminded by: ru@


129414 19-May-2004 alc

Remove a long obsolete paragraph from the BUGS section.


129369 17-May-2004 yar

Clarify and extend paragraphs on interoperation
of fcntl(2), flock(2), and lockf(3) advisory locks.
Add such a paragraph to the flock(2) manpage for the
sake of consistency.

Reviewed by: Cyrille Lefevre and Kirk McKusick on -arch
MFC after: 2 weeks


129160 12-May-2004 josef

Fix typo.

Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
PR: docs/66576


129120 11-May-2004 csjp

Document the fact that in a jailed environment, sendto(2) could fail
returning EPERM if the source address specified in the IP header did
not match the address bound to the prison.

Approved by: bmilekic (mentor)


128499 20-Apr-2004 cperciva

Add mention of the fact that timeouts are silently limited to 24 hours.

Observed by: jmg


128411 18-Apr-2004 cperciva

Document POSIX stupidity: Attempts to mmap zero bytes will succeed (and
have no effect), while attempts to munmap zero bytes will fail.


128336 16-Apr-2004 brueffer

Bring describtion of a sysctl in line with the source:

kern.acct_chkfreq is specified in seconds, not minutes.

Cluebat provided by: kensmith


128335 16-Apr-2004 brueffer

Remove unnecessary .Pp macro and bump document date

Submitted by: ru


128332 16-Apr-2004 brueffer

List some sysctl variables that influence accounting

PR: 65070
Submitted by: Marc Silver <marcs@draenor.org>
X-MFC after: re approval


127931 06-Apr-2004 dfr

Update .Dd value.

Reminded by: ru


127892 05-Apr-2004 dfr

Document lgetfh(2).


127203 19-Mar-2004 dds

Shave-off troff cycles by invoking .Fa only once.

Submitted by: ru
MFC after: 1 week


127063 16-Mar-2004 tjr

Sort MLINKS.

Noticed by: ru


127060 16-Mar-2004 tjr

Add fairly minimal documentation for the nmount() syscall.


126553 03-Mar-2004 dds

Document missing EFAULT errno value.

MFC after: 2 weeks


125592 08-Feb-2004 das

Update the documentation for setpgrp(2) to reflect the access control
checks that the code actually performs. Judging from the 4.2BSD
release notes, the docs have only been out of date for 20 years.

PR: 29844


125587 08-Feb-2004 silby

Document the SF_NODISKIO flag, and fix a small typo.


125039 26-Jan-2004 eivind

Xref kqueue and poll


125038 26-Jan-2004 eivind

Xref kqueue


124952 25-Jan-2004 ache

Describe EOVERFLOW case


124712 19-Jan-2004 phk

add cross-reference to clock_gettime(2)


124533 14-Jan-2004 ru

The libc_r/man/sigwait.3 manpage has been repocopied to libc/sys/sigwait.2.

Reviewed by: deischen
Repocopy by: markm


124530 14-Jan-2004 ru

- libc/sys/sem.c was repocopied to libc/gen/sem.c.
- sem_*(3) manpages were repocopied from libc_r.

Reviewed by: deischen
Repocopy by: markm


124346 10-Jan-2004 rwatson

Clarify the behavior of ptrace(2) a little bit: the tracing process
must first attach to the traced process. If the tracing process
exits without detaching, the traced process will be killed rather
than continued. For the duration of the tracing session, the traced
process is reparented to the tracing process (with resulting expected
behaviors). It is permissible to trace more than one other process
at a time. When using waitpid() to monitor the behavior of the traced
process, signals are intercepted: they may optionally then be
forwarded using ptrace(). Signals are generated normally by and for
the process, but also by the tracing facility (SIGTRAP).

Product of: Suffering
Sponsored by: DARPA, AFRL


123968 29-Dec-2003 maxim

Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.

Reviewed by: silby


123814 24-Dec-2003 alfred

Add restrict qualifiers. (docs)

PR: 44394
Submitted by: Craig Rodrigues <rodrige@attbi.com>


123534 14-Dec-2003 jkoshy

Document the effect of sysctl tunables controlling p_candebug(9) on
ktrace(2).


123388 10-Dec-2003 dds

Add sticky(8) cross reference.

PR: docs/60068
Submitted by: Ken Stailey
MFC after: 2 weeks


123367 10-Dec-2003 marcel

Add a short description of the kse_switchin(2) syscall to the kse
manpage and add a kse_switchin link. While here, list kse_thr_interrupt
before kse_wakeup in the MLINKS variable and the synopsis.


123094 01-Dec-2003 dg

Fixed a bug in sendfile(2) where the sent data would be corrupted due
to sendfile(2) being erroneously automatically restarted after a signal
is delivered. Fixed by converting ERESTART to EINTR prior to exiting.

Updated manual page to indicate the potential EINTR error, its cause
and consequences.

Approved by: re@freebsd.org


122936 21-Nov-2003 tjr

Replace out of date struct statfs definition with a reference to statfs(2).

Approved by: re


122895 19-Nov-2003 dds

Documented missing EINVAL errno value
kern_prot.c:
if (ngrp > NGROUPS)
return (EINVAL);

MFC after: 2 weeks


122776 16-Nov-2003 tjr

Resync. struct statfs and flag definitions with sys/mount.h.


122647 14-Nov-2003 alc

- Add documentation for EBUSY.
- Remove EIO.
- Add a cross reference to mlock(2).


122504 11-Nov-2003 kensmith

- Markup fix-ups (add .Dq, and some hard line breaks at the end
of sentences).

Approved by: blackend (mentor)


122503 11-Nov-2003 kensmith

- Add a note about how jail(2) effects the securelevel.

Reviewed by: rwatson
Approved by: blackend (mentor)


122489 11-Nov-2003 brueffer

Add information about the EVFILT_NETDEV filter

PR: docs/56872 (based on)
Submitted by: Suleiman Souhlal <refugee@vt.edu>
Reviewed by: hmp, jmg


122459 11-Nov-2003 jkoshy

Add a section documenting the sysctl(8) tunables that influence the
operation of ktrace(2). Add a cross-reference to sysctl(8). Make the
language of rev 1.22 more consistent with the rest of the manual page.


122457 11-Nov-2003 jkoshy

Have utrace(2) return ENOMEM if malloc() fails. Document this error
return in its manual page.

Reviewed by: jhb


122391 10-Nov-2003 des

Document EINVAL for len == 0.


122388 10-Nov-2003 jkoshy

Document KTR_DROP.


122040 04-Nov-2003 tjr

Add a reference to the new utrace(2) manual page.


121846 01-Nov-2003 tjr

Add a manual page for the utrace() system call.

Obtained from: NetBSD


121484 24-Oct-2003 kensmith

- fix description of what processes SIGCONT can be sent to

PR: docs/58413
Reviewed by: rwatson
Approved by: blackend (mentor)


121279 20-Oct-2003 dds

Bring the description of st_[cma]time modification conditions a bit
closer to reality. More work remains to be done. st_mtime should
be the most complete based on IEEE Std 1003.1, 2003 Edition, a
review of ufs_vnops.c, and some experimentation.


121263 20-Oct-2003 jmg

document the fact that kqueue will immediately return and not timeout when
nevents is 0.

PR: kern/45291


121011 11-Oct-2003 dds

Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.
The former is a kernel-only visible constant, the latter the
POSIX-specified userland constant defined by including limits.h.


120010 12-Sep-2003 ru

mdoc(7): Fix common mistakes made in the SEE ALSO section.


119964 10-Sep-2003 ru

mdoc(7): Properly mark C headers.


119963 10-Sep-2003 roberto

Document the fact that send(2) can return EPIPE (like when a socket is not
connected).

PR: docs/56683
Submitted by: Chris S.J. Peron <maneo@bsdpro.com>
MFC after: 3 days


119893 08-Sep-2003 ru

mdoc(7): Use the new feature of the .In macro.


119885 08-Sep-2003 iedowse

In the !MNT_BYFSID case, return EINVAL from unmount(2) when the
specified directory is not found in the mount list. Before the
MNT_BYFSID changes, unmount(2) used to return ENOENT for a nonexistent
path and EINVAL for a non-mountpoint, but we can no longer distinguish
between these cases. Of the two error codes, EINVAL was more likely
to occur in practice, and it was the only one of the two that was
documented.

Update the manual page to match the current behaviour.

Suggested by: tjr
Reviewed by: tjr


119775 05-Sep-2003 roam

Clarify that the second argument to accept() may be a null pointer if
no peer address information is desired.

PR: 56044
Submitted by: Felix Opatz <felix@zotteljedi.de> and
Bernd Luevelsmeyer <bdluevel@heitec.net>
MFC after: 1 month


119688 02-Sep-2003 dds

Fix/add errno return values to match the NFS client implementation and
better represent failures of special files accessed over NFS.

Approved by: schweikh (mentor)
Reviewed by: bde (as a description)
MFC after: 6 weeks


119570 30-Aug-2003 dds

Document that read(2) can also return EPERM

See e.g. nfsclient/nfs_vnops.c

static int
nfs_read(struct vop_read_args *ap)
{
struct vnode *vp = ap->a_vp;

if (vp->v_type != VREG)
return (EPERM);
return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag, ap->a_cred));
}

Approved by: schweikh (mentor)
MFC after: 6 weeks


118780 11-Aug-2003 iedowse

Make the documentation of PT_STEP match its implementation: the
`data' parameter is not ignored; if non-zero, it specifies a signal
number to be delivered to the traced process.

MFC after: 1 day


118773 11-Aug-2003 bms

Add the mlockall()/munlockall() system call manual page from NetBSD.

PR: kern/42426, standards/54223
Obtained from: NetBSD
Reviewed by: jake, alc
Approved by: jake (mentor)
MFC after: 2 weeks


118771 11-Aug-2003 bms

Add the mlockall() and munlockall() system calls.
- All those diffs to syscalls.master for each architecture *are*
necessary. This needed clarification; the stub code generation for
mlockall() was disabled, which would prevent applications from
linking to this API (suggested by mux)
- Giant has been quoshed. It is no longer held by the code, as
the required locking has been pushed down within vm_map.c.
- Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES
to express their intention explicitly.
- Inspected at the vmstat, top and vm pager sysctl stats level.
Paging-in activity is occurring correctly, using a test harness.
- The RES size for a process may appear to be greater than its SIZE.
This is believed to be due to mappings of the same shared library
page being wired twice. Further exploration is needed.
- Believed to back out of allocations and locks correctly
(tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC).

PR: kern/43426, standards/54223
Reviewed by: jake, alc
Approved by: jake (mentor)
MFC after: 2 weeks


118684 09-Aug-2003 bms

Add the POSIX 1003.1-2001 posix_madvise() interface.

PR: standards/54634
Reviewed by: das
Approved by: jake (mentor)


118545 06-Aug-2003 yar

Document that connect(2) can return EINTR, and that it
can return EALREADY for a socket in blocking mode as well.


118471 05-Aug-2003 jmg

add support for using kqueue to watch bpf sockets.

Submitted by: Brian Buchanan of nCircle, Inc.
Tested on: i386 and sparc64


117940 23-Jul-2003 dds

Document an additional error return value. The connect(2) call can also
return EACCES on non-Unix domain sockets as demonstrated by the
following program:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int
main(int argc, char *argv[])
{
struct sockaddr_in rem_addr;
int sock;

if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("socket");
exit(1);
}

bzero((char *)&rem_addr, sizeof(rem_addr));
rem_addr.sin_family = AF_INET;
rem_addr.sin_addr.s_addr = INADDR_NONE;
rem_addr.sin_port = htons(10000);

if (connect(sock, (struct sockaddr *)&rem_addr,
sizeof(rem_addr)) < 0) {
perror("connect");
exit(1);
}
}

The call chain returning this value is probably:

kern/uipc_syscalls.c:connect
kern/uipc_socket.c:soconnect
netinet/tcp_usrreq.c:tcp_usr_connect
netinet/tcp_output.c:tcp_output
netinet/ip_output.c:ip_output

Reviewed by: schweikh (mentor)
MFC after: 2 weeks


117635 15-Jul-2003 ceri

Back out revision 1.22.

Requested by: bde


117520 13-Jul-2003 ceri

ioctl macros and defines are now present in ioccom.h, not ioctl.h.
Update the manpage to reflect this.

PR: docs/54235
Submitted by: Karen Thode <thode12@msn.com>


117132 01-Jul-2003 iedowse

Add a new mount flag MNT_BYFSID that can be used to unmount a file
system by specifying the file system ID instead of a path. Use this
by default in umount(8). This avoids the need to perform any vnode
operations to look up the mount point, so it makes it possible to
unmount a file system whose root vnode cannot be looked up (e.g.
due to a dead NFS server, or a file system that has become detached
from the hierarchy because an underlying file system was unmounted).
It also provides an unambiguous way to specify which file system is
to be unmunted.

Since the ability to unmount using a path name is retained only for
compatibility, that case now just uses a simple string comparison
of the supplied path against f_mntonname of each mounted file system.

Discussed on: freebsd-arch
mdoc help from: ru


117089 30-Jun-2003 iedowse

Separate the description of the flags for mount(2) and unmount(2)
to clarify which system call accepts which arguments. Previously
the manual page gave the impression that calling unmount() with
flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a
read-write mount to read-only, which is clearly untrue; to do that,
these flags should be passed to mount() instead.


116916 27-Jun-2003 yar

Correct a misspelled name of time_hi_and_version.


116786 24-Jun-2003 yar

Unify cross-references between sigpending(2), sigprocmask(2),
and sigsuspend(2), all three of which operate or depend on the
process signal mask.

Add a missing xref to sigsetops(3), without which the above three
syscalls would be useless.


116656 21-Jun-2003 imp

Add clarifications about the information that ntp_gettime returns.
TAI is a timescale, just like UTC. The tai field returns the offset
between the two, and isn't really used for precision time keeping.
Explain in brief what a positive and a negative leap seconds are. Add
some URLs to very useful web pages about time and time keeping for
more information on using this API.

Reviewed by: phk


116631 20-Jun-2003 imp

ntp_adjtime returns the current state of the clock (TIME_*) on success
or -1 on failure. The manual used to say it returned 0 or -1. Both
examination of the kernel sources, and ntpd show that this is the case.

MFC After: 3 days


116476 17-Jun-2003 sobomax

Xref policy: exit(2) -> _exit(2).


116323 13-Jun-2003 trhodes

Document ENOSPC.

PR: 52612
Submitted by: Marc Olzheim <marcolz@ilse.nl>


116023 08-Jun-2003 charnier

.Xr p1003_1b moved to .St -p1003.1b-93


116021 08-Jun-2003 charnier

Add or correct section number in .Xr. Use .Vt or .Fn
instead of .Xr when needed


115802 04-Jun-2003 rwatson

Document the new explicit listing API for extended attributes; note
that the old API (passing "" as the attribute name to the _get_
interface) is now deprecated (and was probably a bad idea).

Pointed out by: Dominic Giampaolo <dbg@apple.com>
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


115771 03-Jun-2003 hmp

Document that kldload(2) can also return EEXIST.

Approved by: des (mentor)


115631 01-Jun-2003 ru

Assorted mdoc(7) fixes.


115225 22-May-2003 ru

Assorted mdoc(7) fixes.

Approved by: re (blanket)


114969 13-May-2003 dougb

* The copy of the stat struct in the man page has rotted, so remove it.
Those who really need this information can find it in the include file.

* Include a succinct description of the st_birthtime field.

Approved by: re (bmah)


114131 27-Apr-2003 robert

Correct the return value of vfork(2) and rfork(2) in their
manual page function prototypes.


113608 17-Apr-2003 trhodes

Add a manual page for the ntp_gettime syscall.

Reviewed by: ru, phk (older version).


113515 15-Apr-2003 trhodes

Add a manual page for the ntp_adjtime syscall.

PR: 32674
Reviewed by: phk, ru


113275 09-Apr-2003 mike

o In struct prison, add an allprison linked list of prisons (protected
by allprison_mtx), a unique prison/jail identifier field, two path
fields (pr_path for reporting and pr_root vnode instance) to store
the chroot() point of each jail.
o Add jail_attach(2) to allow a process to bind to an existing jail.
o Add change_root() to perform the chroot operation on a specified
vnode.
o Generalize change_dir() to accept a vnode, and move namei() calls
to callers of change_dir().
o Add a new sysctl (security.jail.list) which is a group of
struct xprison instances that represent a snapshot of active jails.

Reviewed by: rwatson, tjr


112955 01-Apr-2003 ceri

[1] - Document EHOSTUNREACH as a possible error

[2] - Remove a contraction

PR: docs/50401
Submitted by: [1] Slaven Rezic <slaven@rezic.de>
MFC after: 1 week


112881 31-Mar-2003 wes

Add a facility allowing processes to inform the VM subsystem they are
critical and should not be killed when pageout is looking for more
memory pages in all the wrong places.

Reviewed by: arch@
Sponsored by: St. Bernard Software


112543 24-Mar-2003 charnier

The .Fn function
The ... 2 system call


112542 24-Mar-2003 charnier

The .Fn function. Use .Xr where appropriate.


112134 12-Mar-2003 seanc

Update sendfile.2 to include a TUNING section that documents the
various tunables that are applicable to sendfile(2). Update tuning.7
to mention a reference to sendfile.2.

Approved by: keramida


111920 05-Mar-2003 peter

Remove NS and ISO stuff.


111476 25-Feb-2003 julian

Catch up with change to kse_release syscall.
The background info in this man page needs rewriting
in some parts since the last major changes
to the code, however it still accuratly reflects how to use the
API.


111447 24-Feb-2003 ru

mdoc(7) police: Scheduled sweep.


111301 23-Feb-2003 phk

Mention CLOCK_MONOTONIC.


111285 23-Feb-2003 ru

mdoc(7) police: markup laundry.


111103 18-Feb-2003 trhodes

Update errors.

PR: 48125
Submitted by: Per Hedeland <per@hedeland.org> (original version)


111010 16-Feb-2003 nectar

Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.

Reviewed by: /sbin/md5


110394 05-Feb-2003 charnier

Prevent uppercase after .Xr by adding ``The ... utility/system call''.


110369 05-Feb-2003 tjr

Mention that the CLOCK_VIRTUAL and CLOCK_PROF clocks are not implemented.

PR: 8376


110158 31-Jan-2003 rwatson

Document a bug in our chroot(2) implementation: if access control
checks, including the "open directory" check or a MAC check fail,
after the working directory of the process has been changed, then
the cwd of the process will be left as the target directory rather
than the original directory.

At some point, this bug might be fixable by performing the directory
change only after permission is granted for the change. In the
mean time document it (it's been there for a while).


110135 31-Jan-2003 tjr

Zap another reference to !RFPROC being unsupported that I missed before.


110134 31-Jan-2003 tjr

Don't use -compact in list of available flags. Fix tag width.


110133 31-Jan-2003 tjr

!RFPROC has been supported for a while now.


109831 25-Jan-2003 alfred

Bring shm functions closer the the opengroup standards.

PR: 47469
Submitted by: Craig Rodrigues <rodrigc@attbi.com>


109829 25-Jan-2003 alfred

Bring semop() closer the the opengroup standards.

PR: 47471
Submitted by: Craig Rodrigues <rodrigc@attbi.com>


109564 20-Jan-2003 maxim

Remove EOL whitespaces.


109562 20-Jan-2003 maxim

o Fix a typo.
o Prepend a function name by .Fn macro.

Reviewed by: archie


109440 17-Jan-2003 tmm

Document that listen() can return EINVAL now.


109404 17-Jan-2003 tjr

Do a better job of documenting mincore(2), esp. the MINCORE_* flags.


109219 14-Jan-2003 tjr

Add the newly created semaphore to the named semaphore list in sem_open()
so that multiple opens of the same semaphore without an intervening
sem_close() return the same object, and so that sem_close() does not
segfault while trying to remove the item from the list.


109217 14-Jan-2003 tjr

Including <time.h> before <aio.h> has not been necessary for a while now.


109186 13-Jan-2003 joerg

Mention the oddities and requirements for mount operations executed by
non-root users.

PR: docs/42651
Submitted by: Thomas Seck <tmseck@netcologne.de>
MFC after: 3 days


109174 13-Jan-2003 tjr

Refer to 1003.1 instead of 1003.2 in the Standards section.


109140 12-Jan-2003 mike

Fix struct iovec documentation to match reality.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>


109135 12-Jan-2003 tjr

Add a manual page for the lio_listio() syscall. Still needs a bit
of polishing.


108859 07-Jan-2003 keramida

Typo fixes.

PR: docs/46815
Submitted by: SUZUKI Koichi <koich@cac.co.jp>


108844 06-Jan-2003 trhodes

Remove redundant documenation.

PR: 46253
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


108317 27-Dec-2002 schweikh

english(4) police.


108309 27-Dec-2002 julian

Slight tuning if teh KSE man page to indicate some functionality is
not yet inplemented and to clear up some wording.


108260 24-Dec-2002 ru

Spelling: s/then/than/ where appropriate.


108257 24-Dec-2002 ru

mdoc(7) police: Deal with self-xrefs.


108230 23-Dec-2002 trhodes

Document protection bits.

PR: 46252
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>


108221 23-Dec-2002 ru

Fixed the abuses of .Ql visible on stderr in troff mode.

PR: docs/37176


108168 22-Dec-2002 jmallett

Fix style (no space after return, twice-too-big continuation) and
cast (casting long to a void pointer, rather than intptr_t to a
void pointer) bogons.

Reviewed by: bde


108105 19-Dec-2002 ceri

Grammatical fixup: s/be the -1/be -1/

MFC after: 1 day


108087 19-Dec-2002 ru

mdoc(7) police: "The .Fa argument.".


108085 19-Dec-2002 ru

mdoc(7) police: Fixed a few .Fa abuses.


108040 18-Dec-2002 ru

mdoc(7) police: Fixed abuses of the .Ar and .Em macros.


108028 18-Dec-2002 ru

mdoc(7) police: Tidy up the syscall language.

Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.


107913 15-Dec-2002 dillon

This is David Schultz's swapoff code which I am finally able to commit.
This should be considered highly experimental for the moment.

Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 3 weeks


107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


107741 11-Dec-2002 ru

Fixed the parameter's name.

PR: docs/46183
Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de>
Approved by: re


107387 29-Nov-2002 ru

mdoc(7) police: formatting nits.

Approved by: re


107179 22-Nov-2002 archie

Describe newly added fields in the KSE and thread mailboxes.

Approved by: re


107052 18-Nov-2002 ru

libc_r wasn't so tied to libc for 22 months.


107021 17-Nov-2002 mike

Update SYNOPSIS to reflect the standardized header. Add STANDARDS
section.

PR: 43270


106748 11-Nov-2002 marcel

Given that we have 3 places to document UUID related information,
namely uuidgen(1), uuidgen(2) and uuid(3), the following division
has been choosen:
uuidgen(1) A description of the command line utility,
and other user oriented UUID information.
uuidgen(2) A mostly technical description of UUIDs.
uuid(3) A description of the functions and other
programmer oriented UUID information.

According to the division: add more technical contents.

Contributed by: Hiten Pandya <hiten@uk.FreeBSD.org>
Edited and enhanced: marcel


106423 04-Nov-2002 nsayer

After waiting for help with the markup, I finally decided to just patch
the page myself. The new language is more accurate than what was there
before, but the most accurate way of describing the funcionality eludes
me.

PR: kern/33904
MFC after: 1 month


106401 04-Nov-2002 tjr

Add descriptions for some _PC_* variables from <sys/unistd.h> that
were missing.


106313 01-Nov-2002 kbyanc

Track the number of non-data chararacters stored in socket buffers so that
the data value returned by kevent()'s EVFILT_READ filter on non-TCP
sockets accurately reflects the amount of data that can be read from the
sockets by applications.

PR: 30634
Reviewed by: -net, -arch
Sponsored by: NTT Multimedia Communications Labs
MFC after: 2 weeks


106172 29-Oct-2002 rwatson

While an interface can be depreciated, we prefer deprecated.

Submitted by: Wayne Morrison <tewok@tislabs.com>


105870 24-Oct-2002 bde

Restored sigaction's name in its prototype.


105864 24-Oct-2002 sheldonh

* Modernize aio(4), providing instructions for static and dynamic kernel
linking.

* Fix disorder in the SEE ALSO sections of aio_*(2).

* Remove unnecessary cross-references from the SEE ALSO sections of
aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced
from aio(4).

* Remove the KERNEL OPTIONS sections from aio_*(2), now that these
pages cross-reference aio(4), which contains suitable kernel linking
reference material.


105861 24-Oct-2002 des

Add cross-references to the aio(4) manual page.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>


105720 22-Oct-2002 alfred

Explain to users that they may want to kldload aio.
Move Xref sections.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>


104813 10-Oct-2002 schweikh

Document that write(2) et al can return EROFS for attempts to write the
disk label area.

PR: 43891
Submitted by: Diomidis D. Spinellis <dds@istlab.dmst.aueb.gr>
MFC after: 3 days


104742 09-Oct-2002 alfred

de-__P()


104737 09-Oct-2002 rwatson

Add brief mention of the extattr_*_link() system call variants.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


104690 08-Oct-2002 archie

Add note that there is a kernel-imposed limit on the number of threads
in a KSE group that may be simultaneously blocked in the kernel.


104682 08-Oct-2002 archie

Add MLINKS to kse.2.


104492 04-Oct-2002 mike

Add restrict type-qualifier to sem_getvalue().


104454 04-Oct-2002 robert

Correct the regressive part of my last commit to these files:
use the .Fn macro instead of the .Fo ... .Fc combination to
format function prototypes.

Reminded by: bde


104382 02-Oct-2002 archie

Add a man page for the KSE system calls.

Reviewed by: julian, ru


104368 02-Oct-2002 robert

Add the 'restrict' type qualifier to the prototypes of `sigaction',
`sigprocmask', `sigaltstack', and `sigwait' as well as to the
prototypes of the apparantly unimplemented functions `sigtimedwait'
and `sigwaitinfo'. This complies with IEEE Std 1003.1-2001.


104330 02-Oct-2002 dd

Remove the "special processes" section. It has rotted, and the idea
ceased to be useful when the number of "special processes" went from 3
to one per device. I considered replacing it with a "kernel threads"
section, but this seemed like the wrong place for that.

PR: 40969


104329 01-Oct-2002 dd

Don't claim to return the fileid which we unloaded. The kernel
doesn't do this, and it wouldn't be very useful if it did, since the
caller supplies us with that number.

PR: 41329
Submitted by: Michael Galassi <nerd@xyz.com>


103971 25-Sep-2002 mike

<sys/types.h> is no longer needed.


103578 19-Sep-2002 alfred

Welcome the sem_ API to libc!


103240 11-Sep-2002 archie

Update to reflect reality.

Reviewed by: mini
MFC after: 3 days


103202 10-Sep-2002 archie

Adjust to reflect reality, which is that sigaltstack() takes stack_t *'s.

MFC after: 3 days


102340 24-Aug-2002 mike

Note that <sys/types.h> in no longer a prerequisite for <utime.h> and
<sys/mman.h>.


102229 21-Aug-2002 phk

s/EDOFUS/EDOOFUS/

Persuaded by: Google


101810 13-Aug-2002 ru

can not -> cannot.


101584 09-Aug-2002 phk

Update with new error return code.

Reminded by: rwatson


101580 09-Aug-2002 ru

mdoc(7) police: punctuation.


101579 09-Aug-2002 ru

mdoc(7) police: sort xrefs.


101497 08-Aug-2002 mike

Implement POSIX.1-2001 (XSI)'s ulimit(3).

Submitted by: Kyle Martin <mkm@ieee.org>


101480 07-Aug-2002 wollman

Document file descriptor reopening and current standardization status.


101017 31-Jul-2002 chris

Grammar (`was' -> `were')


100907 30-Jul-2002 silby

Update docs to reflect change in count of procs reserved for root
from 1 to 10.

PR: kern/40515
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day


100207 17-Jul-2002 mckusick

Change utimes to set the file creation time (for filesystems that
support creation times such as UFS2) to the value of the
modification time if the value of the modification time is older
than the current creation time. See utimes(2) for further details.

Sponsored by: DARPA & NAI Labs.


100144 15-Jul-2002 keramida

The .Fn function.


100143 15-Jul-2002 keramida

The .Fn function


100139 15-Jul-2002 keramida

Add a missing 'function' word.
Use .Vt to mark up `struct stat' when it is a variable type.


100137 15-Jul-2002 keramida

The .Fn function


100062 15-Jul-2002 keramida

Fix whitespace in .Bd -literal display of S_IXXX constants.

Noticed by: jmallett


99605 08-Jul-2002 mux

Typo fix: Setlogin() -> setlogin().

Submitted by: Olivier Houchard <cognet@ci0.org>


99593 08-Jul-2002 mike

Bring poll.h up to conformance with POSIX.1-2001 by adding some
visibility conditionals, adding the nfds_t type, and changing the
poll() prototype a little. Update the manual to match.


99538 07-Jul-2002 dannyboy

s/unavilable/unavailable/

PR: 39446
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after: 1 day


99335 03-Jul-2002 chris

Correct a call to fcntl(F_SETFD) to use `FD_CLOEXEC' instead of `1'.


99334 03-Jul-2002 chris

Add a SECURITY CONSIDERATIONS example: make note that access to open
file descriptors does not change upon dropping privilege, and include
a likely case of `setuid(non_superuser); exec(...);'.

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


99282 02-Jul-2002 mp

Fix typo (SIGEV_EVENT -> SIGEV_KEVENT).


99214 01-Jul-2002 chris

Rename `CAVEAT' to `SECURITY CONSIDERATIONS' and move it up to
the correct location--this section consists solely of security
considerations information.

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


97715 01-Jun-2002 mike

Add mdoc bits for the new waitpid() WCONTINUED option, and
WIFCONTINUED macro.


97584 30-May-2002 ru

mdoc(7) police: kill hard sentence break.


97470 29-May-2002 ru

mdoc(7) police: markup nits.


97469 29-May-2002 ru

mdoc(7) police: bump document date on behalf of previous delta.


97468 29-May-2002 ru

mdoc(7) police: sort xrefs.


97372 28-May-2002 marcel

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.


97295 26-May-2002 dd

Remove extra word.

Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>


96817 17-May-2002 roam

Update the EINVAL description again - it turns out that EINVAL
may be returned by Q_SETQUOTA as well as the originally listed
Q_GETQUOTA.

Noticed by: dd
Approved by: silence from dd
MFC after: 3 days


96563 14-May-2002 roam

Document Q_GETQUOTA returning EINVAL when quotas are not enabled
on the filesystem.

PR: doc/37839
Submitted by: "Michael R. Wayne" <wayne@staff.msen.com>
Approved by: silence on -doc
MFC after: 3 days


96228 08-May-2002 silby

Some updates to mention accept filters and how
listen queues work in a syncache world.

MFC after: 3 days


96085 05-May-2002 mux

Document the lchflags(2) syscall.


95041 19-Apr-2002 ru

mdoc(7) police: polishing.


95004 18-Apr-2002 mux

Connect the kenv.2 manpage to the build.


95003 18-Apr-2002 mux

Add a manpage for the kenv(2) syscall that Chad David kindly
wrote for me.

Submitted by: davidc


94632 14-Apr-2002 dd

Correct markup.


94586 13-Apr-2002 asmodai

Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.
Reflect that fact in the manual page.

PR: 12723
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Approved by: bde
MFC after: 2 weeks


92986 22-Mar-2002 obrien

Fix the style of the SCM ID's.
I believe have made all of libc .c's as consistent as possible.


92905 21-Mar-2002 obrien

Remove __P() usage.


92797 20-Mar-2002 ru

mdoc(7) police: Fixed the spammage of this file with trailing whitespaces
in revisions 1.26-1.28. Fixed two bugs in punctuation cleanup in rev. 1.27.
Removed hard sentence break not killed by rev. 1.26.


92524 18-Mar-2002 dd

Features are deprecated, not depreciated.

PR: 35987
Submitted by: shill@free.fr


92399 16-Mar-2002 des

Document PT_IO, and move the comment about machine-dependent requests
below PT_[GS]ET_{,DB,FP}REGS.


92397 16-Mar-2002 des

Further cleanup (punctuation, genitive)


92396 16-Mar-2002 des

Insert newlines between sentences and rewrap paragraphs. No changes to
the actual text or markup.


92355 15-Mar-2002 ru

mdoc(7) police: hard sentence breaks, whitespace at EOL, contractions.


92354 15-Mar-2002 ru

mdoc(7) police: Fix xref to timeradd(3).


92353 15-Mar-2002 ru

mdoc(7) police: punctuation nit.


92269 14-Mar-2002 maxim

Clarify fcntl(2) and flock(2) interoperability.

PR: docs/23353
Reviewed by: ru, dillon
Approved by: ru
MFC after: 3 days


91935 09-Mar-2002 dd

Correct a typo.

Submitted by: peter.kusenda@accenture.com


91912 08-Mar-2002 rwatson

Improve punctuation consistency: all errors had a '.' after them
except ENOATTR.


91814 07-Mar-2002 green

Add new errno ``ENOATTR''.


91748 06-Mar-2002 maxim

Add GETPID to the list of operations for which semctl(2) returns the value.

Reviewed by: alfred, ru
Approved by: ru
MFC after: 3 days


90712 15-Feb-2002 wollman

Document that the type of st_flags is now fflags_t.


90482 10-Feb-2002 dd

Don't make it seem like vm.max_proc_mmap only affects MAP_FIXED.

PR: 34005
Submitted by: Steven Grady <grady@digitaldeck..com>,
Hiten Pandya <hitmaster2k@yahoo.com>


90450 10-Feb-2002 rwatson

Part III: Update extended attribute system call interface documentation.

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


89732 24-Jan-2002 dwmalone

Change brk's prototype from char *brk(const char *) to int brk(const void *)
and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).

This makes us more consistant with NetBSD and standards which include
these functions. Bruce pointed out that ptrdiff_t would probably
have been better than intptr_t, but this doesn't match other
implimentations.

Also remove local declarations of sbrk and unnecessary casting.

PR: 32296
Tested by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 1 month


89650 22-Jan-2002 ru

Fix the description of the O_NONBLOCK flag to match reality.

Prodded by: Maxim Konovalov <maxim@macomnet.ru>
Obtained from: BSD/OS


89321 14-Jan-2002 dwhite

Add xref for timeradd(3).

PR: 13079


89144 09-Jan-2002 sheldonh

Document behaviour with respect to interval timers.

PR: 33156
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>


88985 07-Jan-2002 dd

We are munmap(2), so there's no need to list ourselves in the SEE ALSO
section; instead, list our partner in crime, mmap(2).

PR: 33153
Submitted by: Faried Nawaz <fn@hungry.org>


88984 07-Jan-2002 dd

Nuke the paragraph that says "One can obtain user connection request
data without confirming the connection by issuing a recvmsg(2) [...]".
There's no such code in the kernel.

PR: 26861
Submitted by: Richard A Steenbergen <ras@e-gerbil.net>,
Tom Rhodes <darklogik@pittgoth.com>


88886 04-Jan-2002 yar

Minor grammar and punctuation fixes
in the SO_ACCEPTFILTER description.


88885 04-Jan-2002 yar

State clearly that one should call listen(2) on a socket
at first and try to set an accept_filter(9) on it only after that.
Also document errno value that will be set if installing the
filter on a non-listening socket.


88573 28-Dec-2001 mpp

Add xref to jail(2).

PR: docs/33177
Submitted by: Tom Rhodes <darklogik@pittgoth.com>


88351 21-Dec-2001 peter

The VM_STACK option is long dead. MAP_STACK is available everywhere.


88158 19-Dec-2001 jhb

Document that rfork() will return EINVAL if flags not listed in the
manpage are passed in.


87492 07-Dec-2001 ru

Fix a typo.

Submitted by: "Alexey V. Neyman" <alex.neyman@auriga.ru>


87359 04-Dec-2001 ru

mdoc(7) police: markup the previous delta.


87082 29-Nov-2001 green

Bump p1003.1-90 to p1003.1-96.


87080 29-Nov-2001 gshapiro

rename() can't guarantee "to" always exists if it didn't exist in the first
place -- for example, rename("existing", "newfile"); on a read-only file
system.

Reviewed by: green
MFC after: 3 days


87025 28-Nov-2001 jwd

Return a more meaningful errno when the length of the interpreter
exceeds MAXSHELLCMDLEN to avoid secondary /bin/sh execution.

Update execve man page to reflect change.

Increase MAXSHELLCMDLEN to a slightly more meaningful value.

PR: kern/32106
Submitted by: b@etek.chalmers.se
Reviewed by: bsd
MFC after: 2 weeks


86734 21-Nov-2001 ru

mdoc(7) police: general cleanup.


86518 18-Nov-2001 iedowse

Remove a sentence from the BUGS section that claims non page-aligned
offsets don't work. It should really be documented that the returned
pointer can be in the middle of a fully-valid page when the offset
is not page-aligned, but I couldn't come up with suitable wording.

PR: kern/22754


86200 09-Nov-2001 peter

Note that the manpage is incorrect about the vector argument.


86087 05-Nov-2001 jhb

- There is no such thing as a socket structure. sockets are integers.
I'm assuming that the comment was regarding socket address structures, so
correct the comment about pre-zero'ing socket structures to recommend
pre-zero'ing socket address structures.
- Fix some minor grammar nits.
- This isn't directly submitted by the PR below but is related to it and was
inspired by it.

PR: 31704


86065 05-Nov-2001 dd

Document ENETDOWN.

PR: 31436
Submitted by: Milon Papezik <milon.papezik@oskarmobil.cz>


85555 26-Oct-2001 ru

Remove the internal implementation details of wrapping syscalls,
which do not match the reality anyway.

Approved by: deischen, bde


85338 23-Oct-2001 dd

Refer to chflags(2) instead of chflags(1) (since we're a section 2
manual page), fix capitalization, and remove chflags reference from
SEE ALSO since the only time it's referenced is with an .Xr, anyway.

Submitted by: bde


85162 19-Oct-2001 ru

mdoc(7) police: join OS version with the corresponding macro.


85018 16-Oct-2001 alfred

Fix reference to aio_read, should be aio_write


84942 14-Oct-2001 dd

link(2) may fail with EPERM if name1 is immutable or append-only.

PR: 31025
Submitted by: Tim Singletary <tsingle@vetinsite.com>


84888 13-Oct-2001 dillon

Add warning about zeroing-out the socket structure before populating it.


84805 11-Oct-2001 ru

- Bump document date for eaccess(2) addition.
- Mention ``eaccess'' in the NAME section.
- Use intro(2) terminology.
- Markup fixes.

Reviewed by: rwatson


84789 11-Oct-2001 mr

Fix SysV Semaphore Handling.
Updated by peter following KSE and Giant pushdown.
I've running with this patch for two week with no ill side effects.

PR: kern/12014: Fix SysV Semaphore handling
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>


84391 03-Oct-2001 bde

Fixed misspelled arg type in synopsis.


84390 03-Oct-2001 bde

Fixed missing include in synopsis.


84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


83869 24-Sep-2001 murray

- Correct capitalization of a function name.
- Add a missing word to form a complete sentence.

PR: docs/30626
Submitted by: Dan Lukes <dan@obluda.cz>, and
swear@blarg.net (Gary W. Swearingen)


83797 21-Sep-2001 rwatson

o Modify access(2) man page to describe eaccess(2), and add a symlink
so man eaccess will return the access(2) man page.

Obtained from: TrustedBSD Project


83371 12-Sep-2001 guido

Typo: s/conatains/contains/

MFC after: 1 week


83148 06-Sep-2001 yar

Fix all the ambiguous or erroneous statements of the brk(2)
manpage by taking its text from NetBSD and editing it further.
This also improves the page's mdoc(7) markup style.

Reviewed by: ru
Obtained from: NetBSD


82881 03-Sep-2001 dd

This does not describe sched_{get,set}scheduler.

PR: 26001
Submitted by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>


82880 03-Sep-2001 dd

Don't capitalize jail(2) in the middle of a sentence.

PR: 25876
Submitted by: Koizumi Satoru <koizumi@cms.phys.s.u-tokyo.ac.jp>


82862 03-Sep-2001 murray

PT_STEP in ptrace(2) man page is described as 'addr and data fields
are not used'. This is incorrect, as addr must be passed (caddr_t)1
to do anything useful. The source for gdb and a short test program
will confirm that this man page was in error.

PR: docs/27758
Submitted by: Jiangyi Liu <jyliu@163.net>


82812 02-Sep-2001 ache

Remove MLINKS seek.2 to lseek.2, we don't have seek.2 syscall


82761 01-Sep-2001 chris

Another punctuation fix (missing comma ending preposition).


82760 01-Sep-2001 chris

o Mention the fact that specifying a fileid of 0 searches all loaded
modules.
o Properly terminate a preposition.


82705 31-Aug-2001 ache

Describe EOVERFLOW I implement per POSIX.
Sort ERRORS section


82642 31-Aug-2001 ru

Use ``.Rv -std'' wherever possible.

Submitted by: yar


82600 30-Aug-2001 alex

Add Xref to make.conf(5).


82407 27-Aug-2001 dd

There shuldn't be whitespace before a question mark.


82402 27-Aug-2001 ru

mdoc(7) police: removed whitespace at EOL.


82401 27-Aug-2001 ru

mdoc(7) police: markup and spelling fixes.


82400 27-Aug-2001 ru

mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs.


82397 27-Aug-2001 sobomax

Remove grammatical bogon.


82292 24-Aug-2001 dillon

Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the same
semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from
kernel defines).


82291 24-Aug-2001 dillon

Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. Properly
document minherit().


82289 24-Aug-2001 dillon

Update the mmap.2 and minherit.2 manual pages. Add a short explanation and
referal from mmap to minherit for MAP_INHERIT. Fully document the
minherit.2 manual page (because frankly, my dear, however you think it
currently works is almost certainly wrong!). I may soon re-implement
MAP_COPY because I believe we can support it properly now, but I will have
to call it something else and that is for a later time.


82274 24-Aug-2001 ache

Fd is macro too, so use \&Fd


82273 24-Aug-2001 ache

Fildes -> Fd too (started from big letter)


82272 24-Aug-2001 ache

Change
start means ...
to
.Fa l_start
means ...


82271 24-Aug-2001 sheldonh

Fix up English from previous 3 revisions.

There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'.


82240 23-Aug-2001 dg

Killed reference to MAP_INHERIT which is not supported in FreeBSD.


82216 23-Aug-2001 ache

Now we implement l_len<0 per POSIX, describe it.


82177 23-Aug-2001 ache

Rephrasing prev. commit a bit.


82176 23-Aug-2001 ache

Describe EOVERFLOW, EOPNOTSUPP and reaction to negative l_len


82139 22-Aug-2001 ru

mdoc(7) police: Fixed broken xrefs.


82103 21-Aug-2001 ache

Document new EINVAL, EOVERFLOW cases. Sort ERRORS


81853 17-Aug-2001 dd

Xref raise(3).


81831 17-Aug-2001 ru

mdoc(7) police: fixed the fatal.


81629 14-Aug-2001 yar

Use the ".Rv" mdoc(7) macro where appropriate.

Reviewed by: ru


81627 14-Aug-2001 yar

Isolate the ERRORS section from the RETURN VALUES one.

Reviewed by: ru


81622 14-Aug-2001 ru

mdoc(7) police: s/BSD/.Bx/ where appropriate.


81590 13-Aug-2001 ru

mdoc(7) police: s/NetBSD/.Nx/ where appropriate.


81589 13-Aug-2001 ru

mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.


81588 13-Aug-2001 ru

Spell "FreeBSD" with "F" and "BSD" in uppercase.


81462 10-Aug-2001 ru

mdoc(7) police: join split punctuation to macro calls.


81449 10-Aug-2001 ru

mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.


81417 10-Aug-2001 ru

mdoc(7) police: add xref to intro(2).


81362 09-Aug-2001 mike

o Remove some misleading and incomplete information about search
permissions.
o Add a reference to intro(2) where it is properly documented.

Reviewed by: bde
MFC after: 3 days


81352 09-Aug-2001 yar

Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.

Reviewed by: ru


81281 08-Aug-2001 ru

mdoc(7) police: remove whitespace at EOL.


81276 08-Aug-2001 ru

mdoc(7) police: markup nits.


81266 08-Aug-2001 peter

Update ptrace(2) re: PT_READ_U and PT_WRITE_U


81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


81235 07-Aug-2001 ru

mdoc(7) police: sort xrefs.


80904 01-Aug-2001 dd

mdoc(7) police: remove hard sentence breaks.


80898 01-Aug-2001 sheldonh

MFS: in HISTORY section, fix release number of first appearance


80743 31-Jul-2001 mp

Only pull in the MD files if they exist. This allows for progressive
implementation and compilation when bringing up a new architecture.


80723 31-Jul-2001 brian

Mention the sa_handler and sa_sigaction #defines in the synopsis.

Mark sa_sigaction consistently.

MFC after: 1 week


80533 29-Jul-2001 dd

Don't xref mt(1) just because it mentions ioctl.

Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>


80532 29-Jul-2001 dd

Don't capitalize variable names.


80531 29-Jul-2001 dd

ioctl(2) can return EFAULT from copyin.

PR: 29285
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>


80433 27-Jul-2001 chris

Add cross-references for the new kldsym(2) man page.


80432 27-Jul-2001 chris

Add a new kldsym(2) man page.


80269 24-Jul-2001 sheldonh

The delta introduced in the previous revision and attributed to the
OpenBSD project had grammar problems and made no attempt to motivate
the practice of saving errno. Replace it with something better.


80255 24-Jul-2001 sheldonh

Finish the sweep of changes that fix doubled 'the'.


80253 24-Jul-2001 kris

Add a few more functions which are safe to call from signal handlers,
and give a bit of advice.

Obtained from: OpenBSD
MFC After: 1 week


80252 24-Jul-2001 yar

Unify SEE ALSO sections of the kld*.2 and mod*.2 manpages.
Previously, some useful xrefs were missing.
Now each of the pages refers to all remaining section 2 pages,
to the kld(4) page, and to a related utility's (section 8) page.


80144 22-Jul-2001 mpp

Fix some man page xrefs.

PR: docs/26065
MFC after: 1 week


79990 19-Jul-2001 jlemon

Document EVFILT_TIMER.

MFC after: 1 week


79754 15-Jul-2001 dd

Remove whitespace at EOL.


79557 10-Jul-2001 ru

mdoc(7) police: removed punctuation after the last SEE ALSO xref.


79531 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


79366 06-Jul-2001 ru

mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).


79208 04-Jul-2001 yar

Use the .Rv macro to describe the return value.

Suggested by: ru
MFC after: 5 days


79204 04-Jul-2001 ru

mdoc(7) police: added missing newline after .Dv macro call,
removed hard sentence breaks.


79203 04-Jul-2001 ru

mdoc(7) police: use .Rv -std.


79180 04-Jul-2001 dd

Describe the condition when EACCES is returned more explicitly.

Submitted by: bde


79143 03-Jul-2001 yar

First, fix a leftover of the cut'n'paste from the kld* pages:
change the name of the page (.Nm) from "kldstat" to "modstat".
Second, don't claim that modstat(2) always returns 0. Actually,
it behaves as most syscalls do - returns 0 on success, or -1
on failure.

MFC after: 5 days


79113 02-Jul-2001 dd

EACCES may be returned if write permission was denied as well.

PR: 28553
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>


78894 27-Jun-2001 dd

event.h -> sys/event.h

Submitted by: David Hill <david@phobia.ms>


78865 27-Jun-2001 chris

Remove an extra word "fo" in the sentence "there is no process whose
process ID equals fo pid".

PR: 28436
Submitted by: Gregory Bond <gnb@itga.com.au>


78747 25-Jun-2001 dd

Minor cleanup: sort includes, fix name.


78739 24-Jun-2001 dd

Add a link to extattr.2 (from extattr_get_file.2). The other names
are too specific and too long, and extattr.2 makes a nice point of
reference for "extattr-related syscalls".


78686 24-Jun-2001 dd

Remove duplicate words.


78086 11-Jun-2001 jlemon

Fix small bogon.

Submitted by: Anton Berezin <tobez@tobez.org>


77775 05-Jun-2001 imp

I neglected to notice that the change text had already been added in a
different place. Back out what I added since the other text is better.

Noticed by: nectar


77759 05-Jun-2001 sobomax

Fix cross-references:
ipnat.8 --> ipnat.1
environ.5 --> environ.7
isssetugid.2 --> issetugid.2

MFC after: 1 week


77747 05-Jun-2001 imp

Document what happens when the real id is changed.

I may have obtained this from NetBSD, but I don't recall. I do know that
I checked FreeBSD's implementation to make sure that it matched what I wrote.


77575 01-Jun-2001 ru

Remove vestiges of MFS.


77115 24-May-2001 dillon

This patch implements O_DIRECT about 80% of the way. It takes a patchset
Tor created a while ago, removes the raw I/O piece (that has cache coherency
problems), and adds a buffer cache / VM freeing piece.

Essentially this patch causes O_DIRECT I/O to not be left in the cache, but
does not prevent it from going through the cache, hence the 80%. For
the last 20% we need a method by which the I/O can be issued directly to
buffer supplied by the user process and bypass the buffer cache entirely,
but still maintain cache coherency.

I also have the code working under -stable but the changes made to sys/file.h
may not be MFCable, so an MFC is not on the table yet.

Submitted by: tegge, dillon


77042 23-May-2001 ru

Rename (after a repo-copy) some mount(8) programs:

mount_fdesc -> mount_fdescfs
mount_null -> mount_nullfs
mount_portal -> mount_portalfs
mount_umap -> mount_umapfs
mount_union -> mount_unionfs


76864 20-May-2001 archie

Document ECONNREFUSED.

Submitted by: Richard Hodges <rh@matriplex.com>


75670 18-Apr-2001 ru

mdoc(7) police: normalize .Nd.


75544 16-Apr-2001 ru

mdoc(7) police: add missing .El call.


75531 15-Apr-2001 dd

Grammar police: "its", not "it's", is the possessive form of "it".


75530 15-Apr-2001 dd

Make links from setresuid.2 to getresgid.2 and getresuid.2.


75529 15-Apr-2001 dd

Document getresgid and getresuid calls.

Reviewed by: ru


75502 14-Apr-2001 dd

Add ``RETURN VALUES'' and ``ERRORS'' sections since getpgid(2) can
fail. Also fix a minor grammar nit (it's -> its).

PR: 26520


75368 10-Apr-2001 deischen

To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. This macro is
improperly named, though, since a weak definition is not the same
thing as a weak reference.

Suggested by: bde


75313 08-Apr-2001 dd

Mention that locks are inherited across an exec.

PR: 24802
Submitted by: Kenneth Ingham <ingham@i-pi.com>


75307 08-Apr-2001 dd

Install links to extattr_(get|set|delete)_fd.2 (from extattr_get_file.2).


75206 05-Apr-2001 dd

Document the extattr_(get|set|delete)_fd calls, and add a note warning
people that these calls are likely to change in the future.

Reviewed by: rwatson


75076 01-Apr-2001 dd

Hook the extattr_get_file.2 manual page into the build. Add MLINKS
for extattr_set_file.2 and extattr_delete_file.2.


75075 01-Apr-2001 dd

A manual page for the extattr_get_file, extattr_set_file, and
extattr_delete_file system calls.

Reviewed by: rwatson, ru
Approved by: nik


74971 29-Mar-2001 ben

Catch up with a comment that changed in rev1.73 of mount.h

PR: 25836
Submitted by: Tony Finch <dot@dotat.at>


74952 28-Mar-2001 phk

The f_syncreads and f_asyncreads entries are missing from the man page.

This also tidies up the formatting a bit and omits all the padding
entries.

PR: 25834
Submitted by: Tony Finch <dot@dotat.at>


74870 27-Mar-2001 ru

MAN[1-9] -> MAN.


74498 19-Mar-2001 dd

Make it clear who can and can't set the UF_NODUMP, UF_OPAQUE, and
SF_ARCHIVED file flags.

PR: 25227
Approved by: nik


74369 16-Mar-2001 dillon

Fix type-o

Submitted by: okazaki


74318 16-Mar-2001 dd

Correct descriptions of SOCK_RDM and SOCK_SEQPACKET.

PR: 25797
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
Approved by: nik


74309 15-Mar-2001 dwmalone

Correct spelling of MNT_ASYNC.

PR: 25835
Submitted by: Tony Finch <dot@dotat.at>


74173 12-Mar-2001 ru

.St -p1003.1g -> .St -p1003.1g-2000.


74021 09-Mar-2001 ru

This is the getsid() we are talking about, not setsid().

PR: docs/25626
Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>


73153 27-Feb-2001 ru

In soshutdown(), use SHUT_{RD,WR,RDWR} instead of FREAD and FWRITE.
Also, return EINVAL if `how' is invalid, as required by POSIX spec.


73092 26-Feb-2001 ru

/^\.St/ s/-iso9945-1/-p1003.1-96/


73090 26-Feb-2001 ru

``.St -p1003.1b'' -> ``.St -p1003.1b-93''.


73084 26-Feb-2001 jasone

Document the EINTR error.


73060 26-Feb-2001 jlemon

Document various changes to kq:
- new EV_SET macro,
- NOTE_LOWAT option for low water marks on read/write filters,
- NOTE_REVOKE for filesystem unmounting (and revoke() calls)
- improved API for EVFILT_AIO


73054 25-Feb-2001 olgeni

Fix my ambiguous message about ECONNABORTED.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>


73046 25-Feb-2001 olgeni

Add ECONNABORTED to the ERRORS section.


72496 14-Feb-2001 peter

List the SA_RESTART flag rather than burying it in another paragraph.


72475 14-Feb-2001 guido

Add include <sys/time.h> because kevent uses struct timespec


72409 12-Feb-2001 ru

Sort PROT_* and MAP_* lists, logically and alphabetically respectively.

Suggested by: bde

General mdoc(7) cleanup.


72370 11-Feb-2001 nik

Mention PROT_NONE in the list of possible protections.

Pointed out by: kris


72367 11-Feb-2001 nik

Note that mmap(2) can allocate memory, as well as mapping existing files,
in the .Nd.

Reviewed by: hackers


72214 09-Feb-2001 ru

mdoc(7) police: prevent generation of the extra
whitespace after ``i.e.'', use .Rv, update .Dd.


72160 08-Feb-2001 nectar

Document the cases in which setreuid changes the saved-user-ID.


72126 07-Feb-2001 ru

mdoc(7) police: Change -filled displays (which just happen
to be the same as -ragged in the current implementation) to
-ragged. With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.


71978 04-Feb-2001 mckay

Spelling.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


71770 29-Jan-2001 deischen

Clean up syscall generation in libc by removing HIDDEN_SYSCALLS
and treating (almost) all system calls the same way:

__sys_foo - actual syscall
foo, _foo - weak definitions to __sys_foo

Change PSEUDO syscalls (currently only _exit and _getlogin) to
be __sys_foo (T) and _foo (W).

Add $FreeBSD$ to a few files to satisfy commitprep.

Suggested by: bde


71579 24-Jan-2001 deischen

Remove _THREAD_SAFE and make libc thread-safe by default by
adding (weak definitions to) stubs for some of the pthread
functions. If the threads library is linked in, the real
pthread functions will pulled in.

Use the following convention for system calls wrapped by the
threads library:
__sys_foo - actual system call
_foo - weak definition to __sys_foo
foo - weak definition to __sys_foo

Change all libc uses of system calls wrapped by the threads
library from foo to _foo. In order to define the prototypes
for _foo(), we introduce namespace.h and un-namespace.h
(suggested by bde). All files that need to reference these
system calls, should include namespace.h before any standard
includes, then include un-namespace.h after the standard
includes and before any local includes. <db.h> is an exception
and shouldn't be included in between namespace.h and
un-namespace.h namespace.h will define foo to _foo, and
un-namespace.h will undefine foo.

Try to eliminate some of the recursive calls to MT-safe
functions in libc/stdio in preparation for adding a mutex
to FILE. We have recursive mutexes, but would like to avoid
using them if possible.

Remove uneeded includes of <errno.h> from a few files.

Add $FreeBSD$ to a few files in order to pass commitprep.

Approved by: -arch


71193 17-Jan-2001 ben

Document EHOSTDOWN error.

PR: 24410
Submitted by: Martin Horcicka <horcicka@vol.cz>


71124 16-Jan-2001 ben

The bit about sigpending not detecting any errors is a lie, it can return
EFAULT.

PR: 24360
Submitted by: Kenneth Ingham <ingham@i-pi.com>


71097 16-Jan-2001 ru

Prepare for mdoc(7)NG.


70874 10-Jan-2001 ru

mdoc(7) police: fixed (minor) mdoc bugs introduced in previous revision.


70557 01-Jan-2001 deischen

Change the interface of getlogin_r to return an int. The former
interface was based on a draft version of POSIX whereas the final
(1996) version of POSIX specified that the error is returned.

While I'm here, fix getlogin_r so that it works for more than just
the first time it's called.

Reviewed by: wes, wollman (man page)


70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


70022 14-Dec-2000 ru

mdoc(7) police: added missing .Os call.


70015 14-Dec-2000 ru

mdoc(7) police: removed history info from the .Os FreeBSD call.


69857 11-Dec-2000 ru

mdoc(7) police: use canonical form of .Dd macro.


69563 04-Dec-2000 ru

mdoc(7) police: fix formatting errors in rev 1.27.


69555 03-Dec-2000 dillon

Add warning on file-fragmentation issues related to MAP_NOSYNC


69336 29-Nov-2000 alfred

document O_NOFOLLOW and O_FSYNC flags to open


69276 27-Nov-2000 sobomax

Add reference to elf(5) in addition to already mentioned a.out(5) and add both
elf(5) and a.out(5) into `SEE ALSO' section.


69113 24-Nov-2000 sheldonh

Remove the only hard sentence break in the file.


69051 22-Nov-2000 ru

mdoc(7) police: Er macro usage cleanup.


69026 22-Nov-2000 ru

log


69014 21-Nov-2000 jlemon

Fix a logic reversal: the RFFDG flag must be unset in order to share
a file descriptor table. (Thanks to Alan Cox)

Clarify the fact that the changelist and eventlist can be shared.


68998 21-Nov-2000 asmodai

Clarify the time parameter of the kevent() system call.

Inspired by PR: 21708
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>
Reviewed by: jlemon


68948 20-Nov-2000 ru

mdoc(7) police: fixed warnings.


68946 20-Nov-2000 ru

mdoc(7) police: Nm -> Fn where appropriate.


68893 19-Nov-2000 kris

Don't suggest people use getpid() to construct temporary filenames;
point them to mkstemp() instead.

Obtained from: OpenBSD (based on)


68854 17-Nov-2000 ru

mdoc(7) police: use certified section headers wherever possible.


68751 15-Nov-2000 ben

Remove fullstops from the end of .Xr lines in SEE ALSO section.


68716 14-Nov-2000 ru

Use Fx macro wherever possible.


68580 10-Nov-2000 alfred

remove outdated bugs, we actually do have aio_cancel support
as well as support for the field aio_offset in the aiocb structure.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


67995 30-Oct-2000 sheldonh

Fix nits introduced in rev 1.9:

Remove single-space hard sentence break.
Mark errno up as a Variable (Va).


67971 30-Oct-2000 asmodai

Replace old sigaction struct declaration with the new one as present
in <sys/signal.h>.

This might be a shortterm fix until the manpage is updated towards
POSIX terminology. And maybe not...

PR: 21542
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>


67967 30-Oct-2000 asmodai

Whitespace only change: trim trailing whitespace.


67336 20-Oct-2000 n_hibma

Correct the text on RETURN VALUES.


67108 14-Oct-2000 jwd

Document the ptrace() PT_STEP request.

Add references to the newly added hardware debug register
support functions i386_clr_watch(3) and i386_set_watch(3).

Reviewed by: Sean Eric Fagan <sef@kithrup.com>
and no other response to the review request.


66430 28-Sep-2000 peter

Add man pages for mod*(2). Shamelessly cut/pasted from the kld*(2) man
pages by Chris Costello.


66220 22-Sep-2000 rse

Resurrect documentation of chflags(2)'s SF_ARCHIVED.

PR: 21428
Reviewed by: ben


65441 04-Sep-2000 imp

Use .St -susv2 rather than "The Single UNIX Specification".

Submitted by: sheldonh


65419 04-Sep-2000 imp

Soften the statement about select's timeout argument. This part of
the system likely won't change in the future, but the warning is a
good idea.


64345 07-Aug-2000 jlemon

Document return value of ENOENT for nonexistent/invalid filter entries.


64283 05-Aug-2000 ben

Fix description of argv[0] passed to interpreted scripts; it's the name of
the interpreter, _not_ the argv[0] passed in the original exec() call.


64106 01-Aug-2000 peter

Revert the temporary hack in rev 1.79.


64042 31-Jul-2000 peter

Add pointers to rfork_thread(3)


63988 29-Jul-2000 peter

Deal with the exit entry in MIASM changing to sys_exit.
This Is A Hack(TM).


63851 25-Jul-2000 dillon

MFC 1.11.2.3 from -stable to -current


63805 24-Jul-2000 sheldonh

Clean up some nits, with the permission of the author:
* Grammar fixes.
* Mark up rfork and vnode as cross-references.
* Clarify the use of the RFFDG flag to rfork(2).


63639 20-Jul-2000 alfred

use .Pp instead of faking it with an extra newline

Pointed out by: sheldonh


63635 20-Jul-2000 alfred

document get/set sockopt usage with accept_filter(9)


63498 19-Jul-2000 sheldonh

Update stale references to update(4) with references to the new
syncer(4) manual page.


63452 18-Jul-2000 jlemon

Simplify kqueue API slightly.

Discussed on: -arch


63364 18-Jul-2000 jasone

Change my email address in the copyright notices for the sake of consistency
(jasone@canonware.com --> jasone@freebsd.org).


63214 15-Jul-2000 ben

Make the NAME section a bit less confusing.

PR: 19262
Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp>
Reviewed by: sheldonh


62945 11-Jul-2000 ben

Fix typo; sa_siginfo -> sa_sigaction

PR: 19602
Submitted by: Tony Finch <dot@dotat.at>


62824 08-Jul-2000 dannyboy

First appeared in 2.9BSD, not 3.0.

PR: 19263
Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp>
Obtained from: Open|NetBSD


62698 06-Jul-2000 jmg

remove sys/time.h by instruction from bde.


62135 26-Jun-2000 jmg

change first release date to 4.1-R as 5.0-R won't be out for at least a
year (from jkh)..

Caught by: Fx macro warning on 3.4-R


62123 26-Jun-2000 alex

The argument is not mcontext_t but ucontext_t.

PR: 17836
Submitted by: Tim Moore <moore@bricoworks.com>


62023 23-Jun-2000 chris

Repair a cross-reference to sync(1) that should refer to sync(8).


62022 23-Jun-2000 chris

Properly separate paragraphs by using `.Pp' instead of a blank line.


62021 23-Jun-2000 chris

Remove blank lines.


62013 23-Jun-2000 sheldonh

Mark up errno as a variable (Va), not as a defined value (Dv).
Do not terminate the cross-reference list in the SEE ALSO section with
a period.


62012 23-Jun-2000 sheldonh

Apply the accepted line breaking rules.


61988 23-Jun-2000 chris

Replace .Va, .Ar and .Nm with .Fa or .Va where necessary, examples:
``.Ar errno'' -> ``.Va errno''
``.Nm ops'' -> ``.Fa ops''
``.Va fd'' -> ``.Fa fd''


61984 23-Jun-2000 chris

Replace an erroneous `.Va error' with `.Va errno'.


61983 23-Jun-2000 chris

Replace ``FreeBSD 4.0'' with ``.Fx 4.0'' and remove a useless empty line
at the end of the file.


61982 23-Jun-2000 chris

Replace .Va references to function arguments to .Fa references.


61748 17-Jun-2000 joe

Make a note of fflagstostr and strtofflags in the 'see also' section.


61624 13-Jun-2000 alex

Fix typo: turn of -> turn off.

PR: 18805
Submitted by: Yoshihiro Ota <ota@mail.drexel.edu>
Kind of Reviewed by: asmodai ("sure")


61375 07-Jun-2000 jmg

add a BUGS section on how we can only watch VNODE's on a UFS file system
right now...

I talked w/ phk last night and "fixing" this in a generic way is going
to require a lot of complex thought on stacking let alone the NFS problems..

add missing sys/time.h for struct timespec def...


61134 31-May-2000 chris

Replace a `manual(section)' reference with a proper .Xr statement.


60856 24-May-2000 jmg

fix up the kqueue documentation... comment some things that were left
out that really needed to be here...

Reviewed-by: jlemon


60759 21-May-2000 green

Back out NOTE_EXIT status reporting pending discussion.


60695 19-May-2000 chris

Remove a superfluous `.Pp' occuring directly after
`.Sh IMPLEMENTATION NOTES'.


60694 19-May-2000 chris

Add a note under IMPLEMENTATION NOTES about the behavior of sendfile()
in the threaded library.


60692 19-May-2000 peter

List ECONNRESET as a return value. EINVAL was not documented either.


60659 17-May-2000 green

Put the wait(2) exit status in "data" for NOTE_EXIT kevents.


60384 11-May-2000 bde

Fixed missing include in synopsis.

Use a long line instead splitting a line with backslash-newline in synopsis.
My synopsis checker doesn't understand backslash-newline.


60349 11-May-2000 hoek

When "any" acts as a subject, the verb must agree with whatever any is of.


60348 11-May-2000 hoek

Content-free commit: only remove trailing whitespace


60347 11-May-2000 hoek

The accept() function is a call, not an argument. Also, add: serial
comma, missing-hyphen, and a word-erase character.


60080 06-May-2000 jlemon

Some mdoc cleanups for the manual page.

Submitted by: phantom


59995 04-May-2000 jlemon

Add a kqueue(2) manual page.


59954 04-May-2000 phantom

Use `Er' variable to define first column width in ERRORS section. It was
initially suggested by mdoc(7) style, but was broken over the years


59944 04-May-2000 phantom

mdoc(7) cleanup:

. use real function names as `.Nm' macro argument in NAME section. It allows
them to appear in apropos(1) or whatis(1) output.

. replace empty lines with `.Pp' macro.

. replace hardcoded standard names with their `.St' macro equivalents.

. sort cross references in SEE ALSO section


59892 02-May-2000 jasone

Add missing man pages. Fix various compliance bugs, mostly having to do with
error return values. Implement pthread_mutexattr_gettype().

PR: docs/16537, docs/17538


59635 26-Apr-2000 jkoshy

Fix typo. Use `.Fa' to denote a function argument.

PR: docs/18214
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>


59551 23-Apr-2000 wollman

Spell MAP_NOSYNC correctly.

Submitted by: allenc@verinet.com


59527 23-Apr-2000 wollman

.Lb-ify


59497 22-Apr-2000 wollman

Add shm_open(3) and shm_unlink(3). The documentation could use a good
bit of work (and is stylistically probably the worst manual page
I've ever written).


59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


59105 09-Apr-2000 archie

Document EWOULDBLOCK as a possible errno return value.


58486 23-Mar-2000 bde

Fixed wrong arg type in synopsis.


58420 21-Mar-2000 jasone

Add a man page for aio_waitcomplete(). Update the aio_cancel() man page to
reflect the fact that aio_cancel() works now.

Submitted by: Christopher Sedore <cmsedore@maxwell.syr.edu>


57695 02-Mar-2000 sheldonh

Remove more single-space hard sentence breaks.


57686 02-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


57550 28-Feb-2000 ps

Add MAP_NOCORE to mmap(2), and MADV_NOCORE and MADV_CORE to madvise(2).
This
This feature allows you to specify if mmap'd data is included in
an application's corefile.

Change the type of eflags in struct vm_map_entry from u_char to
vm_eflags_t (an unsigned int).

Reviewed by: dillon,jdp,alfred
Approved by: jkh


57263 16-Feb-2000 dillon

Fix null-pointer dereference crash when the system is intentionally
run out of KVM through a mmap()/fork() bomb that allocates hundreds
of thousands of vm_map_entry structures.

Add panic to make null-pointer dereference crash a little more verbose.

Add a new sysctl, vm.max_proc_mmap, which specifies the maximum number
of mmap()'d spaces (discrete vm_map_entry's in the process). The value
defaults to around 9000 for a 128MB machine. The test is scaled for the
number of processes sharing a vmspace (aka linux threads). Setting
the value to 0 disables the feature.

PR: kern/16573
Approved by: jkh


57194 14-Feb-2000 chris

Replace `.Os BSD' which caused a troff error with `.Bx' which also
happens to be the correct macro to use in this situation.


57168 12-Feb-2000 obrien

Document the support in the kernel for hardware debug registers on the
ix86 platform which allows for hardware watchpoints, etc...

Submitted by: Brian Dean <brdean@unx.sas.com>


56542 24-Jan-2000 guido

We _do_ support MS_ASYNC

Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>


56501 24-Jan-2000 alfred

Clarify that we don't offer hard realtime.
Split timeval options into 3 paragraphs, it's easier on my eyes.


56238 18-Jan-2000 sheldonh

Add HISTORY.

Submitted by: obrien


56219 18-Jan-2000 bde

Fixed missing backslash in previous commit. Adding setresuid.2 has taken
4 commits and 2 world breakages so far.


56218 18-Jan-2000 sheldonh

Fix line too long style bug in the previous commit (which, by the
way, unbroke world).


56217 18-Jan-2000 ache

add setresuid.2


56192 17-Jan-2000 sheldonh

Add manual pages for the newly added setres[ug]id system calls.


55630 09-Jan-2000 kris

Sync contents of struct nfsd_svrargs


55040 23-Dec-1999 bde

Fixed wrong #include in synopsis.


55039 23-Dec-1999 bde

Fixed missing `const' in synopsis.


55034 23-Dec-1999 bde

Fixed missing installation of a link to getlogin_r.3. This is the first
example of section 2 and section 3 interfaces sharing a man page. It's
probably a bad example.


54958 21-Dec-1999 asmodai

Fix a typo which I cannot believe I missed after rereading this text
about 6-7 times prior to commit.

Reported by: sheldonh


54953 21-Dec-1999 asmodai

Properly manify this manpage.
Fix some spelling mistakes and typo's inspired by Nicholas' initial
PR submission.

PR: docs/15597
Submitted by: Nicholas Esborn <nick@flatlan.net>


54644 15-Dec-1999 cracauer

Document SA_SIGINFO

Reviewed by: Sheldon Hearn <sheldonh@uunet.co.za>


54467 12-Dec-1999 dillon

Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC to
madvise().

This feature prevents the update daemon from gratuitously flushing
dirty pages associated with a mapped file-backed region of memory. The
system pager will still page the memory as necessary and the VM system
will still be fully coherent with the filesystem. Modifications made
by other means to the same area of memory, for example by write(), are
unaffected. The feature works on a page-granularity basis.

MAP_NOSYNC allows one to use mmap() to share memory between processes
without incuring any significant filesystem overhead, putting it in
the same performance category as SysV Shared memory and anonymous memory.

Reviewed by: julian, alc, dg


54235 06-Dec-1999 archie

Add reference to netgraph(4) in the 'see also' section.


54102 03-Dec-1999 green

Add RLIMIT_SBSIZE here, too.


53860 28-Nov-1999 wes

Document the getlogin_r function.


53678 24-Nov-1999 phk

General clean-up of socket.h and associated sources to synchronise up
with NetBSD and the Single Unix Specification v2.

This updates some structures with other, almost equivalent types and
effort is under way to get the whole more consistent.

Also removes a double definition of INET6 and some other clean-ups.

Reviewed by: green, bde, phk
Some part obtained from: NetBSD, SUSv2 specification


53156 14-Nov-1999 chris

Properly document what ENOENT really means for kldfind(2).


52765 01-Nov-1999 nik

Document that bind(2) can fail with EAGAIN.

PR: docs/14173 docs/14181
Submitted by: Charles Randall <crandall@matchlogic.com>
Submitted by: Kelly Yancey <kbyanc@posi.net>


52041 09-Oct-1999 wes

Correct the description of the timeout argument. I've examined
the code, which seems to implement the POSIX requirements, and
have described the behavior here. Basically, it behaves the same
as select(2).

Noticed by: John Polstra


51509 21-Sep-1999 wes

Fixed a typo (well, format-o) in yesterday's edits.

Spotted by: John Polstra <jdp@polstra.com> (again)


51470 20-Sep-1999 wes

Fixed the description of when and why aio_suspend returns.
Also spelled out the return values and conditions a little
better.

Noticed by: John Polstra <jdp@polstra.com>


51398 19-Sep-1999 phk

Add a version number field to the jail(2) argument so that future changes
can be handled intelligently.


51185 11-Sep-1999 alfred

Add FreeBSD history in 'HISTORY'

Pointed out by: obrien


51154 11-Sep-1999 bde

Fixed disordering in previous commit.


51139 11-Sep-1999 alfred

Document fhopen, fhstat, and fhstatfs syscalls.

Obtained from: NetBSD


51122 10-Sep-1999 alfred

sync with src/sys/sys/mount.h


51110 09-Sep-1999 billf

Add aio_{cancel,error,return,suspend,write} into the mix.

Submitted by: Dan Nelson <dnelson@emsphone.com>
Forgotten by: mpp


50947 05-Sep-1999 phantom

Some style and "look" fixes

Reviewed by: mpp


50946 05-Sep-1999 phantom

Name Description (.Nd macro) added.
Style and punctuation errors fixes.
ERRORS section included to RETURN VALUES because it's
describing return values instead of errors and their handling.

Reviewed by: mpp


50945 05-Sep-1999 phantom

mdoc(7) style fix.
Correct RB_* values list bounds.

Reviewed by: mpp


50944 05-Sep-1999 phantom

mdoc(7) style fix: FreeBSD -> .Fx

Reviewed by: mpp


50943 05-Sep-1999 phantom

Remove useless .Fn macro suffix

Reviewed by: mpp


50942 05-Sep-1999 phantom

mdoc style fix.

Reviewed by: mpp


50941 05-Sep-1999 phantom

mdoc(7) style fixes

Reviewed by: mpp


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


50466 27-Aug-1999 mpp

Remove some 4.3BSDish anacronisims that stated that it was an
error for a pathname to contain a character with the high-order
bit set.

Inspired by: joerg's previous commit


50456 27-Aug-1999 joerg

Remove a 4.3BSDish anachronism that claimed EPERM for an attempt to
mknod() a pathname containg a ``character with the high-order bit
set''.


50217 23-Aug-1999 chris

Document ENOSYS error.

PR: docs/13290


49828 15-Aug-1999 mpp

Various man page cleanup:

- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.

PR: doc/13144
Submitted by: Alexy M. Zelkin <phantom@cris.net>


49709 14-Aug-1999 chris

Change reference to mount(1) to mount(8)


49699 13-Aug-1999 chris

Change reference from kldload(3) to kldload(2)


49336 31-Jul-1999 bde

Fixed $Id$.

Removed POSIX.1/NetBSD markup (braces) for NAME_MAX, etc. We don't
define this. Most FreeBSD man pages hard-code the limits; in fact,
utimes.2 recently became the only file in libc/sys/*.2 that mentions
NAME_MAX. There probably should be mandoc macros for this.


49335 31-Jul-1999 bde

Removed a duplicate reference to System V.4.


49334 31-Jul-1999 bde

Fixed syntax error in previous commit.


49333 31-Jul-1999 bde

FIxed disordering in previous commit. Fixed some old disorder.


49298 30-Jul-1999 nik

Document that writev(2) can fail with ENOBUFS.

Text is a compromise based on messages from Wes Peters, Ville-Pertti
Keinonen, and Matt Dillon.

PR: docs/10512
Submitted by: Howard Goldstein <hgoldst@mpcs.com>


49266 30-Jul-1999 mpp

Use the .At macro when referencing versions of AT&T UNIX.

Note: you need to install the current groff tmac macros for these
man pages to format correctly. Specifically, rev 1.21 of
contrib_groff/tmac/doc-syms in -current, or rev 1.17.24 for 3.2-stable


49256 30-Jul-1999 mpp

Document the getdents(2) system call. The documentation was
added to the getdirentries(2) man page because 95%+ of that
man page comprised the text of the getdents(2) man page
I obtained from NetBSD.


49252 30-Jul-1999 mpp

Document the lchmod(2) system call.

Pointed-out-by: bde


49251 30-Jul-1999 mpp

Add a manual page for getdents(2). This was taken from NetBSD, but
still needs some cleanup which is why it hasn't been added to the
Makefile yet.

Obtained from: NetBSD
Pointed-out-by: bde


49249 30-Jul-1999 mpp

Document the lutimes() and futimes() system calls.

PR: kern/11213
Obtained from: NetBSD w/some minor changes by me


49246 30-Jul-1999 mpp

Mdoc cleanup.


49108 26-Jul-1999 sheldonh

Correct HISTORY section, according to CVS logs.

PR: 12810
Submitted by: Alex Perel <veers@disturbed.net>


49055 24-Jul-1999 n_hibma

Update the manpage for the number of symlinks in ELOOP

PR: 12634 (partial)
Submitted by: Julian H. Stacey jhs@FreeBSD.ORG


48835 16-Jul-1999 simokawa

Make profil() 64bit-safe for alpha.
uintfptr_t may be better for offset, but we must wait until
the definition of uintfptr_t moves from machine/profile.h.

Reviewed by: bde


48822 15-Jul-1999 jlemon

Reference correct sysctl: kern.maxsockbuf --> kern.ipc.maxsockbuf


48794 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


48721 09-Jul-1999 phk

Clarify an explanation a little bit.


48422 01-Jul-1999 mpp

Nuke the BUGS sections of these man pages because they are not appropriate.


48421 01-Jul-1999 mpp

Fix typos/spelling errors.


48411 01-Jul-1999 wes

Add mising aio_* man pages. Fixed a minor typo in aio_read.2,
and "corrected" statement of Posix conformance.


48392 01-Jul-1999 kris

Spelll 'asynchronous' coriectly


48389 01-Jul-1999 sheldonh

Fix the NAME section of the kldload.2 manpage, which made reference to
kldunload. Add proper cross-references to the whole family.

PR: 12472
Submitted by: Chris Costello <chris@calldei.com>


48336 29-Jun-1999 billf

Clarify what happens if fd is set to -1

Submitted by: Alfred Perlstein <bright@rush.net>


48262 27-Jun-1999 mpp

Document that mlock() and munlock() can return EPERM if the
caller is not the super-user. Also document that we do not
currently support the per-process RLIMIT_MEMLOCK limit.

PR: doc/11607


48001 18-Jun-1999 ru

Typo in previous commit.


47999 18-Jun-1999 ru

Mention that pid 1 is not affected by kill(-1, SIGXXX) too.


47990 17-Jun-1999 green

Minor English corrections were made; SEE ALSO was also fixed (no commas).


47870 10-Jun-1999 markm

Improvement in the description of what this does.

Prompted by (and thanks to): W Richard Stevens


47785 06-Jun-1999 jseger

Update of intro(2)/errno(2) in the ongoing effort of the Programmer's
Documentation Project <http://home.wxs.nl/~asmodai/pdp.html>

Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
PR: docs/12030


47489 25-May-1999 pb

Typo.

PR: docs/11832
Submitted by: Ralf S. Engelschall <rse@engelschall.com>


47249 16-May-1999 phk

$ brucify -deblunder


46441 04-May-1999 ghelmer

writev(2) can return EDESTADDRREQ when attempting to write to a
UNIX domain socket on which connect(2) had been used to set a destination
address and the destination goes away.

PR: docs/10451


46426 04-May-1999 ghelmer

Show "#include <machine/param.h>" in SYNOPSIS to get declaration of
PAGE_SIZE for sys/shm.h.

PR: docs/8464


46424 04-May-1999 ghelmer

Note the effect of close(2) on fcntl(2) record locks.

PR: docs/3522


46188 29-Apr-1999 ghelmer

The accept(2) call can fail with EINTR (at least in the threaded context).

PR: docs/8858


46155 28-Apr-1999 phk

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/


46150 28-Apr-1999 joerg

Mention that you can only create a block or char special file using
mknod(2).


46107 27-Apr-1999 hoek

Mention that set-id bits are not honoured for shell scripts and
filesystems with the "nosuid" option. Mention that syscall tracing
is disabled sometimes.

PR: misc/11328


45607 11-Apr-1999 dt

Document pread() and pwrite().

Obtained from: NetBSD (mostly)


45560 10-Apr-1999 nik

Contains the para

Unlike other filesystem objects, symbolic links do not have an owner,
group, access mode, times, etc. Instead, these attributes are taken from
the directory that contains the link. The only attributes returned from
an lstat() that refer to the symbolic link itself are the file type
(S_IFLNK), size, blocks, and link count (always 1).

This is bogus, and disagrees with the implementation and symlink(7).

Removed it.

PR: docs/10269
Submitted by: Tolik <tolik@sibptus.tomsk.ru>


45512 09-Apr-1999 bde

Fixed missing include in synopsis.

Fixed some mdoc usage errors.


45336 05-Apr-1999 bde

Fixed disordering in previous 2 commits. Fixed an English error.


45313 04-Apr-1999 dt

Add wrappers for pread and pwrite syscalls.


45296 04-Apr-1999 dfr

Manpages for the KLD system calls.

PR: docs/10412
Submitted by: Chris Costello <chris@calldei.com>


44973 23-Mar-1999 phk

Add a sysctl variable which can help stop chroot(2) escapes.

kern.chroot_allow_open_directories = 0
chroot(2) fails if there are open directories.

kern.chroot_allow_open_directories = 1 (default)
chroot(2) fails if there are open directories and the process
is subject of a previous chroot(2).

kern.chroot_allow_open_directories = anything else
filedescriptors are not checked. (old behaviour).

I'm very interested in reports about software which breaks when
running with the default setting.


44761 15-Mar-1999 alex

EACESS -> EACCES


44646 10-Mar-1999 roberto

PID_MAX is now 99999.

PR: docs/10530
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>


44559 07-Mar-1999 ghelmer

Explain ENXIO error status with respect to fifos.

PR: docs/8559


44484 05-Mar-1999 alex

Fixed references to unmount(2) specified as umount.

Submitted by: Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
via OpenBSD


44479 05-Mar-1999 bde

Don't use undocumented markup "{}". Use 32767 instead of LINK_MAX to
give bug for bug compatibility with intro.2.


44478 05-Mar-1999 bde

Backed out most of rev.1.4. I didn't submit it; I only submitted a
request for it something like it. It was poorly worded and too
far from both POSIX wording and normal (mal)practice by referring to
sysconf(_SC_NGROUPS_MAX) instead of {NGROUPS_MAX} or NGROUPS. POSIX.1
uses curly braces to mark up "symbolic constants or limits [that may
be] defined in certain headers". Since we don't document this markup,
don't use it. Just use NGROUPS_MAX.


44476 05-Mar-1999 bde

Forgot to add $Id$ and change date in previous commit.


44474 05-Mar-1999 bde

Changed the type of quotactl()'s 4th arg from `char *' to `void *'
so that non-sloppy applications can call it without using disgusting
casts to avoid warnings. The 4th arg is sort of varargs -- it must
sometimes represent a filename, sometimes a struct pointer, and is
sometimes unused. The arg type is still caddr_t in the kernel.

Obtained from: mostly from NetBSD


44065 15-Feb-1999 bde

EOPNOTSUPP also applies to fchflags().


43995 14-Feb-1999 des

Mention that chflags can fail with EOPNOTSUPP.


43920 12-Feb-1999 alex

Removed occurrences of consecutive repeated words (such as "the the").


43271 27-Jan-1999 jkoshy

Typo: `kern.somaxconn' -> `kern.ipc.somaxconn'

PR: docs/9717
Submitted by: Nathan Dorfman <nathan@rtfm.net>


43209 26-Jan-1999 julian

Mostly remove the VM_STACK OPTION.
This changes the definitions of a few items so that structures are the
same whether or not the option itself is enabled. This allows
people to enable and disable the option without recompilng the world.

As the author says:

|I ran into a problem pulling out the VM_STACK option. I was aware of this
|when I first did the work, but then forgot about it. The VM_STACK stuff
|has some code changes in the i386 branch. There need to be corresponding
|changes in the alpha branch before it can come out completely.

what is done:
|
|1) Pull the VM_STACK option out of the header files it appears in. This
|really shouldn't affect anything that executes with or without the rest
|of the VM_STACK patches. The vm_map_entry will then always have one
|extra element (avail_ssize). It just won't be used if the VM_STACK
|option is not turned on.
|
|I've also pulled the option out of vm_map.c. This shouldn't harm anything,
|since the routines that are enabled as a result are not called unless
|the VM_STACK option is enabled elsewhere.
|
|2) Add what appears to be appropriate code the the alpha branch, still
|protected behind the VM_STACK switch. I don't have an alpha machine,
|so we would need to get some testers with alpha machines to try it out.
|
|Once there is some testing, we can consider making the change permanent
|for both i386 and alpha.
|
[..]
|
|Once the alpha code is adequately tested, we can pull VM_STACK out
|everywhere.
|

Submitted by: "Richard Seaman, Jr." <dick@tar.com>


43208 26-Jan-1999 julian

Enable Linux threads support by default.
This takes the conditionals out of the code that has been tested by
various people for a while.
ps and friends (libkvm) will need a recompile as some proc structure
changes are made.

Submitted by: "Richard Seaman, Jr." <dick@tar.com>


43143 24-Jan-1999 bde

Backed out most of previous commit to go with backing out support for
revoke() on non-device files.


42829 19-Jan-1999 truckman

Document the errno return if the restrictions on the fcntl(F_SETOWN, ...)
argument implemented by the security patch in PR kern/7899 are violated.
PR: kern/7899


42781 18-Jan-1999 jkoshy

revoke(2) is supported on regular files under current. Change wording
in manual page that indicated otherwise.

PR: docs/9517
Submitted by: David Malone <dwmalone@maths.tcd.ie>


42229 01-Jan-1999 bde

Updated type of ss_size in struct sigaltstack.

Removed bogus prerequisite <sys/types.h>.


41750 13-Dec-1998 steve

Commit out caveat about hardlinks to directories since they are
no longer possible.

PR: 8337


41315 24-Nov-1998 jkoshy

Enable aio_read(2).


41300 23-Nov-1998 jkoshy

Don't mention exit(3) in explanation; _exit(2) is a better choice.


41249 19-Nov-1998 jkoshy

Man page for aio_read(2).

Submitted by: Terry Lambert <terry@whistle.com> on the -doc lists.


41196 16-Nov-1998 nectar

Update to reflect reality.
PR: kern/8629


40972 06-Nov-1998 dg

Added info about non-blocking support.


40933 05-Nov-1998 dg

Added a manual page for sendfile(2).


40773 30-Oct-1998 jmz

Typo.


40544 21-Oct-1998 dima

Fix types.


39117 12-Sep-1998 wollman

Document the fact that shutdown(2) is expected to comply with Posix.1g,
when it happens.


39086 12-Sep-1998 jkoshy

Use ellipsis in synopsis.

Requested by: bde


39029 09-Sep-1998 brian

Mention which system interface functions are signal-safe.
Suggested on -current by: Terry Lambert <tlambert@primenet.com>


38961 09-Sep-1998 jkoshy

Add $Id$, remove quoting for `...'.

Requested by: bde


38930 08-Sep-1998 jkoshy

Use ellipsis in the synopsis, and an appropriate explanation in
the text of the manual page.

Suggested by: bde


38877 06-Sep-1998 jkoshy

Use a varargs style prototype in the manual page, with accompanying
explanation in the text.


38702 31-Aug-1998 wosch

Sort cross references.


38596 28-Aug-1998 jkoshy

Typo fix.


38503 24-Aug-1998 steve

Describe what constitues an exceptional condition.

PR: 7666
Submitted by: Archie Cobbs <archie@whistle.com>


38376 17-Aug-1998 jb

Remove support for NetBSD syscalls.


37904 28-Jul-1998 jlemon

oops, forgot to do ``cvs add'' first.


37903 28-Jul-1998 jlemon

Add wrappers for i386_*_ioperm, i386_vm86 so userland code does
not have to call sysarch() directly.
Added man pages for above, as well as sysarch()


37528 09-Jul-1998 jkoshy

Correct wording on range of addresses examined by `msync(2)'.

PR: 7180


36962 14-Jun-1998 bde

Document EINVAL return value.


36808 09-Jun-1998 jb

Implement compile time thread lock debug.


36807 09-Jun-1998 jb

Rename fstat as _thread_sys_fstat if being built into libc_r.


36806 09-Jun-1998 jb

Implement thread support for libc_r. Make the lseek syscall directly
to avoid recursive locking.


36688 06-Jun-1998 jkoshy

Spelling nits.

Pointed out by: Sue Blake <sue@welearn.com.au>


36649 04-Jun-1998 steve

Fix a bunch of spelling errors.

PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>


36143 18-May-1998 jkoshy

kill.1: Remove reference to obsolete sigvec(2) man page. Removed
self reference in sigaction(2) man page.

Submitted by: Josh Gilliam <josh@quick.net>
PR: 6617


36039 14-May-1998 ache

Remove reference to signanosleep


36037 14-May-1998 peter

Nuke signanosleep()


35897 09-May-1998 brian

Add a BUGS section and describe a problem I've been having for
a few weeks now.


35656 03-May-1998 jraynard

Typo fix.


35592 01-May-1998 bde

Fixed disordering and other style bugs in rev.1.50.


35543 30-Apr-1998 jb

Change the description of errno to match the thread-aware implementation
from 3.0 on. With 3.0 being a major release, now is a good time to do
this.


35539 30-Apr-1998 jb

Build __error.c into libc, but not libc_r. The weak symbol in the
file works with libpthread, but when built into libc_r which has a non-weak
symbol of the same name, the linker behaves unpredicatably and sometimes
links the wrong symbol. The linker behaviour is a byproduct of what
the program calls from object to object so it is like winning a lottery
if the program actually works. The odds are quite good - 95:1, I think.
We need a sure thing, though, so weak symbols can't be used instead
of renaming things.


35457 26-Apr-1998 phk

`sigprocmask()' man page references `sigmask()' in synopsis.
Note odd `sigmask()' line in synopsis. `sigsetops(3)' is better suited
for `sigprocmask' and is already referenced from the manual page.
(`sigmask()' is useful for the older (& deprecated) `sigsetmask()' API).
PR: 6395
Reviewed by: phk
Submitted by: Joseph Koshy <koshy@india.hp.com>


35315 19-Apr-1998 des

Backed out lseek changes.


35274 18-Apr-1998 des

Return EINVAL and do not changefile pointer if resulting offset is negative.
PR: kern/6184


34925 28-Mar-1998 dufault

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.


34847 23-Mar-1998 jb

For 1.3, NetBSD replaced the swapon() syscall with swapctl() and moved
the only call to compat_12 which isn't there by default. Provide
a wrapper.


34796 23-Mar-1998 jb

For 1.3, NetBSD walloped the msync syscall and replaced it with
__msync13. The old one got moved to compat_12. Wrap __msync13 up
to look like FreeBSD's msync and be careful to respect the fact that
MS_SYNC is 0x0000 on FreeBSD, but 0x0004 on NetBSD.


34669 19-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq


34629 16-Mar-1998 eivind

<sys/errno.h> -> <errno.h>


34387 09-Mar-1998 jb

Add #include <unistd.h> to get the prototype for __syscall().

Cast to long before casting to a void ptr to shut up gcc.


34386 09-Mar-1998 jb

Yikes, this is the worst of the lot. Bruce suggested doing this (!).

Include the architecture specific sys makefile like previously, but
what this contains differs. It defines MDASM which list architecture
specific asm code that *replaces* syscalls of the same name defined
in MIASM (which gets defined by the syscall.mk or netbsd_syscall.mk
dependent of NETBSD_SYSCALLS being defined). If a syscall has a
C source implementation or something funny done to it, or just doesn't
need default asm source generated for it, then it is listed in NOASM.

syscall.mk is generated by makesyscalls.sh with other syscall files.
netbsd_syscall.mk is a hand-generated equivalent. So if a new syscall
is added and no other makefiles are edited, it will automatically have
the default asm source generated for it (whether you want it or not).

Anything listed in MDASM gets added to SRCS and gets built. For
each syscall name in MIASM, if it doesn't exist in MDASM or NOASM,
it gets added to the ASM or ASMR lists to have code generated for it.
If the syscall name was listed in HIDDEN_SYSCALLS (intended for use
by libc_r, not libc which has it defined, but empty), then the name
is added to the ASMR list and gets renamed before being built;
otherwise it is added to the ASM list and gets built with the same
name.

I wonder if this is too complicated. But it works on both i386 and alpha.


34385 09-Mar-1998 jb

Function to return a pointer to the non-threaded errno. This is declared
with a weak symbol so that it won't be linked when linking against
libc_r or libpthread.


34384 09-Mar-1998 jb

Compatibility functions for use when __NETBSD_SYSCALLS is defined.


33798 25-Feb-1998 bde

Don't add OBJS to CLEANFILES. bsd.obj.mk does it. Some objects were
duplicated.


33515 17-Feb-1998 jkh

correct a typo I just noticed.


33107 04-Feb-1998 jlemon

Document the fpgetprec/fpsetprec functions in their man page.
Add cross-references to the elusive fpsetmask() function to various other
man pages.
Reviewed by: bde


32927 31-Jan-1998 imp

Kill lfs files that were causing make world to fail.


32638 20-Jan-1998 alex

Added cross references to mincore(2) and minherit(2).

Obtained from: OpenBSD


32637 20-Jan-1998 alex

Added #include <sys/types.h> to synopsis.

Obtained from: OpenBSD


32565 16-Jan-1998 bde

Fixed missing #include in synopsis.


32564 16-Jan-1998 bde

Fixed wrong prototype for clock_getres().


32514 15-Jan-1998 alex

Typo fix.
Added EOPNOTSUPP and EMLINK to errors section.
Added symlink(2) xref.

Obtained from: OpenBSD


32494 13-Jan-1998 alex

Consistently reference init as .Xr init 8.

Obtained from: OpenBSD


32489 13-Jan-1998 alex

Dump the constant NGROUPS in favor of the POSIX way:
sysconf(_SC_NGROUPS_MAX).

Submitted by: bde


32488 13-Jan-1998 alex

Use .Fn for sysconf(_SC_CLOCK_TCK) reference.
Added $Id$.


32451 11-Jan-1998 alex

Formatting fix & improved comment for struct timeval.

Obtained from: OpenBSD


32450 11-Jan-1998 alex

Fixed brk(2) xref.

Obtained from: OpenBSD


32449 11-Jan-1998 alex

Added sys/types.h to synopsis as per POSIX.

Obtained from: OpenBSD


32448 11-Jan-1998 alex

Replace sys/param.h with sys/types.h as per POSIX.
Document the special case of gidsetlen == 0.

Partially obtained from: OpenBSD


32447 11-Jan-1998 alex

Document that arg max is controllable via sysctl.


32438 11-Jan-1998 alex

Formatting fix.

Obtained from: OpenBSD


32437 11-Jan-1998 alex

Added EMFILE and ENFILE to errors section.

Obtained from: OpenBSD


32436 11-Jan-1998 alex

.Xr sigvec --> sigaction

Obtained from: OpenBSD


32435 11-Jan-1998 alex

Add <sys/types.h> to synopsis.
Correct a grammatical error.
Add cross-reference to setrlimit(2).

Obtained from: OpenBSD


32193 02-Jan-1998 alex

Expanded cross references.


32131 31-Dec-1997 alex

Convert caddr_t --> void * for sys/mman.h functions.

mlock, mmap, mprotect, msync, munlock, and munmap are defined by
POSIX as taking void *. The const modifier has been added to
mlock, munlock, and mprotect as the standard dictates.

minherit comes from OpenBSD and has been updated to conform with
their recent change to void *.

madvise and mincore are not defined by POSIX, but their arguments
have been modified to be consistent with the POSIX-defined functions.
mincore takes a const pointer, but madvise does not due to the
MADV_FREE case.

Discussed with: bde


32118 30-Dec-1997 alex

Fixed formatting of the MADV_FREE flag description.

Pointed out by: bde


32114 30-Dec-1997 alex

Typo fix.


32112 30-Dec-1997 alex

Document MS_SYNC.


32001 26-Dec-1997 hoek

fork() checks RLIMIT_NPROC, not RLIMIT_NOFILE.

pr: docs/5260
submitted-by: Niall Smart [3]njs3@doc.ic.ac.uk


31370 23-Nov-1997 bde

Fixed spelling of EACCES.


31220 18-Nov-1997 jdp

Add cross-references to rfork(2).


31144 13-Nov-1997 julian

Reviewed by: hackers@freebsd.org in general
Obtained from: Whistle Communications tree

Add an option to the way UFS works dependent on the SUID bit of directories
This changes makes things a whole lot simpler on systems running as
fileservers for PCs and MACS. to enable the new code you must
1/ enable option SUIDDIR on the kernel.
2/ mount the filesystem with option suiddir.
hopefully this makes it difficult enough for people to
do this accidentally.
see the new chmod(2) man page for detailed info.


31132 12-Nov-1997 julian

Reviewed by: various.

Ever since I first say the way the mount flags were used I've hated the
fact that modes, and events, internal and exported, and short-term
and long term flags are all thrown together. Finally it's annoyed me enough..
This patch to the entire FreeBSD tree adds a second mount flag word
to the mount struct. it is not exported to userspace. I have moved
some of the non exported flags over to this word. this means that we now
have 8 free bits in the mount flags. There are another two that might
well move over, but which I'm not sure about.
The only user visible change would have been in pstat -v, except
that davidg has disabled it anyhow.
I'd still like to move the state flags and the 'command' flags
apart from each other.. e.g. MNT_FORCE really doesn't have the
same semantics as MNT_RDONLY, but that's left for another day.


31050 09-Nov-1997 kato

Describe MNT_NOCLUSTER{R,W} flags.

Pointed out by: bde


30963 05-Nov-1997 jmg

changed prototype to match text
changed sysctl to lsvfs as "sysctl vfs" doesn't return a listing of
possible filesystem names


30645 22-Oct-1997 joerg

Document EINVAL as a possible return value from open(2).


30624 21-Oct-1997 bde

Sorted lists.


30457 16-Oct-1997 max

Proper spacing in the Synopsis.


30448 15-Oct-1997 bde

Include the machine-dependent Makefile.inc for sys in the correct place.


30447 15-Oct-1997 bde

Removed the subdirectory paths from the definitions of MAN[1-9]. They
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.


30255 10-Oct-1997 dyson

Add the AIO/LIO to libc. They aren't fully done yet, but have been in the
kernel for a few months.


29988 29-Sep-1997 wosch

Sort cross refereces in section SEE ALSO.


29908 28-Sep-1997 msmith

Typo fix


29392 14-Sep-1997 phk

Add __getcwd() syscall, and have getcwd() take a shot at it.
If your kernel doesn't support __getcwd() or if __getcwd() cannot
deliver because of cache expiry, it does the canonical thing.


29374 14-Sep-1997 peter

A poll(2) manpage.

Obtained from: NetBSD


29369 14-Sep-1997 peter

Generate poll syscall stub


29341 13-Sep-1997 joerg

Document SA_NOCLDWAIT.

Make all the SA_* flags go into a tagged list, to improve readability.


29177 07-Sep-1997 bde

Removed superfluous quoting of function args.


29176 07-Sep-1997 bde

Fixed style bug in pseudocode.


28630 23-Aug-1997 steve

Reference the correct version of BSD at the bottom of the
manpage.

PR: docs/3735


28545 21-Aug-1997 bde

Fixed off by 1 error.


28406 19-Aug-1997 peter

Manpage for getsid(2).


28405 19-Aug-1997 peter

Forgot to mention what getpgid(0) does.


28404 19-Aug-1997 peter

Manpage for getpgid(2), wording taken from NetBSD.


28403 19-Aug-1997 peter

Syscall stubs for getpgid()/getsid().


28276 17-Aug-1997 steve

Reflect reality of sticky bits and UFS-based filesystems.

PR: docs/4198
Submitted by: Ada T. Lim <ada@not-enough.bandwidth.org>


28274 17-Aug-1997 steve

Describe the QCMD macro and its parameters.

PR: docs/4261


28214 14-Aug-1997 ache

Explicitly point that it_value == 0 disables timer regardles of
it_interval value. It is backward-compatible with previous usage
and SunOS-compatible now.


28211 14-Aug-1997 ache

Describe itimerfix upper limit


28049 11-Aug-1997 steve

Default size for FD_SETSIZE is 1024 not 256.

PR: bin/4177
Submitted by: Wolfgang Helbig <helbig@MX-BA.Stuttgart.De>


27280 08-Jul-1997 adam

execve of interpreter files
reword for grammar/clarity


26826 23-Jun-1997 steve

Show the real revision date and not the date that this
manpage is being viewed.


26360 02-Jun-1997 julian

Submitted by: Whistle Communications (archie Cobbs)

These changes add the ability to specify that a UFS file/directory
cannot be unlinked. This is basically a scaled back version
of the IMMUTABLE flag. The reason is to allow an administrator
to create a directory hierarchy that a group of users
can arbitrarily add/delete files from, but that the hierarchy
itself is safe from removal by them.
If the NOUNLINK definition is set to 0
then this results in no change to what happens normally.
(and results in identical binary (in the kernel)).
It can be proven that if this bit is never set by the admin,
no new behaviour is introduced..
Several "good idea" comments from reviewers plus one grumble
about creeping featurism.

This code is in production in 2.2 based systems


26340 01-Jun-1997 peter

Add xref to signanosleep(2)


26339 01-Jun-1997 peter

Doc signanosleep, add to links


26337 01-Jun-1997 peter

Generate signanosleep(2) syscall wrapper


25932 19-May-1997 eivind

`it's'' -> `its'' where appropriate and typo fixes in time2posix.3.

Closes PR docs/3612.

Submitted by: Josh Gilliam <soil@quick.net>


25746 12-May-1997 peter

Add clock_* and nanosleep manpages and links.


25745 12-May-1997 peter

manpage for nanosleep(2)

Obtained from: NetBSD (I think jtc@netbsd.org wrote it)


25744 12-May-1997 peter

Man pages for clock_{get/set}time() and clock_getres().

Obtained from: kstailey@openbsd.org via OpenBSD sources


25736 12-May-1997 peter

Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep()
syscall functions.


25539 07-May-1997 dfr

Add syscalls for kernel linker.


25401 03-May-1997 jb

Changed all paths to be relative to src/lib instead of src/lib/libc
so that all these makefiles can be used to build libc_r too.

Added .if ${LIB} == "c" tests to restrict man page builds to libc
to avoid needlessly building them with libc_r too.

Split libc Makefile into Makefile and Makefile.inc to allow the
libc_r Makefile to include Makefile.inc too.


25138 25-Apr-1997 ache

Add vfork(2) to SEE ALSO


25105 23-Apr-1997 bde

Generate .S files for syscalls. This has many advantages:
- dependencies actually work (I need this to propagate some fixes
in <machine/asm.h>)
- the cpp pipeline goes away, so errors can't leak out of it and
an ANSI cpp is automatically used.
- it's simpler - standard rules get used instead of repetitive
special rules. (This showed bugs in the strip steps in the
standard rules. The wrong strip flag was also used for *.po
here.)

Removed some ${ECHO}s and `@'s. Normal make echoing of what is
being done is now not much more verbose than the echo messages
were, and is more useful.


24927 14-Apr-1997 bde

Fixed missing const. Include <unistd.h> so that the function type gets
checked.
Submitted by: partly by roberto


24882 13-Apr-1997 bde

Fixed #includes in synopsis.


24881 13-Apr-1997 bde

Updated the LOCK_* #defines in the synopsis to be lexically identical
with the (Lite1) ones in fcntl.h).


24824 11-Apr-1997 bde

Fixed missing #include in synopsis.


24823 11-Apr-1997 bde

Fixed return type of __syscall() in synopsis.

Don't quote "..." in synopsis. Quoting here is unnecessary and unusual.


24822 11-Apr-1997 bde

Fixed missing const(s) or #include(s) in synopsis.


24821 11-Apr-1997 bde

Fixed synopsis (the #include was bogus and the return type for brk() was
wrong).


24723 08-Apr-1997 peter

Missing newline caused too much text to be fed to the macro.

Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228


24722 08-Apr-1997 peter

setsid is declared in <unistd.h>, which is self sufficient (doesn't need
prior <sys/types.h>)

Fixes PR#3229, from Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>


24562 02-Apr-1997 peter

Update to include details about the changes to setuid/setgid.


24526 02-Apr-1997 jdp

Correct the most glaring errors. I have a feeling there are some
left.


24523 01-Apr-1997 ache

Link chown with lchown


24522 01-Apr-1997 ache

Add issetugid.2 to MAN2 list


24503 01-Apr-1997 mpp

Xref the new issetugid(2) man page where appropriate.

Also add additional set*id(2) xrefs where appropriate.


24502 01-Apr-1997 mpp

Don't xref setregid(2) twice - one of them should be setreuid(2).


24501 01-Apr-1997 mpp

Fix one very minor mdoc problem. Gentle enough, Peter? :-)


24498 01-Apr-1997 mpp

Fix a minor grammar problem.


24456 31-Mar-1997 peter

General cleanup and update to specify exactly how our implementation
passes on the status across fork/exec.

The previous version had some typos, referred to itself as link(2) in
one place :-), and didn't really match openbsd's implementation either.

Now that I've mentioned typos, hopefully our Typo Police and Xref Police
will be gentle with me. :-)


24455 31-Mar-1997 peter

Steal issetugid man page from OpenBSD. Needs work..

Obtained from: OpenBSD


24454 31-Mar-1997 peter

Add libc hook for issetugid()


24443 31-Mar-1997 peter

Create lchown() in libc and document it as a variation of chown().


24341 28-Mar-1997 bde

Fixed #includes in synopsis to compile.
Fixed #includes in synopsis to declare the prototype in the synopsis.
Fixed stale types in description of struct dirent.


24278 25-Mar-1997 mpp

Get my last commit right. The NOTE section now reads:

The sa_mask field specified in act is not allowed to block SIGKILL or
SIGSTOP. Any attempt to do so will be silently ignored.

Now where did I leave that pointy hat...


24240 25-Mar-1997 mpp

Change the description of how attempts to block SIGKILL and SIGSTOP
are handled. The system call will actually fail in this case - the
system doesn't silently ignore the request. Closes PR# 3047

Pointed out by: fenner


24163 24-Mar-1997 jmg

add xrefs for getpeername, so other people that look for it can find it.. :)


24094 21-Mar-1997 mpp

Use the .Tn macro for generic FreeBSD references. Other minor cleanup.


24084 21-Mar-1997 wpaul

Document SCM_CREDS changes.


24006 19-Mar-1997 bde

Fixed missing function types in synopsis.


24004 19-Mar-1997 bde

Fixed synopsis (put all of the function (return) type info in .Ft and
none in .Fn).


24003 18-Mar-1997 bde

Removed unnecessary quoting of function names in synopsis to simplify
automated checking of synopses.


23862 13-Mar-1997 bde

Updated prototype for mount() to match Lite2 reality for the 1st arg
and Lite1 or earlier reality for the 4th arg.


23800 12-Mar-1997 bde

Make this man page really match the current <sys/signal.h> again and
the 2.x <sys/signal.h> for the first time :-). The type of ss_sp
was lexically different.


23793 12-Mar-1997 mpp

Make this man page match the current <sys/signal.h> again :-).

Bruce says that since NetBSD, OpenBSD and Linux currently
use ss_sp, we won't be changing it to the lite2 ss_base.
The type may change at some later date.


23787 12-Mar-1997 mpp

Update the structure to match how things are going to appear after
bde commits some changes later tonight.


23785 12-Mar-1997 bde

Restored a .Fa line that was lost in the Lite2 merge.


23778 12-Mar-1997 mpp

Cleanup some of the Lite2 merge. Most of it is mdoc cleanup,
but in one case the Lite2 changes were flat out wrong and
caused the man page to disagree with a header file.

There are still some *roff macro calls that were added that
I have yet to figure out what to do with in some of the man pages.


23660 11-Mar-1997 peter

Merge from Lite2 onto mainline -
- add undelete() and undelete.2 (requires libc minor bump some time)
- man page updates


23659 11-Mar-1997 peter

This commit was generated by cvs2svn to compensate for changes in r23658,
which included commits to RCS files with non-trunk default branches.


23574 09-Mar-1997 mckay

Clarified the behaviour of dup2(fd1,fd2) when fd1==fd2 and when fd1 is invalid.

Safe for 2.2!


23471 07-Mar-1997 mpp

Add a missing semi-colon.

Submitted by: jmg


23360 03-Mar-1997 ache

Remove words about lower limit needed (from BUGS section), we have
precise limit now


23329 03-Mar-1997 ache

Use stricter MAXLOGNAME now


23323 03-Mar-1997 ache

Reflect current MAXLONGNAME value and specify that null included


23302 02-Mar-1997 ache

MAXLOGNAME currently 16, not 12


22993 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22527 10-Feb-1997 mpp

Update to reflect new Lite2 mount.h and friends.


22526 10-Feb-1997 mpp

Update to reflect new Lite2 mount.h.


22150 31-Jan-1997 mpp

Don't use hardcoded *roff font change requests.


22147 31-Jan-1997 mpp

Very minor mdoc cleanup.


22134 30-Jan-1997 mpp

Update to reflect current include files.


22132 30-Jan-1997 mpp

Update to reflect current include files.


22117 30-Jan-1997 jmacd

Correct "Chflags() will fail it:" to read "Chflags() will fail if:".


22082 29-Jan-1997 mpp

Update to reflect the current mount.h.


22045 27-Jan-1997 obrien

I was porting something from sysV world and found our cross references
not quite as good as I would expect. So I'm introducing mknod to mkfifo,
and vice-versa.


22014 26-Jan-1997 mpp

Document a couple of additional errno's.

Submitted by: Steinar Haug and Heiko W. Rupp
Obtained from: NetBSD-bugs & FreeBSD-current mailing lists


21907 20-Jan-1997 wosch

Sort cross references.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21579 12-Jan-1997 mpp

Add missing RETURN VALUES/ERRORS sections.


21573 12-Jan-1997 mpp

Rename the DIAGNOSTICS sections in several man pages
to RETURN VALUES like they should be.


21570 11-Jan-1997 mpp

Remove the EINVAL error from the ERRORS sections that
say is means that a pathname had the high-order bit
set, since this is no longer an error.


21565 11-Jan-1997 mpp

Minor mdoc fixes in msync.2 and munmap.2.

Add RETURN VALUES and ERRORS sections to mincore.

Closes PR# 1493.


21564 11-Jan-1997 mpp

Forgot a .El macro.


21563 11-Jan-1997 mpp

Add RETURN VALUES and ERRORS sections.


21562 11-Jan-1997 mpp

Some mdoc cleanup. Also added a RETURN VALUES and ERRORS
section.

Part of PR# 1493.


21560 11-Jan-1997 mpp

Remove the comment about file names having to
be 7 bit clean, since it isn't true anymore.

Part of PR# 1493.


21555 11-Jan-1997 mpp

Bring stat(2) into line with what is now actually in
stat.h. Also add a little blurb regarding st_mtime &
friends clarifiying how they are defined in a
non-_POSIX_SOURCE envorinment. Closes PR# 1089.


21445 08-Jan-1997 jdp

The error returned when F_SETLK collides with an existing lock is
EAGAIN, not EACCES. POSIX says that either one is OK.
2.2 candidate.


21430 08-Jan-1997 joerg

Document the various reasons for EINVAL.

Document the flaw that `offset' is required to be page-aligned, in the
BUGS section.


20888 23-Dec-1996 wosch

comma typos


20626 18-Dec-1996 swallace

Back out change. The last argument to semctl() IS union semun
for the C library call, which is a wrapper that passes it by reference
to the kernel.


20611 17-Dec-1996 jkh

Last argument to semctl() is union semun *, not union semun.

Pointed-Out-By: swallace
Person-With-Commit-Privs-By-Whom-It-Should-Have-Been-Committed: swallace


20486 14-Dec-1996 mpp

Correct some xrefs/mlinks.


20346 12-Dec-1996 alex

POSIX.4 defines MAP_FAILED to be the error return from mmap().


20232 09-Dec-1996 msmith

English pedantry : affect -> effect

Submitted by: Daniel O'Callaghan" <danny@panda.hilink.com.au>


20178 06-Dec-1996 ache

Turn POSIX_SAVED_IDS off


20123 03-Dec-1996 mpp

The semget man page uses the incorect symbol for alter
access. Closes PR# 1712.

Submitted by: Kent Vander Velden


20097 02-Dec-1996 wosch

upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macro
use ``is expected to conform to'' phrase, not ``conforms to''

Pointed out by: Bruce->NIST-PCTS


19725 13-Nov-1996 alex

Slight rewording of the BUGS section.


19601 10-Nov-1996 joerg

Merge from the 2.2 branch: describe MNT_FORCE for mount(2).


19595 10-Nov-1996 obrien

Added to MNT_FORCE option description after seeing Bruce's commit message
dealing w/the fixit floppy.
Also added the MNT_RELOAD, MNT_WANTRDWR, MNT_ASYNC, MNT_NOATIME,
MOUNT_UNION flags. Someone might want to check my description of MNT_RELOAD.

2.2-R candidate. Not a 2.1.6-R candidate -- some current flags aren't in
2.1.5-R's version.


18718 05-Oct-1996 wosch

delete doubled words, e.g.: "the the" -> "the"


18562 29-Sep-1996 bde

Updated the descriptions of the limits related to EAGAIN.

Changed the error name width for rfork to match fork.


18534 28-Sep-1996 bde

.DV -> .Dv (SOCK_STREAM was invisible).


18516 27-Sep-1996 phk

Don't use malloc, pessimize to use sbrk.
fix sbrk manpage while we're at it.


18480 23-Sep-1996 wosch

add missing comma(s) in .Xr macros


18435 21-Sep-1996 peter

".Xr chflags 1," -> ".Xr chflags 1 ,"


18421 20-Sep-1996 phk

Add the utrace syscall.


18126 07-Sep-1996 peter

Resync statfs struct with sys/mount.h.


18012 03-Sep-1996 ache

Describe POSIX saved IDs behaviour better


17995 01-Sep-1996 ache

Describe current behaviour (_POSIX_SAVED_IDS are ON),
traditional BSD4.4 behavior (_POSIX_SAVED_IDS are OFF) was described
before.
Add some hooks to easily change this text when
POSIX_SAVED_IDS model will be changed.


17906 29-Aug-1996 wosch

function appeared in Version 7 AT&T UNIX
Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2


17782 22-Aug-1996 mpp

Correctly use .Fn instead of .Nm to reference function names
in a bunch of man pages.

Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros
instead of explicitly specifying the version in the text
in a bunch of man pages.


17780 22-Aug-1996 mpp

Update a bunch of man pages to use .Fn instead
of .Nm when referencing funciton names.


17777 22-Aug-1996 mpp

List all of the include files required for getpeername and getsockname.
Closes PR# 1170.

Submitted by: James Raynard <jraynard@dial.pipex.com>


17768 22-Aug-1996 julian

Some cleanups to the callout lists recently added.
note that at_shutdown has a new parameter to indicate When
during a shutdown the callout should be made. also
add a RB_POWEROFF flag to reboot "howto" parameter..
tells the reboot code in our at_shutdown module to turn off the UPS
and kill the power. bound to be useful eventually on laptops


17705 20-Aug-1996 smpatel

Reflect the removal of the kernel's FD_SETSIZE limit.


17646 18-Aug-1996 wosch

A pipe function call appeared in Version *3* AT&T UNIX, not
Version 6. Close PR #1490

Obtained from: Peter H. Saulus in `A Quarter Century of UNIX', page 50


17615 15-Aug-1996 mpp

NCARGS is defined as 65536 in the released system, not 20480.


17346 30-Jul-1996 bde

Document that the relevant clock ticks are for the statistics clock
and that the statistics clock has a frequency of sysconf(_SC_CLK_TCK).


17345 30-Jul-1996 bde

Document that clock ticks are for the profiling clock and that the
clock frequency is stored in the gmon header.


17343 30-Jul-1996 bde

Fixed comment about ru_maxrss. This field isn't an integral.


17229 20-Jul-1996 dyson

Document madvise(2) as it is in FreeBSD.


16997 07-Jul-1996 wosch

add references lstat(2), readlink(2), symlink(7) in section SEE ALSO


16937 03-Jul-1996 mpp

Describe the "file pointer" in lseeks' man page a bit better
so that it is less likely someone will confuse it with a
"FILE *" type pointer.

Submitted by: Based on James Raynard's patch


16936 03-Jul-1996 mpp

Document the "sig" function parameter.

Submitted by: James Raynard


16592 22-Jun-1996 jraynard

Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
Document the fact that the tracefile argument must lead to a regular file.

Also took the opportunity to remove the spurious "Errors" entry
relating to filenames with the high-order bit set and add $Id$.

(More of the same to follow if there are no objections).


16265 09-Jun-1996 wosch

update sticky bit documentation


16229 08-Jun-1996 alex

Rephrase some things as suggested by Bruce.


16165 07-Jun-1996 alex

Document that truncate can also be used to extend the size of a file,
but doing so is not truly portable.


15960 28-May-1996 phk

Use ld -O insted of ld -o + mv.


15898 24-May-1996 peter

Document that the superuser cannot override link() and unlink() on
directories, and mention that it was historical practice.


15874 23-May-1996 mpp

Fixed various problems: typos, grammer, missing include files
wrong function type declarations, and wrong argument type
declarations.


15696 09-May-1996 phk

Make rules reentrant.


15679 07-May-1996 wosch

``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root


15518 01-May-1996 mpp

Remove a redundant description of the EMFILE error, and fix a typo.

Submitted by: James Raynard <jraynard@dial.pipex.com>


15489 01-May-1996 bde

Fixed incomplete or wrong lists of prerequisite #includes related to
<sys/types.h>.


15487 01-May-1996 bde

Fixed a wrong prerequisite #include and a missing function-arg type.


15486 01-May-1996 bde

Fixed misformatted #include (.Ft -> .Fd).


15303 18-Apr-1996 smpatel

Fix the man page to reflect the recent addition of RFNOWAIT and the removal of
Plan9 specific flags.


15278 17-Apr-1996 joerg

Document the possible EPERM return.

Submitted by: imp@village.org (Warner Losh)


15082 07-Apr-1996 mpp

Correct some man page cross references and file location references.


15074 06-Apr-1996 joerg

Mention other possible errors that could be caused by the F_[GS]ETOWN
commands.


15049 05-Apr-1996 joerg

Xref clocks(7).


15017 03-Apr-1996 peter

Remove outdated (and never quite correct anyway) reference to the
"fact" that pipes were implemented as calls to socketpair().


14855 27-Mar-1996 mpp

Added missing section numbers to a bunch of .Xr macros, or
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.


14356 03-Mar-1996 peter

Update the current sigaction(2) man page to current reality..
* sigstack(2) -> sigaltstack(2).
* Document the SA_NODEFER flag
* Document the SA_RESETHAND flag


14336 02-Mar-1996 peter

Update the docs after the rename of SA_DISABLE and SA_ONSTACK when used for
ss_flags to SS_DISABLE and SS_ONSTACK. SA_ONSTACK is still used in
struct sigaction. Nowhere in our entire source tree could I find a
single place these were used.


14326 02-Mar-1996 peter

Document the int -> size_t change to the m* syscalls


14237 24-Feb-1996 peter

Add minherit.2 to Makefile.. (oops, forgot it before)


14224 23-Feb-1996 peter

rfork/minherit glue in libc
man pages adapted from OpenBSD's versions.


14201 23-Feb-1996 peter

Add a dire warning about misusing the setlogin() system call. Be very
explicit that it is global to the entire "session", and that setsid() or
daemon() are need to have been called at some point.

The most notable offender of setlogin() misuse is XFree86's xdm.


14101 15-Feb-1996 mpp

Fixed a bunch of man page cross references that were
in the main text of various man pages.

Thanks to Warner Losh for adding an option to manck to allow
it to scan the entire man page looking for bogus xrefs, instead
of just checking the SEE ALSO section.


14041 12-Feb-1996 mpp

Added a update(4) man page to describe the kernel initiated update
process and changed all of the old references to update(8) to update(4).


14038 11-Feb-1996 mpp

Correct a bunch of man page cross references and generally
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.


14004 09-Feb-1996 mpp

Another round of various man page cleanups.


13974 08-Feb-1996 pst

Clean up documentation on setuid/setgid bit handling.


13836 02-Feb-1996 wosch

Submitted by: bruce, davidg, dyson
add a BUG section for mmap with current limitation
section SYNOPSIS completed


13750 30-Jan-1996 mpp

Fix even more spelling errors in some more man pages.


13615 24-Jan-1996 nate

Bring in the man page additions for PT_ATTACH/DETACH|GET/SET_REGS that
were deleted out after the initial import now that Peter's code has
implemented them in -current.


13599 23-Jan-1996 wosch

note in bugs section: madvise not yet implemented


13561 22-Jan-1996 mpp

Changed the description of SIGSYS to better reflect what
it means when that signal is received. Closes PR# 686.


13545 22-Jan-1996 julian

Reviewed by: julian and (hsu?)
Submitted by: John Birrel(L?)

changes for threadsafe operations


13522 20-Jan-1996 nate

- FreeBSD'ized the ptrace manpage by removing non-FreeBSD specific portions.
- install ptrace.2


13520 20-Jan-1996 nate

This commit was generated by cvs2svn to compensate for changes in r13519,
which included commits to RCS files with non-trunk default branches.


13151 01-Jan-1996 peter

Document the change that I made to pipe(2)


12042 03-Nov-1995 wollman

Document recent changes in socket buffers and listen(2).


11572 19-Oct-1995 joerg

Remove the bugs section. sh(1) now has a ulimit builtin.


11151 03-Oct-1995 joerg

Add man pages for the SYSV shm* and sem* functions.

This partially closes PR # docs/177.
This should probably also go into 2.1.

Submitted by: daveho@infocom.com (David Hovemeyer)


10788 15-Sep-1995 dg

Indicate that backlog limit is 32.


10066 15-Aug-1995 joerg

There is no such file as /usr/include/ufs/quota.h. There is a file
/usr/include/ufs/ufs/quota (#include <ufs/ufs/quota.h>) that seems to work
ok though.

Closes PR # docs/670: quotactl man page incorr...

Submitted by: evans@scnc.k12.mi.us (Jeffrey Evans)


9919 05-Aug-1995 bde

Move rtprio.2 from usr.sbin/rtprio to lib/libc/sys, overwriting the bogus
version in the latter directory.

Reviewed by: davidg


9665 23-Jul-1995 joerg

bkr() returns an int, and not a pointer. Document this.

Closes PR #pending/630.

Pointed out by: phk

Obtained from:


9537 16-Jul-1995 bde

The declaration of sigaction was missing a `const'.


8786 27-May-1995 nate

Add a missing link from the setpgid manpage to the setpgrp manpage.


8025 23-Apr-1995 ache

Add setreuid/setregid to MAN section


8021 23-Apr-1995 ache

Add setreuid/setregid


8020 23-Apr-1995 ache

Fix history info


7618 04-Apr-1995 ache

Add "before inclusion of any header which ... "
Suggested by: bde


7609 04-Apr-1995 ache

Properly describe how to expand default limit of handled descriptors


7362 25-Mar-1995 dg

Updated manual page to indicate flags argument; added return value and
errors section.


6511 17-Feb-1995 ats

Correct the parameters for the fchown. The third was erroneously
specified as uid_t but should be gid_t.


6471 15-Feb-1995 wollman

Document Transaction TCP extensions to generic system calls.


5324 31-Dec-1994 ats

Add the sys/types.h include to the necessary documented includes for the
getrusage call.


4545 17-Nov-1994 dfr

Added sysarch system call which is used my i386_get/set_ltd.c and is needed
for Wine support. The current snapshot of wine works fine with this.

This should go into the beta as the code which it calls in the kernel is
already there, and works fine.


2857 18-Sep-1994 wollman

Redo kernel NTP PLL support, user-mode interface.


2730 13-Sep-1994 dfr

Added SYSV ipc system calls.


2448 01-Sep-1994 dg

Fixed editing blunder.


2443 01-Sep-1994 dg

Added rtprio system call stub and manual page.

Submitted by: Henrik Vestergaard Draboel


2425 31-Aug-1994 bde

Build ntp_adjtime.o and ntp_gettime.o so that xntpd compiles.

Don't add to POBJS or SOBJS. bsd.lib.mk does it. Some objects were
duplicated.

Don't add to CLEANFILES. bsd.lib.mk does it. Some objects were
quadruplicated.

Define variables that are only used once close to where they are
used.

The ifdefs for avoiding building of profiled/shared objects when
NOPROFILE/NOPIC are set were not actually committed. The ifdefs
belong in bsd.lib.mk anyway.


2418 30-Aug-1994 wollman

Undo some of Bruce's ``clean-up''. Don't be so damned verbose.


2366 28-Aug-1994 bde

Don't build .po's if NOPROFILE is defined.

Don't build .so's if NOPIC is defined.

Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.


1856 05-Aug-1994 dg

Converted 'vmunix' to 'kernel'.


1849 05-Aug-1994 wollman

First crack at making libc work with the new make macros. It compiles on
my machine, and a simple static (genassym) and shared (sysctl) executable
both work. Still to be done: RPCand YP merge.


1574 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1573,
which included commits to RCS files with non-trunk default branches.