OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man2 / unshare.2
index f6a79c4..b6ac86e 100644 (file)
 .\" by clone, which would require porting and maintaining all commands
 .\" such as login, and su, that establish a user session.
 .\"
-.TH UNSHARE 2 2012-12-31 "Linux" "Linux Programmer's Manual"
+.TH UNSHARE 2 2013-04-17 "Linux" "Linux Programmer's Manual"
 .SH NAME
 unshare \- disassociate parts of the process execution context
 .SH SYNOPSIS
 .nf
-.BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
-.\" Actually _BSD_SOURCE || _SVID_SOURCE
-.\" FIXME See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749
 .B #include <sched.h>
 .sp
 .BI "int unshare(int " flags );
 .fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR unshare ():
+.ad l
+.RS 4
+.PD 0
+.TP 4
+Since glibc 2.14:
+_GNU_SOURCE
+.TP 4
+.\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749
+Before glibc 2.14:
+_BSD_SOURCE || _SVID_SOURCE
+    /* _GNU_SOURCE also suffices */
+.PD
+.RE
+.ad b
 .SH DESCRIPTION
 .BR unshare ()
 allows a process to disassociate parts of its execution
@@ -67,7 +85,7 @@ Reverse the effect of the
 .BR clone (2)
 .B CLONE_FS
 flag.
-Unshare file system attributes, so that the calling process
+Unshare filesystem attributes, so that the calling process
 no longer shares its root directory
 .RB ( chroot (2)),
 current directory
@@ -254,3 +272,11 @@ Such functionality may be added in the future, if required.
 
 .I Documentation/unshare.txt
 in the Linux kernel source tree
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.