Commit Graph

49 Commits

Author SHA1 Message Date
wiz 5ef525c783 Mention that fchmod conforms to XPG 4.2. Bump date. 2021-11-19 23:51:16 +00:00
sevan d9e8d47bcc Document history of chmod(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf
2019-09-01 19:13:57 +00:00
njoly a837ea1a5b Adjust needed includes for fchmodat/mkdirat/mkfifoat/mknodat/fstatat
syscalls.
2013-10-15 11:43:21 +00:00
njoly 3d23719d01 Add chmodat(2) specific errors. 2013-07-29 19:18:37 +00:00
dholland ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
wiz df30358ee8 Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
2012-12-01 21:00:18 +00:00
wiz d4e1a73a59 Bump date. New sentence, new line. Wording/articles. 2012-12-01 20:51:29 +00:00
wiz 3e961cd531 Remove trailing whitespace. 2012-12-01 20:45:01 +00:00
manu a76c1cc17f Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation
2012-11-18 17:41:51 +00:00
wiz 87b2e48e9c Sort error descriptions. 2012-03-04 11:58:31 +00:00
dholland e9f7fa95bf Clarify description of sticky bit, based on a 3-year-old suggestion by
Hubert Feyrer.
2012-03-04 00:07:44 +00:00
christos b13e8d0c26 Remove duplicate documentation that is mentioned in stickt(7) 2011-10-12 22:46:36 +00:00
njoly 7d9c448d51 Consistently use `.Brq Dv XXX' across syscalls man pages, for NAME_MAX
and PATH_MAX.
2010-05-31 12:16:20 +00:00
joerg 1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
dholland 8f5f9030b6 SEE ALSO getmode(3)/setmode(3).
Suggested in passing by Joerg a long time ago on tech-pkg, seems like
a good idea.
Bump date.
2009-01-04 07:21:01 +00:00
dholland 629defb951 Clarify that the historic V7 sticky file semantics no longer apply. 2008-09-05 03:28:15 +00:00
wiz 7bbb7f45b1 Bump date for previous. 2007-01-09 06:41:57 +00:00
rillig c79f6cc521 chmod fails with EPERM when you try to set the S_ISGID bit on a file
whose group isn't one of your groups.
2007-01-09 04:03:57 +00:00
ginsbach 9d30c15dda Add EPERM to fchmod() failure list. 2005-01-06 16:30:52 +00:00
wiz 64ebeb5cbc \- is a minus, not -. 2004-05-13 10:20:57 +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
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
thorpej 3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
wiz f6bcf9642e New sentence, new line. From Robert Elz. 2002-10-01 18:10:43 +00:00
simonb eb0846961e Remove <sys/types.h> from synopsis, as per latest SUS/Posix specs. 2002-04-29 01:41:43 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz dfcfff97f3 Boring whitespace fixes. 2001-09-16 01:38:59 +00:00
kleink 15be242b3a Add a LIBRARY section to system call manual pages. While it's clear that the
libraries contain stubs only (with minor exceptions a la pipe(2)), the purpose
of this section is to provide linkage information.
1999-12-02 21:42:35 +00:00
jdolecek 7d96f3efd3 xref symlink(7) 1999-09-26 21:00:25 +00:00
garbled 38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
fair 3a267cb729 add .Xr chflags 2 - this is another meta-data-modifying system call 1998-07-06 09:23:23 +00:00
enami b9a2bf91c7 Sort SEE ALSO list. 1997-10-11 03:34:00 +00:00
enami 2f07ed897a Don't use capital letter for function name and argument. 1997-10-11 03:31:01 +00:00
enami f67a987e2d Acutally, lchmod, lchown and lutimes may set errno to ELOOP. 1997-10-06 08:22:58 +00:00
enami 435d770085 Add C library interface for new system call lchmod, lchown and lutimes. 1997-10-06 01:12:04 +00:00
kleink c213a3af8b Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
1997-07-14 23:19:39 +00:00
perry f7512395e6 document EFTYPE error return (from der Mouse, pr-3476) 1997-07-12 18:38:06 +00:00
kleink 733adc6801 Add/update 1003.1 conformance notice. 1997-05-16 15:31:01 +00:00
kleink 244f0cc5f2 Update to the new `chown(2) vs. (S_ISUID|S_ISGID)' world order. 1997-05-13 17:45:16 +00:00
cgd 4eab61bd40 merge with lite, keeping most local changes. clean up Ids 1995-02-27 12:31:34 +00:00
jtc 38065bce20 Remove description of EINVAL, "The pathname contains a character with the
high-order bit set", as this error is obsolete.

Eventually we may want to add code to some of the "optional" filesystems
(msdosfs, etc.) that checks for illegal characters.  At that time it would
be appropriate to reintroduce this error with appropriate text.  Perhaps
"The pathname contains a character that is not valid for filesystem type".
1994-04-22 00:13:22 +00:00
jtc a3376999f0 Use symbolic names {NAME_MAX} & {PATH_MAX} instead of 255 and 1023 in
description of ENAMETOOLONG error.
1994-04-19 00:10:45 +00:00
jtc 6e9ac1805f Clean up manpages:
Use .Fn rather than .Nm macro in HISTORY and STANDARDS sections.
  Use .At and .St macros instead of spelling out "Version 6 UNIX",
	"IEEE 1003.1-1988 (POSIX)", etc.
1993-11-25 00:38:17 +00:00
jtc fcd7123054 Add #include <sys/types.h> to SYNOPSIS, as it needs to be included too. 1993-10-04 18:00:10 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00