Commit Graph

960 Commits

Author SHA1 Message Date
christos
10ca8c1c36 We don't need to define fork anymore (pthread_atfork.c) or setlogin
(setlogin.c). Lint pass 2 works now.
2005-07-16 17:12:12 +00:00
thorpej
65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
peter
6c8b6ba99c - Correct the fields in the stat structure. From PR/18255.
- Document the st_birthtime field.

Reviewed by wiz.
2005-06-14 12:10:02 +00:00
lukem
88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
christos
661bee744c unconst argument to swapctl(). 2005-06-12 02:57:58 +00:00
christos
385ca9a533 Remove the bogus const. 2005-05-29 21:12:27 +00:00
perry
478944b35b Change HISTORY. It traces execve only back to 4.2BSD, and it is a
touch older than that. (Surprisingly, though, it doesn't appear to
have been in v6.)
2005-05-07 17:29:19 +00:00
perry
d11d9afc47 cross reference script(7) 2005-05-07 02:32:35 +00:00
drochner
179747d76c getmntinfo() if a compatibility function, so there is no point in hiding
references to the compatibility getfsstat()
The real problem behind PR lib/29919 was a stale weak_alias, so back out
the workaround.
2005-04-12 21:36:46 +00:00
christos
67d11513a6 PR/29919: Evaldo Gardenali: getmntinfo() calling deprecated function getfsstat()
Fixed by defining an _getfsstat() internal function and calling that instead.
2005-04-07 16:24:18 +00:00
christos
1880024ade mention that SIG_IGN on SIGCHLD does not produce zombies. 2005-03-30 17:09:28 +00:00
kleink
b9a719ae1e Add restrict qualifiers to remaining <signal.h> function arguments. 2005-03-22 20:25:31 +00:00
kleink
363c26d4ba Interpose cancellation points in pollts() and pselect(), bringing us
to libc.so.12.127 and libpthread.so.0.6.
2005-03-18 11:23:44 +00:00
kleink
79b311d547 Crank the copyright year. 2005-03-10 19:53:22 +00:00
wiz
892987d654 End sentence with a dot. Remove trailing whitespace. 2005-03-10 16:51:42 +00:00
kleink
7dfdae2368 s/nil pointer/null pointer/ 2005-03-10 00:31:38 +00:00
kleink
6fe0a614b5 Add pollts() prototype to <poll.h>, and update manual page synopsis for
pollts() header use.
2005-03-10 00:29:37 +00:00
kleink
7ef4223e7d nil pointer -> null pointer 2005-03-09 22:28:52 +00:00
wiz
be7db22fff Bump date for previous. 2005-03-07 13:21:24 +00:00
kleink
1c7e2b47c4 Provide select() and pselect() prototypes in <sys/select.h>, per
1003.1-2001, and leave the select() prototype in <unistd.h> for
compatibility.  To allow for transition, reorganization of this is
deferred until netbsd-3 gets branched.
2005-03-05 19:48:38 +00:00
kleink
25bfafbaf1 Normalize the declarations of the FD_* "functions". 2005-03-03 20:49:47 +00:00
wiz
598792bd15 Bump date for pselect. 2005-02-28 10:42:19 +00:00
wiz
7564ea71d1 Bump date for pollts. 2005-02-28 10:42:10 +00:00
matt
79c744210f Build syscalls stubs for pselect and pollts. Update man pages. 2005-02-26 18:04:19 +00:00
matt
ab963ad04b Alphabetize main list of sources. 2005-02-25 21:51:10 +00:00
kleink
fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
jwise
1161efa5da Comment back in cross-references to other man pages, was looking at a non-recent
DESTDIR.  Other half of last change was correct.

Pointed out by wizd.
2005-01-30 18:13:04 +00:00
jwise
449bc64125 <sys/types.h> must be included before <sys/uuid.h>.
Also, while here, remove `SEE ALSO' section which referenced only man pages
which we do not have.
2005-01-30 03:20:17 +00:00
wrstuden
e384a44e9d Extend fsync_range(2) to support the FDISKSYNC flag, which requests
that the sync be propogated out through the disk drive caches.
2005-01-25 23:55:20 +00:00
kleink
774c973096 Note ENOATTR; from FreeBSD. 2005-01-20 13:23:57 +00:00
christos
8ef68a6575 document PT_DUMPCORE. 2005-01-09 17:41:19 +00:00
jmmv
3b31a140fa Fix a typo and add a missing blank line. 2005-01-06 20:31:12 +00:00
ginsbach
9d30c15dda Add EPERM to fchmod() failure list. 2005-01-06 16:30:52 +00:00
jmmv
8f037de0f8 Remove a trailing dot to match all other items in the same list. 2005-01-02 19:39:43 +00:00
wiz
f5c79d74cd Sort sections and SEE ALSO. Remove superfluous comma. 2005-01-02 18:28:48 +00:00
thorpej
4cc9b402ea Remove VOP_*() references. 2005-01-02 16:48:18 +00:00
thorpej
c165c2b31d System calls and support routines for file system extended attributes. Libc
version is bumped to 12.125.

From FreeBSD.
2005-01-02 16:43:26 +00:00
snj
316a956c56 Bump date for last. 2004-12-12 05:56:45 +00:00
yamt
ebf187e60c document correct return value. PR/28571 from ITOH Yasufumi. 2004-12-12 01:09:44 +00:00
kleink
504ab89f25 Remove references to the header SIG_* are located in altogether;
<sys/signal.h> exposed too much implementation detail, and <signal.h>
remains the sole header referenced by this page.
2004-11-23 09:38:45 +00:00
jmmv
86ebfff7b8 Minor grammar fixes. 2004-11-21 10:45:08 +00:00
wiz
3f1cd2faeb Bump date for FIONWRITE and FIONSPACE. 2004-11-08 16:15:42 +00:00
wrstuden
16029d56b5 Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.

In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.

The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.

FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.
2004-11-06 02:03:20 +00:00
jmmv
fda2840eea Add missing colon symbol after sentence. 2004-11-03 13:11:41 +00:00
perry
653de456c5 Note that MAP_ANON memory is zero filled. 2004-10-04 18:14:48 +00:00
pooka
f213e15f84 The values for the parameter "how" are defined in sys/signal.h, not signal.h 2004-08-25 11:56:50 +00:00
wiz
5bf3687024 Add an article. 2004-08-14 11:04:29 +00:00
jdolecek
64fbdbbf78 document timeradd() and timersub() too, as e.g. select(2) points
to getitimer(2) for timersub() description

use .Fn rather than .Fa for the macro names

bump date
2004-08-14 10:03:30 +00:00
mycroft
a10e4d1f3a Cardbus -> CardBus 2004-07-03 17:36:51 +00:00
wiz
a26de71379 Do not xref ourselves; grammar fixes. 2004-06-25 15:29:25 +00:00
lha
cc333b3dd7 Add list of async-signal-safe functions
Approved by wiz
2004-06-13 19:17:06 +00:00
lha
bb3caff139 Expand a little bit on forks behavior in threaded programs
OK by nathanw and martin
2004-06-10 23:45:07 +00:00
kleink
d355352b08 Don't refer to errno as "global integer variable". 2004-06-01 16:12:51 +00:00
lukem
b8580dfae9 Put the description of "options" in a new paragraph, for consistency 2004-05-24 05:52:52 +00:00
kleink
6b3fbf5d75 IEEE Std 1003.1-2001/Cor 2-2004, item XSH/TC2/D6/5: fdatasync() shall
have cancellation points.

Note: we ride today's resolver-related version bumps.
2004-05-21 17:15:42 +00:00
kleink
675001e211 * Note string termination behaviour of NAME_MAX vs. PATH_MAX.
* Replace reference to non-existant KERN_NAME_MAX appropriately with
  {NAME_MAX}.
2004-05-19 11:40:51 +00:00
wiz
59c0620d8b Bump date for previous. 2004-05-18 14:53:47 +00:00
ragge
3a42a9c112 Update connect manpage to reflect current changes. 2004-05-18 12:21:29 +00:00
wiz
64ebeb5cbc \- is a minus, not -. 2004-05-13 10:20:57 +00:00
wiz
339084de19 \- is a minus, not -. 2004-05-13 10:10:46 +00:00
kleink
c54a69ad5a Like in shmget(2), elaborate on IPC_EXCL in the description. 2004-05-13 01:49:55 +00:00
kleink
2594bcf8ad Repair sentence in previous. 2004-05-13 01:43:13 +00:00
kleink
aa87f3ef0e * Undo rev. 1.9, most of which was either redundant, inaccurate, or wrong.
* Elaborate on IPC_EXCL in the description.
2004-05-13 01:39:14 +00:00
wiz
7117989465 Sort sections; use \*[Lt]\*[Gt] instead of <>. 2004-05-11 20:02:54 +00:00
kleink
58c660fd11 When using PATH_MAX in the example, make sure we include <limits.h>! 2004-05-11 17:39:36 +00:00
kleink
3bb0518901 Add an example code piece; suggested by Thomas Klausner. 2004-05-11 17:38:18 +00:00
wiz
d5286aa001 End sentence with a dot. 2004-05-11 12:29:22 +00:00
kleink
8df3999b0c While I'm at it: add restrict qualifiers to readlink(2). 2004-05-10 22:33:08 +00:00
kleink
43b7ae77fa POSIX-2001: Change readlink(2)'s return type from int to ssize_t. 2004-05-10 22:28:23 +00:00
yamt
609701c865 - note its typical usage.
- bump date.
2004-05-09 11:28:58 +00:00
kleink
681b62c2ce POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2].  From Murray
Armfield in PR standards/25331.

In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
2004-04-27 01:12:44 +00:00
kleink
3e7f30c118 POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
to id_t.  Partially addressing PR standards/25216 from Murray Armfield.
2004-04-25 22:18:08 +00:00
kleink
8b6d4dd0ae Xref statvfs(5). 2004-04-21 21:25:59 +00:00
wiz
3274408555 Whitespace nits; fix a minus; remove unnecessary {}. 2004-04-21 12:18:23 +00:00
wiz
1c276b3fae Mark up NULL, and fix a minus. 2004-04-21 12:16:00 +00:00
wiz
bb32d7ba63 Drop trailing whitespace. 2004-04-21 12:10:36 +00:00
christos
6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
wiz
71cdf6adc0 Fix typo in xref. 2004-04-19 11:27:03 +00:00
lukem
968e09b852 Document RLIMIT_SBSIZE. 2004-04-19 01:53:21 +00:00
pooka
12004f8f23 Pipes aren't "full-duplex byte streams", so don't compare SOCK_STREAM
type sockets to them.
2004-03-31 16:42:19 +00:00
drochner
66a132ee6f sigreturn() isn't officially supported anymore; remove its manpage
(which was outdated anyway)
2004-03-26 21:49:35 +00:00
drochner
954d4024f6 sigreturn14 is just for compatibility, not referenced by any new code 2004-03-26 19:31:05 +00:00
wiz
5f31e2f50a Use Aq instead of \*[Lt]\*[Gt]; \- for a minus; remove
superfluous comma.
2004-03-25 01:13:32 +00:00
wiz
f3fef0b660 Increase width in tables so this displays more nicely. 2004-03-24 16:14:36 +00:00
mrg
3b66f6e642 clean up my copyright 2004-03-21 05:47:44 +00:00
yamt
936455ecbc "Upcall handlers should be registered" -> "An upcall handler ..."
as only one handler can be registered.
2004-03-14 23:05:09 +00:00
wiz
60f9cb09db Begin sentences with uppercase letters. 2004-03-14 20:57:49 +00:00
snj
ae6d7048fe Spelling fix. 2004-03-14 10:36:09 +00:00
snj
63b1d00163 Fix macro usage and a slight English problem. 2004-03-14 10:22:06 +00:00
snj
cd1f209f54 English fix. 2004-03-14 10:21:22 +00:00
snj
2fdc7bef13 English improvements. 2004-03-14 10:20:43 +00:00
snj
4e8e4580a2 Fix macro usage, use Dv for SA_FLAG_STACKINFO, and English nits. 2004-03-14 10:19:59 +00:00
snj
bcba66f310 Minor English nits. 2004-03-14 10:18:33 +00:00
yamt
e71ca4ef99 some manpages of scheduler activation syscalls. 2004-03-14 09:18:45 +00:00
lukem
6dbd72c053 MAKEVERBOSE messages 2004-02-08 22:52:41 +00:00
wiz
9af86fc6f2 Fix two typos, and remove a superfluous comma. 2004-01-30 16:03:50 +00:00
wiz
7fcc4d6c6b Sort SEE ALSO. 2004-01-30 15:38:47 +00:00
christos
fa6c746b59 cross reference sticky(7) 2004-01-30 15:31:27 +00:00
tsarna
72489e1ea0 uuidgen(2) syscall. Originally from FreeBSD, ported by John Franklin in
PR#23470, with minor updates by me. This is only the syscall support
from that PR, for now.

Changes: port over fix from FreeBSD for multicast address generation.
Changed bcopy to memcpy.  For now, #ifdef notyet the portions of
kern_uuid.c that are meant to be used by (currently nonexistent) other
things in the kernel.  Added syscall to COMPAT_FREEBSD as well, though
that's currently not useful, as any program new enough to use this call
also uses other syscalls we don't (yet) emulate.
2004-01-29 02:00:02 +00:00
mrg
3c36c70c82 fix a typo 2004-01-11 16:05:27 +00:00