aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/stat.2
Commit message (Collapse)AuthorAgeFilesLines
* open(2): Remove O_BENEATH and AT_BENEATHKonstantin Belousov2021-03-211-42/+8
| | | | | | | Discussed with: emaste, re Tested by: pho (cherry picked from commit 20e91ca36a56b8db1e6677f577ad011b66dd6eb3)
* MFC r339748, r340343, r340347, r341256, r366015-r366023, r366549:Konstantin Belousov2020-10-221-3/+65
| | | | | | | | | | O_BENEATH and related features. Sponsored by: The FreeBSD Foundation Tested by: pho Notes: svn path=/stable/12/; revision=366937
* MFC 359465: Document EINTEGRITY errors for many system calls.John Baldwin2020-09-081-1/+5
| | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Notes: svn path=/stable/12/; revision=365473
* MFC r345087: Use consistent struct stat arg name in stat man pageEd Maste2019-03-201-1/+1
| | | | | | | | stat, lstat, and fstat use `*sb` as the stat struct pointer arg name, while fstatat previously used `*buf`. Notes: svn path=/stable/12/; revision=345314
* MFC r341598:Alan Somers2019-02-141-25/+33
| | | | | | | | | | | | | | stat(2): clarify which syscalls modify file timestamps The list of syscalls that modify st_atim, st_mtim, and st_ctim was quite out of date and probably not accurate to begin with. Update it, and make it clear that the list is open-ended. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D18410 Notes: svn path=/stable/12/; revision=344134
* Mark all the system calls that were in 1st Edition Unix as such in theWarner Losh2017-12-011-2/+2
| | | | | | | | | | HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Notes: svn path=/head/; revision=326435
* Remove redundant wording, minor edits for clarity.Warren Block2017-06-231-22/+22
| | | | | | | | MFC after: 1 week Sponsored by: iXsystems Notes: svn path=/head/; revision=320287
* Document st_flags in the stat(2).Maxim Sobolev2017-06-161-0/+5
| | | | | | | | Approved by: mckusick,vangyzen,jilles Differential Revision: https://reviews.freebsd.org/D10852 Notes: svn path=/head/; revision=320004
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* - Add the 'restrict' type qualifier to match function prototype.Kevin Lo2016-01-141-4/+3
| | | | | | | - Remove sys/types.h. Notes: svn path=/head/; revision=293863
* Remove invalid remark about pipes.Ed Schouten2012-06-021-2/+2
| | | | | | | | | | | | The stat structures returned on pipes seems to contain all the information required by POSIX. Especially the wording "and thus to a pipe" makes little sense, because it seems to imply a certain relationship between sockets and pipes that simply isn't there. MFC after: 2 weeks Notes: svn path=/head/; revision=236441
* Fix typo.Konstantin Belousov2011-11-171-2/+2
| | | | | | | | Submitted by: arundel MFC after: 3 days Notes: svn path=/head/; revision=227622
* Update sticky(7) cross references.Sergey Kandaurov2011-05-131-2/+2
| | | | | | | | PR: docs/124468 X-MFC with: r218998 Notes: svn path=/head/; revision=221845
* mdoc: make pages render with mandocUlrich Spörlein2010-10-211-1/+1
| | | | | | | | | 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. Notes: svn path=/head/; revision=214132
* Don't forget to bump the date in the man page.Ed Schouten2010-03-281-1/+1
| | | | Notes: svn path=/head/; revision=205794
* Rename st_*timespec fields to st_*tim for POSIX 2008 compliance.Ed Schouten2010-03-281-11/+17
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=205792
* Man pages for the openat(2), fexecve(2) and related syscalls.Konstantin Belousov2008-04-161-2/+82
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=178245
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Document S_IRWXU and permission bits for group/other.Ruslan Ermilov2006-10-121-2/+11
| | | | | | | | PR: docs/57153 MFC after: 3 days Notes: svn path=/head/; revision=163269
* o Sort .Xrs.Maxim Konovalov2006-06-131-1/+1
| | | | Notes: svn path=/head/; revision=159569
* Add xref to statfs(2)Poul-Henning Kamp2006-06-131-0/+1
| | | | Notes: svn path=/head/; revision=159568
* Add references to fhopen, fhstat, getfh, lgetfh and fhstatfs.Greg Lehey2006-01-101-0/+1
| | | | | | | Pointed out by: Antony Curtis <antony@mysql.com> Notes: svn path=/head/; revision=154202
* Sort sections.Ruslan Ermilov2005-01-201-7/+7
| | | | Notes: svn path=/head/; revision=140505
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-111-1/+1
| | | | Notes: svn path=/head/; revision=140081
* Document more fields of struct stat.Yaroslav Tykhiy2004-11-151-0/+32
| | | | | | | | Note to mdoc(7) police: The document date has already been touched today. Notes: svn path=/head/; revision=137737
* Use .Vt "struct stat" consistently.Yaroslav Tykhiy2004-11-151-1/+1
| | | | Notes: svn path=/head/; revision=137736
* Improve mdoc(7) markup of the page: add several missing macros,Yaroslav Tykhiy2004-11-151-10/+10
| | | | | | | use .Va instead of .Li for struct stat fields. Notes: svn path=/head/; revision=137734
* Document the S_IS*(mode) macros used to test for file types.Yaroslav Tykhiy2004-11-151-1/+27
| | | | | | | Bump the document date accordingly. Notes: svn path=/head/; revision=137733
* Add sticky(8) cross reference.Diomidis Spinellis2003-12-101-1/+2
| | | | | | | | | PR: docs/60068 Submitted by: Ken Stailey MFC after: 2 weeks Notes: svn path=/head/; revision=123388
* Bring the description of st_[cma]time modification conditions a bitDiomidis Spinellis2003-10-201-6/+18
| | | | | | | | | 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. Notes: svn path=/head/; revision=121279
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-2/+2
| | | | Notes: svn path=/head/; revision=119893
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-5/+5
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* * The copy of the stat struct in the man page has rotted, so remove it.Doug Barton2003-05-131-29/+2
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=114969
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+7
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-181-1/+1
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-11/+11
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=108028
* Add a missing 'function' word.Giorgos Keramidas2002-07-151-2/+2
| | | | | | | Use .Vt to mark up `struct stat' when it is a variable type. Notes: svn path=/head/; revision=100139
* The .Fn functionGiorgos Keramidas2002-07-151-6/+9
| | | | Notes: svn path=/head/; revision=100137
* Fix whitespace in .Bd -literal display of S_IXXX constants.Giorgos Keramidas2002-07-151-15/+15
| | | | | | | Noticed by: jmallett Notes: svn path=/head/; revision=100062
* Document that the type of st_flags is now fflags_t.Garrett Wollman2002-02-151-2/+2
| | | | Notes: svn path=/head/; revision=90712
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Describe EOVERFLOW I implement per POSIX.Andrey A. Chernov2001-08-311-9/+17
| | | | | | | Sort ERRORS section Notes: svn path=/head/; revision=82705
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-311-4/+1
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: Er macro usage cleanup.Ruslan Ermilov2000-11-221-3/+3
| | | | Notes: svn path=/head/; revision=69051
* Use `Er' variable to define first column width in ERRORS section. It wasAlexey Zelkin2000-05-041-1/+1
| | | | | | | initially suggested by mdoc(7) style, but was broken over the years Notes: svn path=/head/; revision=59954
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Contains the paraNik Clayton1999-04-101-9/+1
| | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=45560