Module Name: src
Committed By: christos
Date: Wed Oct 12 22:46:36 UTC 2011
Modified Files:
src/lib/libc/sys: chmod.2
Log Message:
Remove duplicate documentation that is mentioned in stickt(7)
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/sys/chmod.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/chmod.2
diff -u src/lib/libc/sys/chmod.2:1.37 src/lib/libc/sys/chmod.2:1.38
--- src/lib/libc/sys/chmod.2:1.37 Mon May 31 08:16:20 2010
+++ src/lib/libc/sys/chmod.2 Wed Oct 12 18:46:36 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: chmod.2,v 1.37 2010/05/31 12:16:20 njoly Exp $
+.\" $NetBSD: chmod.2,v 1.38 2011/10/12 22:46:36 christos Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd January 4, 2009
+.Dd October 11, 2011
.Dt CHMOD 2
.Os
.Sh NAME
@@ -101,24 +101,14 @@ defined in
#define S_ISUID 0004000 /* set user id on execution */
#define S_ISGID 0002000 /* set group id on execution */
-#define S_ISVTX 0001000 /* save swapped text even after use */
+#define S_ISVTX 0001000 /* sticky bit */
.Ed
.Pp
-If mode
+The mode
.Dv ISVTX
(the
.Sq sticky bit )
-is set on a regular file, it historically meant that the system should
-save a shareable copy of the program text in the swap area.
-When applied to commonly used programs like the shell or editor, this
-would decrease memory usage and startup time.
-In
-.Nx ,
-the sticky bit may still be set on regular files by the super-user,
-but has no effect.
-The historical meaning became obsolete in the 1980s with the advent of
-memory-mapped executables, and is only documented as a matter of
-historical interest.
+can be set on a regular file by the super-user, but has no effect.
.Pp
If mode
.Dv ISVTX
@@ -130,7 +120,7 @@ files of other users in that directory.
The sticky bit may be set by any user on a directory which the user
owns or has appropriate permissions.
.Pp
-For more information about the properties of the sticky bit, see
+For more information about the history and properties of the sticky bit, see
.Xr sticky 7 .
.Pp
Changing the owner of a file