Commit Graph

241 Commits

Author SHA1 Message Date
julian
68081e32bc 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
1997-06-02 06:24:52 +00:00
peter
370210159e Add xref to signanosleep(2) 1997-06-01 10:34:39 +00:00
peter
6e813d52f9 Doc signanosleep, add to links 1997-06-01 09:47:06 +00:00
peter
0ea6d35407 Generate signanosleep(2) syscall wrapper 1997-06-01 09:20:30 +00:00
eivind
7a1932b397 it's'' -> its'' where appropriate and typo fixes in time2posix.3.
Closes PR docs/3612.

Submitted by:	Josh Gilliam <soil@quick.net>
1997-05-19 16:33:27 +00:00
peter
59bbc37aad Add clock_* and nanosleep manpages and links. 1997-05-12 12:18:14 +00:00
peter
5997063a86 manpage for nanosleep(2)
Obtained from: NetBSD  (I think jtc@netbsd.org wrote it)
1997-05-12 12:15:35 +00:00
peter
650b3f23d1 Man pages for clock_{get/set}time() and clock_getres().
Obtained from: kstailey@openbsd.org via OpenBSD sources
1997-05-12 12:13:10 +00:00
peter
ccac933516 Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep()
syscall functions.
1997-05-12 09:59:25 +00:00
dfr
c24954dec5 Add syscalls for kernel linker. 1997-05-07 18:12:14 +00:00
jb
a1337bb0ae 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.
1997-05-03 03:50:06 +00:00
ache
34d3c87f8f Add vfork(2) to SEE ALSO 1997-04-25 14:41:55 +00:00
bde
cfbf7a3374 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.
1997-04-23 10:49:54 +00:00
bde
93bc52bbfc Fixed missing const. Include <unistd.h> so that the function type gets
checked.
Submitted by:	partly by roberto
1997-04-14 15:14:58 +00:00
bde
3e916061b2 Fixed #includes in synopsis. 1997-04-13 13:48:43 +00:00
bde
611c08ecf2 Updated the LOCK_* #defines in the synopsis to be lexically identical
with the (Lite1) ones in fcntl.h).
1997-04-13 13:43:06 +00:00
bde
e504efa1d6 Fixed missing #include in synopsis. 1997-04-11 18:57:26 +00:00
bde
8da5ad6e3e Fixed return type of __syscall() in synopsis.
Don't quote "..." in synopsis.  Quoting here is unnecessary and unusual.
1997-04-11 18:54:05 +00:00
bde
5681f0a3dc Fixed missing const(s) or #include(s) in synopsis. 1997-04-11 18:47:10 +00:00
bde
3e0c208aec Fixed synopsis (the #include was bogus and the return type for brk() was
wrong).
1997-04-11 18:39:44 +00:00
peter
81248009f2 Missing newline caused too much text to be fed to the macro.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228
1997-04-08 10:45:10 +00:00
peter
b9fe2f81dd 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>
1997-04-08 10:43:47 +00:00
peter
54b1a6105b Update to include details about the changes to setuid/setgid. 1997-04-02 17:24:16 +00:00
jdp
483d5e360e Correct the most glaring errors. I have a feeling there are some
left.
1997-04-02 01:42:07 +00:00
ache
31ef1e437d Link chown with lchown 1997-04-01 23:07:55 +00:00
ache
ae0c6c044e Add issetugid.2 to MAN2 list 1997-04-01 22:57:56 +00:00
mpp
a8f58296ab Xref the new issetugid(2) man page where appropriate.
Also add additional set*id(2) xrefs where appropriate.
1997-04-01 18:58:38 +00:00
mpp
b87dacefe4 Don't xref setregid(2) twice - one of them should be setreuid(2). 1997-04-01 18:50:56 +00:00
mpp
288c649489 Fix one very minor mdoc problem. Gentle enough, Peter? :-) 1997-04-01 18:45:57 +00:00
mpp
2e658dbf0d Fix a minor grammar problem. 1997-04-01 18:06:33 +00:00
peter
1cce6194df 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. :-)
1997-03-31 16:36:14 +00:00
peter
f551f7b0a0 Steal issetugid man page from OpenBSD. Needs work..
Obtained from: OpenBSD
1997-03-31 15:59:14 +00:00
peter
a3b55ed48c Add libc hook for issetugid() 1997-03-31 15:43:22 +00:00
peter
3c380c1c44 Create lchown() in libc and document it as a variation of chown(). 1997-03-31 12:37:35 +00:00
bde
4003214ed8 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.
1997-03-28 12:27:42 +00:00
mpp
f3d90e26a8 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...
1997-03-25 18:33:23 +00:00
mpp
60739ce512 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
1997-03-25 03:39:54 +00:00
jmg
1d30a41b6e add xrefs for getpeername, so other people that look for it can find it.. :) 1997-03-24 01:22:01 +00:00
mpp
739a0bf676 Use the .Tn macro for generic FreeBSD references. Other minor cleanup. 1997-03-21 20:57:20 +00:00
wpaul
442f5f318a Document SCM_CREDS changes. 1997-03-21 16:52:05 +00:00
bde
3d67153315 Fixed missing function types in synopsis. 1997-03-19 00:32:42 +00:00
bde
7e02e1861d Fixed synopsis (put all of the function (return) type info in .Ft and
none in .Fn).
1997-03-19 00:06:09 +00:00
bde
af16e6a322 Removed unnecessary quoting of function names in synopsis to simplify
automated checking of synopses.
1997-03-18 23:57:33 +00:00
bde
db004d74c8 Updated prototype for mount() to match Lite2 reality for the 1st arg
and Lite1 or earlier reality for the 4th arg.
1997-03-13 21:11:33 +00:00
bde
2e22fb97fd 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.
1997-03-12 17:16:22 +00:00
mpp
5df20433ff 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.
1997-03-12 16:23:36 +00:00
mpp
5a5ba05ed7 Update the structure to match how things are going to appear after
bde commits some changes later tonight.
1997-03-12 15:35:52 +00:00
bde
336e7e8197 Restored a .Fa line that was lost in the Lite2 merge. 1997-03-12 15:18:28 +00:00
mpp
2602ef2be2 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.
1997-03-12 14:49:41 +00:00
peter
724b89cfd3 Merge from Lite2 onto mainline -
- add undelete() and undelete.2 (requires libc minor bump some time)
  - man page updates
1997-03-11 11:35:56 +00:00
peter
e8e23405de This commit was generated by cvs2svn to compensate for changes in r23658,
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:29:42 +00:00
peter
e0e06d68d5 Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
mckay
0df49cb9cf Clarified the behaviour of dup2(fd1,fd2) when fd1==fd2 and when fd1 is invalid.
Safe for 2.2!
1997-03-09 13:16:48 +00:00
mpp
62d7ba8abf Add a missing semi-colon.
Submitted by:	jmg
1997-03-07 06:15:54 +00:00
ache
b51638da37 Remove words about lower limit needed (from BUGS section), we have
precise limit now
1997-03-03 23:50:55 +00:00
ache
deb10b28e8 Use stricter MAXLOGNAME now 1997-03-03 09:52:26 +00:00
ache
43ee6e6220 Reflect current MAXLONGNAME value and specify that null included 1997-03-03 09:17:16 +00:00
ache
08d63c99ae MAXLOGNAME currently 16, not 12 1997-03-02 21:47:03 +00:00
peter
6b08958c64 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
mpp
ee7605965f Update to reflect new Lite2 mount.h and friends. 1997-02-10 07:36:00 +00:00
mpp
376473c970 Update to reflect new Lite2 mount.h. 1997-02-10 07:29:25 +00:00
mpp
e4bf464ad3 Don't use hardcoded *roff font change requests. 1997-01-31 01:06:39 +00:00
mpp
1511fd26d0 Very minor mdoc cleanup. 1997-01-31 00:25:12 +00:00
mpp
9a36202436 Update to reflect current include files. 1997-01-30 22:39:40 +00:00
mpp
067667ae97 Update to reflect current include files. 1997-01-30 21:31:52 +00:00
jmacd
bdeeed7f59 Correct "Chflags() will fail it:" to read "Chflags() will fail if:". 1997-01-30 10:25:38 +00:00
mpp
17f7e2c9e2 Update to reflect the current mount.h. 1997-01-29 05:43:46 +00:00
obrien
1627d472cb 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.
1997-01-27 19:20:05 +00:00
mpp
842b97e662 Document a couple of additional errno's.
Submitted by:	 Steinar Haug and Heiko W. Rupp
Obtained from: NetBSD-bugs & FreeBSD-current mailing lists
1997-01-26 03:44:55 +00:00
wosch
6d0dbd7455 Sort cross references. 1997-01-20 23:23:22 +00:00
jkh
808a36ef65 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.
1997-01-14 07:20:47 +00:00
mpp
54b96968b6 Add missing RETURN VALUES/ERRORS sections. 1997-01-12 00:38:36 +00:00
mpp
cbb081b4fe Rename the DIAGNOSTICS sections in several man pages
to RETURN VALUES like they should be.
1997-01-12 00:09:02 +00:00
mpp
36f0550d96 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.
1997-01-11 23:56:32 +00:00
mpp
3ac71edb34 Minor mdoc fixes in msync.2 and munmap.2.
Add RETURN VALUES and ERRORS sections to mincore.

Closes PR# 1493.
1997-01-11 23:33:18 +00:00
mpp
4a24479701 Forgot a .El macro. 1997-01-11 23:26:44 +00:00
mpp
c9234ddda1 Add RETURN VALUES and ERRORS sections. 1997-01-11 23:20:29 +00:00
mpp
0d991be042 Some mdoc cleanup. Also added a RETURN VALUES and ERRORS
section.

Part of PR# 1493.
1997-01-11 22:51:27 +00:00
mpp
6df94e5f56 Remove the comment about file names having to
be 7 bit clean, since it isn't true anymore.

Part of PR# 1493.
1997-01-11 22:31:47 +00:00
mpp
114789300a 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.
1997-01-11 21:45:57 +00:00
jdp
4e07878b52 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.
1997-01-08 23:48:02 +00:00
joerg
6ed07ccb5b Document the various reasons for EINVAL.
Document the flaw that `offset' is required to be page-aligned, in the
BUGS section.
1997-01-08 12:02:15 +00:00
wosch
0426c0af88 comma typos 1996-12-23 23:09:55 +00:00
swallace
0b3ad5ee30 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.
1996-12-18 08:03:31 +00:00
jkh
d98e222355 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
1996-12-17 21:58:00 +00:00
mpp
9bc3e724e5 Correct some xrefs/mlinks. 1996-12-14 23:27:20 +00:00
alex
2bbb988ec4 POSIX.4 defines MAP_FAILED to be the error return from mmap(). 1996-12-12 01:00:14 +00:00
msmith
dd680562f9 English pedantry : affect -> effect
Submitted by:	 Daniel O'Callaghan" <danny@panda.hilink.com.au>
1996-12-09 06:04:03 +00:00
ache
bf67909b4b Turn POSIX_SAVED_IDS off 1996-12-06 22:53:52 +00:00
mpp
e4e60e9882 The semget man page uses the incorect symbol for alter
access.  Closes PR# 1712.

Submitted by:	Kent Vander Velden
1996-12-03 23:03:22 +00:00
wosch
32491cf461 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
1996-12-02 20:03:58 +00:00
alex
76176371e0 Slight rewording of the BUGS section. 1996-11-13 23:55:28 +00:00
joerg
16296391cd Merge from the 2.2 branch: describe MNT_FORCE for mount(2). 1996-11-10 09:28:20 +00:00
obrien
7d9f6cd5a3 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.
1996-11-10 05:56:43 +00:00
wosch
000fb64288 delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
bde
b6663b85bf Updated the descriptions of the limits related to EAGAIN.
Changed the error name width for rfork to match fork.
1996-09-29 17:47:46 +00:00
bde
789722ca50 .DV -> .Dv (SOCK_STREAM was invisible). 1996-09-28 13:32:35 +00:00
phk
331ec6879b Don't use malloc, pessimize to use sbrk.
fix sbrk manpage while we're at it.
1996-09-27 15:34:19 +00:00
wosch
89dea7c61d add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
peter
a60b7660f3 ".Xr chflags 1," -> ".Xr chflags 1 ," 1996-09-21 06:28:55 +00:00