Commit Graph

237 Commits

Author SHA1 Message Date
Michael Kerrisk f8697edd6d getrlimit.2, sendfile.2, stat.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-12-03 07:43:09 +01:00
Michael Kerrisk 4d69ed2e0d stat.2: Fix EOVERFLOW error description
2<<31 should read 1<<31 (which equals 2^31).

Reported-by: Emil Mikulic <emikulic@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-12-03 07:42:05 +01:00
Michael Kerrisk 008f1ecc43 intro.1, time.1, accept.2, bind.2, connect.2, execve.2, flock.2, getdents.2, getpriority.2, getuid.2, intro.2, ioctl.2, mincore.2, mknod.2, personality.2, ptrace.2, read.2, recv.2, select_tut.2, send.2, sendfile.2, shmctl.2, sigaction.2, signal.2, stat.2, times.2, truncate.2, umask.2, wait.2, MB_CUR_MAX.3, MB_LEN_MAX.3, argz_add.3, btowc.3, clearenv.3, clock.3, cmsg.3, end.3, endian.3, errno.3, exit.3, fgetwc.3, fgetws.3, fopen.3, fputwc.3, fputws.3, fseek.3, fwide.3, getfsent.3, getgrnam.3, gethostid.3, getipnodebyname.3, getmntent.3, getpwnam.3, getwchar.3, grantpt.3, iconv.3, iconv_close.3, iconv_open.3, insque.3, intro.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, malloc.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mkstemp.3, mktemp.3, nl_langinfo.3, openpty.3, posix_openpt.3, printf.3, ptsname.3, putwchar.3, qecvt.3, rcmd.3, readdir.3, rexec.3, rpc.3, setnetgrent.3, shm_open.3, sigpause.3, stdin.3, stpcpy.3, strftime.3, strptime.3, syslog.3, towctrans.3, towlower.3, towupper.3, ttyslot.3, ungetwc.3, unlocked_stdio.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wprintf.3, console_ioctl.4, pts.4, elf.5, filesystems.5, hosts.5, proc.5, ttytype.5, boot.7, capabilities.7, credentials.7, epoll.7, glob.7, koi8-r.7, path_resolution.7, pty.7, signal.7, suffixes.7, time.7, unicode.7, unix.7, uri.7, utf-8.7: global fix: s/Unix/UNIX/
The man pages were rather inconsistent in the use of "Unix"
versus "UNIX". Let's go with the trademark usage.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-12 06:49:17 +02:00
Michael Kerrisk 34c909ac11 stat.2: Note feature test macro requirements for blkcnt_t and blksize_t
Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-26 17:36:41 +02:00
Michael Kerrisk 3ba63d802e chdir.2, chmod.2, chown.2, gethostname.2, getsid.2, pread.2, setpgid.2, sigaltstack.2, stat.2, truncate.2, wait.2, dirfd.3, getsubopt.3, mkdtemp.3, mkstemp.3, siginterrupt.3, strdup.3: Simplify feature test macro requirements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-26 17:16:57 +02:00
Michael Kerrisk 50831f9b8a _exit.2, brk.2, capget.2, chdir.2, chmod.2, chown.2, chroot.2, getdtablesize.2, gethostname.2, getpagesize.2, getsid.2, killpg.2, mknod.2, mknodat.2, poll.2, posix_fadvise.2, pread.2, readlink.2, setpgid.2, setreuid.2, sigaltstack.2, stat.2, symlink.2, sync.2, truncate.2, vfork.2, wait.2, wait4.2, a64l.3, abs.3, acos.3, acosh.3, asin.3, asinh.3, atan.3, atan2.3, atoi.3, cbrt.3, ceil.3, copysign.3, cosh.3, dirfd.3, div.3, ecvt.3, erf.3, erfc.3, exp.3, exp2.3, fabs.3, fdim.3, ffs.3, floor.3, fma.3, fmax.3, fmin.3, fmod.3, fpclassify.3, frexp.3, ftw.3, fwide.3, gcvt.3, getcwd.3, getdate.3, getgrent.3, gethostid.3, getpass.3, getpwent.3, getsubopt.3, getw.3, hypot.3, ilogb.3, index.3, isalpha.3, isgreater.3, iswblank.3, j0.3, ldexp.3, lockf.3, log.3, log10.3, log1p.3, logb.3, lrint.3, lround.3, mkstemp.3, mktemp.3, modf.3, mq_receive.3, mq_send.3, nan.3, nextafter.3, posix_fallocate.3, posix_memalign.3, printf.3, qecvt.3, random.3, realpath.3, remainder.3, remquo.3, rint.3, round.3, scalb.3, scalbln.3, scanf.3, siginterrupt.3, signbit.3, sigset.3, sinh.3, sqrt.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strfry.3, strpbrk.3, strsep.3, strspn.3, strstr.3, strtod.3, strtok.3, strtol.3, strtoul.3, strxfrm.3, tanh.3, tgamma.3, trunc.3, ttyslot.3, ualarm.3, usleep.3, wprintf.3, armscii-8.7, cp1251.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-3.7, iso_8859-5.7, iso_8859-6.7, iso_8859-8.7, koi8-u.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 16:59:09 +02:00
Michael Kerrisk 43e0fe7d64 stat.2: Update lstat() feature test macro requirements
Add requirements for glibc 2.10.
Correct requirements for glibc versions before 2.10.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 16:59:03 +02:00
Michael Kerrisk f593575224 stat.2: Update information on nanosecond timestamp fields
Update feature test macro requirements for exposing these fields.
Note that these fields are specified in POSIX.1-2008.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-09-22 16:59:02 +02:00
Michael Kerrisk 310672d6b1 ioctl_list.2, mount.2, select_tut.2, stat.2, getifaddrs.3, pthread_cleanup_push_defer_np.3, pthread_getcpuclockid.3, proc.5, bootparam.7: Global fix: s/sub-/sub/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "sub-" etc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 18:36:10 +01:00
Michael Kerrisk 24b74457e7 accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 18:20:12 +01:00
Michael Kerrisk 2843ba93d4 stat.2, posix_fallocate.3, proc.5, tcp.7, udp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-30 03:28:34 +02:00
Nicolas François bdfd22665a stat.2: Fix small bug in example program
Since it is a failure, EXIT_FAILURE looks more appropriate
than EXIT_SUCCESS.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:29 +02:00
Nicolas François ec28c6b988 stat.2: Minor fixes
Fix to formatting issues:
 * remove ending tabulation
 * add missing parenthesis

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:25 +02:00
Michael Kerrisk 94ea1e9d16 stat.2: Improve wording of ENOTDIR error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:57:42 +12:00
Michael Kerrisk 5cf0b3b40e stat.2: wfix
Reported-by: Tolga Dalman <tdalman@project-psi.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:53:07 +12:00
Michael Kerrisk 14adeb6d28 stat.2: Note that open(O_NOATIME) also cause st_atime not to be updated
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 20:53:44 +01:00
Michael Kerrisk 5e4dc2691b open.2, stat.2: tfix s/_FILE_OFF_SET_BITS/_FILE_OFFSET_BITS/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Chris Heath <chris@heathens.co.nz>
2008-12-05 22:47:18 -05:00
Michael Kerrisk 9dcc46058a stat.2: Document EOVERFLOW error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Andre Majorel <aym-xunil@teaser.fr>
2008-12-05 22:47:18 -05:00
Michael Kerrisk e9ef777f73 stat.2: Refer reader to major() and minor() to decompose a device ID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:54 -05:00
Michael Kerrisk 44c95a090f stat.2, tsearch.3, tzset.3: wfix: s/SysV/System V/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk 82d2be3d9d > > Additionally, you may want to make a note in the stat/lstat man page that on
> > Linux, lstat(2) will generally not trigger automounter action, whereas
> > stat(2) will.
> 
> I don't understand this last piece.  Can you say some more.  (I'm not
> familiar with automounter details.)
 
An automounter (either an explicit one, like autofs, or an implicit
one, such as are used by AFS or NFSv4) is something that triggers
a mount when something is touched.
 
However, it's undesirable to automount, say, everyone's home
directory just because someone opened up /home in their GUI
browser or typed "ls -l /home".  The early automounters simply
didn't list the contents until you accessed it by name;
this is still the case when you can't enumerate a mapping
(say, all DNS names under /net).  However, this is extremely
inconvenient, too.
 
The solution we ended up settling on is to create something
that looks like a directory (i.e. reports S_IFDIR in stat()),
but behaves somewhat like a symlink.  In particular, when it is
accessed in a way where a symlink would be dereferenced,
the automount triggers and the directory is mounted.  However,
system calls which do *not* cause a symlink to be dereferenced,
like lstat(), also do not cause the automounter to trigger.
This means that "ls -l", or a GUI file browser, can see a list
of directories without causing each one of them to be automounted.
 
        -hpa
2008-09-10 10:40:01 +00:00
Michael Kerrisk 86d89e4c89 Add more detail in mount options that prevent updates to atime. 2008-09-09 05:25:25 +00:00
Michael Kerrisk 614aae4105 Add "512B" to comment for st_blocks 2008-09-09 05:12:17 +00:00
Michael Kerrisk ad22ad5568 ffix 2008-06-11 22:19:03 +00:00
Michael Kerrisk a9cfde1dbc SEE ALSO: add symlink.7 2008-06-11 21:50:53 +00:00
Michael Kerrisk 24d01c530c s/filesystem/file system/ 2008-03-19 07:26:08 +00:00
Michael Kerrisk 647d1abbdb Added some .\" comments, and a FIXME. 2008-03-18 14:25:00 +00:00
Michael Kerrisk 6982cdd87c Minor wording change 2008-03-18 14:11:57 +00:00
Michael Kerrisk d1b4e37d41 ffix 2007-12-23 22:24:54 +00:00
Michael Kerrisk d3b03141a9 s/filedes/fd/ 2007-12-23 21:56:27 +00:00
Michael Kerrisk bd19142309 enclose code smaples/structure defns/etc in ".in +4n / .in" 2007-12-19 06:16:04 +00:00
Michael Kerrisk a08ea57c20 Make the standard indent for code samples, shell session
logs, etc. to be ".in +4n".
2007-12-19 05:53:30 +00:00
Michael Kerrisk 2d986c928c Replace `...' with alternate formatting (e.g., ".." or .I) 2007-12-18 07:47:22 +00:00
Michael Kerrisk 6b6da70802 ffix 2007-12-07 19:30:58 +00:00
Michael Kerrisk 2777b1caec Remove section numbers for page references where the
reference refers to the page itself.  (This stops man2html
producing links from a page back to itself.)
2007-11-24 10:10:39 +00:00
Michael Kerrisk 0daa9e92d0 Fix redundant formatting macros 2007-09-20 16:26:31 +00:00
Michael Kerrisk c11b1abf2e Change mtk's email address 2007-09-20 06:52:22 +00:00
Michael Kerrisk 6f1a1e6143 Minor improvements in text describing underlying system calls. 2007-07-10 20:57:30 +00:00
Michael Kerrisk 0c8dd25470 Improve text describing underlying system calls. 2007-07-10 20:44:07 +00:00
Michael Kerrisk e0bf91271f Removed trailing white space at end of lines 2007-07-08 12:39:24 +00:00
Michael Kerrisk cc4615cc78 Added/updated glibc feature test macro requirements 2007-07-08 12:11:40 +00:00
Michael Kerrisk 8179def107 Added som .\" comments 2007-07-07 18:51:10 +00:00
Michael Kerrisk 10f5f29476 s/bitmask/bit mask/ 2007-07-01 04:23:34 +00:00
Michael Kerrisk 02e6bca302 s/bitfield/bit field/ 2007-07-01 04:22:00 +00:00
Michael Kerrisk 42d0b3944e minor changes 2007-06-27 06:06:53 +00:00
Michael Kerrisk 07b88ec8d4 spfix 2007-06-27 05:48:37 +00:00
Michael Kerrisk cd66755373 Minor changes 2007-06-27 05:46:29 +00:00
Michael Kerrisk d28a0b7789 Minor changes. 2007-06-27 05:29:59 +00:00
Michael Kerrisk b8f9d9dd7f Add notes on the different system call service routines that have
appeared over time.
2007-06-27 05:12:36 +00:00
Michael Kerrisk eee0a2ec83 minor wording fix 2007-06-23 08:19:17 +00:00
Michael Kerrisk 66ee0c7e89 ffix 2007-06-23 07:19:07 +00:00
Michael Kerrisk c91e381d47 ffix 2007-06-23 07:05:05 +00:00
Michael Kerrisk c1a6449fe7 ffix 2007-06-22 20:54:26 +00:00
Michael Kerrisk 2f0af33ba6 ffix 2007-06-22 19:42:52 +00:00
Michael Kerrisk 1274071a69 ffix 2007-06-22 18:25:23 +00:00
Michael Kerrisk db4e96b771 ffix 2007-06-22 17:48:59 +00:00
Michael Kerrisk 988db66164 strip trailing white space 2007-06-21 22:55:04 +00:00
Michael Kerrisk 29059a6548 s/-/\\-/ 2007-06-20 21:39:45 +00:00
Michael Kerrisk 460e6363dc s/i-node/inode/ 2007-06-11 19:23:43 +00:00
Michael Kerrisk 75b94dc35c Change "e.g. " to "e.g., ", or in some cases, "for example, ".
Change "i.e. " to i.e.., ", or in some cases, "that is, ".
2007-06-08 11:56:22 +00:00
Michael Kerrisk bc7ff20e70 Added EXAMPLE program. 2007-05-28 11:43:03 +00:00
Michael Kerrisk ad7cc990f2 Change reference to path_resolution.2 to path_resolutiion.7 2007-05-26 12:41:39 +00:00
Michael Kerrisk 2b2581ee37 Fix inconsistencies in order of .SH sections 2007-05-19 04:30:20 +00:00
Michael Kerrisk 4fb3134194 Relocated LINUX NOTES as subsection under NOTES 2007-05-18 10:39:45 +00:00
Michael Kerrisk 042bae96ef ffix 2007-05-15 20:53:59 +00:00
Michael Kerrisk 7c93fec03d Wrapped source lines 2007-05-12 12:58:31 +00:00
Michael Kerrisk c13182efa3 Wrapped long lines, wrapped at sentence boundaries; stripped trailing
white space.
2007-04-12 22:42:49 +00:00
Michael Kerrisk cf0a9ace57 ffix 2007-04-05 12:36:57 +00:00
Michael Kerrisk a7fadb5558 Updated CONFOMRING TOs and/or standards references. 2006-08-04 12:39:17 +00:00
Michael Kerrisk 97c1eac86f Updated CONFORMING TO section 2006-08-03 13:57:17 +00:00
Michael Kerrisk 7a5b4ffb74 Add SEE ALSO referring to access.2. 2006-05-29 05:00:05 +00:00
Michael Kerrisk 691938a16b ffix 2006-05-12 23:36:04 +00:00
Michael Kerrisk 956a644642 new fstatat(2) page 2006-04-21 22:39:00 +00:00
Michael Kerrisk 9c1c7397a0 Added NOTE that st_size is always returned as zero for most /proc files. 2006-04-19 20:44:55 +00:00
Michael Kerrisk 28d88c1751 Global change to many pages...
Various pages use inconsistent terms for 'null byte' (which
is the C99/SUSv3 term for the '\0' character).
To rectify this the following changes were made in these pages:

Replace 'zero byte' with 'null byte'.
Replace 'null character' with 'null byte'.
Replace 'nulls' with 'null bytes'.
Replace 'NUL-terminated' by 'null-terminated'.
Replace 'NUL' by 'null byte'.
Replace 'terminating NUL' by 'terminating null byte'.
Replace 'final NUL' by 'terminating null byte'.
Replace 'NUL character' by 'null byte'.
2006-01-13 02:09:44 +00:00
Michael Kerrisk 246a500fe8 Added LINUX NOTES describing nanosecond timestamps. 2005-11-17 13:36:31 +00:00
Michael Kerrisk 29de83af2a Fix typo 2005-07-25 09:55:44 +00:00
Michael Kerrisk 32f3001571 Improve st_blocks description. 2005-07-19 14:20:38 +00:00
Michael Kerrisk c7400a2caf set-(group|user)-ID fixes 2005-07-18 16:09:29 +00:00
Michael Kerrisk e75a454257 gid --> GID 2005-07-18 15:54:49 +00:00
Michael Kerrisk b14d4aa5b8 Classical BSD versions are now always named x.yBSD (formerly
there was a mix of x.yBSD and BSD x.y).
2005-07-18 15:05:56 +00:00
Michael Kerrisk da2d9dad4e Improve st_dev and st_rdev descriptions; other wording and formatting
improvements.
2005-07-18 13:54:59 +00:00
Michael Kerrisk 5ae873ff97 Formatting changes 2005-06-22 08:16:22 +00:00
Michael Kerrisk 704a18f06d Fixed typos and spelling mistakes 2005-04-18 13:35:29 +00:00
Michael Kerrisk 168df94099 Enrico Zini
Added text to clarify that S_IS*() macros should be applied
to st_mode field.
as per: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249698
2004-12-16 14:45:45 +00:00
Michael Kerrisk 305a0578bf Global change of email address for MTK (now: mtk-manpages@gmx.net) 2004-11-03 14:43:40 +00:00
Michael Kerrisk fea681dafb Import of man-pages 1.70 2004-11-03 13:51:07 +00:00