Commit Graph

420 Commits

Author SHA1 Message Date
Alexey Zelkin 417f221ddc Remove useless .Fn macro suffix
Reviewed by:	mpp
1999-09-05 06:41:49 +00:00
Alexey Zelkin c60ceb83c2 mdoc style fix.
Reviewed by:	mpp
1999-09-05 06:39:22 +00:00
Alexey Zelkin 3cd9a8622a mdoc(7) style fixes
Reviewed by:	mpp
1999-09-05 06:37:01 +00:00
Peter Wemm 7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Mike Pritchard 8a951d305e 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
1999-08-27 20:21:18 +00:00
Joerg Wunsch b6e3808f9b Remove a 4.3BSDish anachronism that claimed EPERM for an attempt to
mknod() a pathname containg a ``character with the high-order bit
set''.
1999-08-27 14:25:00 +00:00
Chris Costello 1d71a557cc Document ENOSYS error.
PR:		docs/13290
1999-08-23 11:07:29 +00:00
Mike Pritchard 74804d58a0 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>
1999-08-15 09:51:25 +00:00
Chris Costello e5721f2fd3 Change reference to mount(1) to mount(8) 1999-08-14 06:17:24 +00:00
Chris Costello 2d3a25e901 Change reference from kldload(3) to kldload(2) 1999-08-13 21:02:39 +00:00
Bruce Evans 176ef327fa 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.
1999-07-31 22:29:17 +00:00
Bruce Evans fbcc97c9d2 Removed a duplicate reference to System V.4. 1999-07-31 22:14:46 +00:00
Bruce Evans 1c8deedd38 Fixed syntax error in previous commit. 1999-07-31 22:10:17 +00:00
Bruce Evans d3ac30dd5e FIxed disordering in previous commit. Fixed some old disorder. 1999-07-31 22:00:09 +00:00
Nik Clayton 83f7951bfc 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>
1999-07-30 21:20:09 +00:00
Mike Pritchard 6a8edfca23 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
1999-07-30 12:45:20 +00:00
Mike Pritchard afb7dc43a9 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.
1999-07-30 11:32:08 +00:00
Mike Pritchard 07677e5025 Document the lchmod(2) system call.
Pointed-out-by: bde
1999-07-30 10:08:21 +00:00
Mike Pritchard 38cf40702d 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
1999-07-30 09:26:50 +00:00
Mike Pritchard db58ff7d87 Document the lutimes() and futimes() system calls.
PR:		kern/11213
Obtained from:	NetBSD w/some minor changes by me
1999-07-30 09:01:45 +00:00
Mike Pritchard 4f8d723376 Mdoc cleanup. 1999-07-30 07:45:40 +00:00
Sheldon Hearn 4a9e5bd0db Correct HISTORY section, according to CVS logs.
PR:	12810
Submitted by:	Alex Perel <veers@disturbed.net>
1999-07-26 09:37:47 +00:00
Nick Hibma ebec760f9a Update the manpage for the number of symlinks in ELOOP
PR:		12634 (partial)
Submitted by:	Julian H. Stacey jhs@FreeBSD.ORG
1999-07-24 16:45:57 +00:00
Hidetoshi Shimokawa f2fd63aff2 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
1999-07-16 06:28:55 +00:00
Jonathan Lemon 9a670a9a6c Reference correct sysctl: kern.maxsockbuf --> kern.ipc.maxsockbuf 1999-07-15 17:15:24 +00:00
Nik Clayton fbc400a67a 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
1999-07-12 20:50:10 +00:00
Poul-Henning Kamp 38edd9beb9 Clarify an explanation a little bit. 1999-07-09 21:35:37 +00:00
Mike Pritchard 4343edfe20 Nuke the BUGS sections of these man pages because they are not appropriate. 1999-07-01 21:13:06 +00:00
Mike Pritchard ec8dae7070 Fix typos/spelling errors. 1999-07-01 21:09:57 +00:00
Wes Peters 96f31ff872 Add mising aio_* man pages. Fixed a minor typo in aio_read.2,
and "corrected" statement of Posix conformance.
1999-07-01 19:58:12 +00:00
Kris Kennaway c47148499f Spelll 'asynchronous' coriectly 1999-07-01 13:31:30 +00:00
Sheldon Hearn 940b9c82a0 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>
1999-07-01 12:16:06 +00:00
Bill Fumerola 71ed709ce2 Clarify what happens if fd is set to -1
Submitted by:	Alfred Perlstein <bright@rush.net>
1999-06-29 16:32:22 +00:00
Mike Pritchard f858a016d8 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
1999-06-27 00:28:55 +00:00
Ruslan Ermilov ac88d62d8f Typo in previous commit. 1999-06-18 10:41:13 +00:00
Ruslan Ermilov ca9807fc17 Mention that pid 1 is not affected by kill(-1, SIGXXX) too. 1999-06-18 10:24:12 +00:00
Brian Feldman bdf43556fe Minor English corrections were made; SEE ALSO was also fixed (no commas). 1999-06-17 23:43:35 +00:00
Mark Murray 1bcd27ee72 Improvement in the description of what this does.
Prompted by (and thanks to): W Richard Stevens
1999-06-10 22:48:27 +00:00
Justin M. Seger 20e36bb38b 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
1999-06-06 14:15:14 +00:00
Pierre Beyssac 8f823235a9 Typo.
PR:		docs/11832
Submitted by:	Ralf S. Engelschall <rse@engelschall.com>
1999-05-25 11:52:30 +00:00
Poul-Henning Kamp d8bd3ac418 $ brucify -deblunder 1999-05-16 10:51:52 +00:00
Guy Helmer a2b79fbea1 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
1999-05-04 20:07:44 +00:00
Guy Helmer badc7a22e9 Show "#include <machine/param.h>" in SYNOPSIS to get declaration of
PAGE_SIZE for sys/shm.h.

PR:		docs/8464
1999-05-04 17:59:29 +00:00
Guy Helmer ce423e99c5 Note the effect of close(2) on fcntl(2) record locks.
PR:		docs/3522
1999-05-04 17:45:12 +00:00
Guy Helmer 275d1ee30b The accept(2) call can fail with EINTR (at least in the threaded context).
PR:		docs/8858
1999-04-29 20:32:54 +00:00
Poul-Henning Kamp 75c1354190 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/
1999-04-28 11:38:52 +00:00
Joerg Wunsch a44388523d Mention that you can only create a block or char special file using
mknod(2).
1999-04-28 10:04:48 +00:00
Tim Vanderhoek e21de373a2 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
1999-04-27 03:56:10 +00:00
Dmitrij Tejblum 88874fcfe6 Document pread() and pwrite().
Obtained from:	NetBSD (mostly)
1999-04-11 21:14:40 +00:00
Nik Clayton 3ef0a1c27c 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>
1999-04-10 20:49:27 +00:00
Bruce Evans 1dc547e7a9 Fixed missing include in synopsis.
Fixed some mdoc usage errors.
1999-04-09 14:31:59 +00:00
Bruce Evans 940b0c98ca Fixed disordering in previous 2 commits. Fixed an English error. 1999-04-05 07:38:07 +00:00
Dmitrij Tejblum 1b30ac5124 Add wrappers for pread and pwrite syscalls. 1999-04-04 21:46:24 +00:00
Doug Rabson 67022433f8 Manpages for the KLD system calls.
PR:		docs/10412
Submitted by:	Chris Costello <chris@calldei.com>
1999-04-04 12:29:31 +00:00
Poul-Henning Kamp cc7532aaf0 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.
1999-03-23 14:26:40 +00:00
Alexander Langer ee28fadec0 EACESS -> EACCES 1999-03-15 00:14:57 +00:00
Ollivier Robert 1e06f30845 PID_MAX is now 99999.
PR:		docs/10530
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
1999-03-10 20:55:23 +00:00
Guy Helmer 6e6019dc13 Explain ENXIO error status with respect to fifos.
PR:		docs/8559
1999-03-07 18:45:35 +00:00
Alexander Langer 1f34b7f3f8 Fixed references to unmount(2) specified as umount.
Submitted by:	Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
		via OpenBSD
1999-03-05 15:16:31 +00:00
Bruce Evans 12d9948ac8 Don't use undocumented markup "{}". Use 32767 instead of LINK_MAX to
give bug for bug compatibility with intro.2.
1999-03-05 10:39:50 +00:00
Bruce Evans 07799a2af1 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.
1999-03-05 10:29:34 +00:00
Bruce Evans 5d57729b8a Forgot to add $Id$ and change date in previous commit. 1999-03-05 09:44:59 +00:00
Bruce Evans abd022381d 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
1999-03-05 09:28:33 +00:00
Bruce Evans 2c404454ac EOPNOTSUPP also applies to fchflags(). 1999-02-15 13:16:02 +00:00
Dag-Erling Smørgrav 9429c06824 Mention that chflags can fail with EOPNOTSUPP. 1999-02-14 13:58:18 +00:00
Alexander Langer 43d1df332e Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
Joseph Koshy 8ad8dc79db Typo: `kern.somaxconn' -> `kern.ipc.somaxconn'
PR:		docs/9717
Submitted by:	Nathan Dorfman <nathan@rtfm.net>
1999-01-27 05:13:17 +00:00
Julian Elischer 2907af2a96 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>
1999-01-26 02:49:52 +00:00
Julian Elischer 88c5ea4574 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>
1999-01-26 02:38:12 +00:00
Bruce Evans 57687b2e1f Backed out most of previous commit to go with backing out support for
revoke() on non-device files.
1999-01-24 06:43:30 +00:00
Don Lewis 3146a70d74 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
1999-01-19 09:33:14 +00:00
Joseph Koshy 8425e985b7 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>
1999-01-18 02:37:03 +00:00
Bruce Evans d82478ba84 Updated type of ss_size in struct sigaltstack.
Removed bogus prerequisite <sys/types.h>.
1999-01-01 12:22:11 +00:00
Steve Price 4c1a815f94 Commit out caveat about hardlinks to directories since they are
no longer possible.

PR:		8337
1998-12-13 23:35:01 +00:00
Joseph Koshy 2d08e623c1 Enable aio_read(2). 1998-11-24 08:15:08 +00:00
Joseph Koshy 5f67a9c8a1 Don't mention exit(3) in explanation; _exit(2) is a better choice. 1998-11-23 03:23:14 +00:00
Joseph Koshy cbffe59841 Man page for aio_read(2).
Submitted by:	Terry Lambert <terry@whistle.com> on the -doc lists.
1998-11-19 04:07:55 +00:00
Jacques Vidrine 90d1ac3b67 Update to reflect reality.
PR:		kern/8629
1998-11-16 03:49:39 +00:00
David Greenman adcac26551 Added info about non-blocking support. 1998-11-06 19:35:58 +00:00
David Greenman eff8678df3 Added a manual page for sendfile(2). 1998-11-05 14:43:29 +00:00
Jean-Marc Zucconi 65f14a74bd Typo. 1998-10-30 23:50:48 +00:00
Dima Ruban 964b832929 Fix types. 1998-10-21 09:48:35 +00:00
Garrett Wollman 48f4157055 Document the fact that shutdown(2) is expected to comply with Posix.1g,
when it happens.
1998-09-12 21:38:30 +00:00
Joseph Koshy 05e13b1b5d Use ellipsis in synopsis.
Requested by: bde
1998-09-12 01:27:34 +00:00
Brian Somers 8456d89b54 Mention which system interface functions are signal-safe.
Suggested on -current by: Terry Lambert <tlambert@primenet.com>
1998-09-09 20:44:51 +00:00
Joseph Koshy 3d2b8efaa1 Add $Id$, remove quoting for `...'.
Requested by: bde
1998-09-09 01:30:25 +00:00
Joseph Koshy 434f577807 Use ellipsis in the synopsis, and an appropriate explanation in
the text of the manual page.

Suggested by: bde
1998-09-08 02:02:50 +00:00
Joseph Koshy fe6894b6dc Use a varargs style prototype in the manual page, with accompanying
explanation in the text.
1998-09-06 08:50:49 +00:00
Wolfram Schneider acd8019083 Sort cross references. 1998-08-31 16:41:09 +00:00
Joseph Koshy 1380f780e0 Typo fix. 1998-08-28 04:36:21 +00:00
Steve Price 93bb6f1172 Describe what constitues an exceptional condition.
PR:		7666
Submitted by:	Archie Cobbs <archie@whistle.com>
1998-08-24 01:09:34 +00:00
John Birrell b4869285da Remove support for NetBSD syscalls. 1998-08-17 03:46:10 +00:00
Jonathan Lemon 8d0517cffd oops, forgot to do ``cvs add'' first. 1998-07-28 03:39:04 +00:00
Jonathan Lemon f88a03565a 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()
1998-07-28 03:33:27 +00:00
Joseph Koshy 2177df3cd2 Correct wording on range of addresses examined by `msync(2)'.
PR: 7180
1998-07-09 06:16:22 +00:00
Bruce Evans ef2e5f62e3 Document EINVAL return value. 1998-06-14 08:22:05 +00:00
John Birrell 6fe173c87b Implement compile time thread lock debug. 1998-06-09 08:37:35 +00:00
John Birrell bc99dd746b Rename fstat as _thread_sys_fstat if being built into libc_r. 1998-06-09 08:35:42 +00:00
John Birrell 3b6533a024 Implement thread support for libc_r. Make the lseek syscall directly
to avoid recursive locking.
1998-06-09 08:34:35 +00:00
Joseph Koshy aae2142e5f Spelling nits.
Pointed out by: Sue Blake <sue@welearn.com.au>
1998-06-06 04:56:13 +00:00