Module Name: src
Committed By: jruoho
Date: Mon Apr 4 08:00:53 UTC 2011
Modified Files:
src/lib/libc/sys: getsid.2 setsid.2
Log Message:
Use .Fn for functions.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/sys/getsid.2
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/sys/setsid.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/getsid.2
diff -u src/lib/libc/sys/getsid.2:1.10 src/lib/libc/sys/getsid.2:1.11
--- src/lib/libc/sys/getsid.2:1.10 Sat Oct 7 21:03:51 2006
+++ src/lib/libc/sys/getsid.2 Mon Apr 4 08:00:53 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: getsid.2,v 1.10 2006/10/07 21:03:51 elad Exp $
+.\" $NetBSD: getsid.2,v 1.11 2011/04/04 08:00:53 jruoho Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)getpgrp.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd October 7, 2006
+.Dd April 4, 2011
.Dt GETSID 2
.Os
.Sh NAME
@@ -43,7 +43,7 @@
.Fn getsid "pid_t pid"
.Sh DESCRIPTION
The
-.Nm
+.Fn getsid
function returns the session ID of the process specified by
.Ar pid .
If
@@ -53,7 +53,7 @@
process that is the session leader.
.Sh ERRORS
If an error occurs,
-.Nm
+.Fn getsid
returns \-1 and the global variable
.Va errno
is set to indicate the error, as follows:
Index: src/lib/libc/sys/setsid.2
diff -u src/lib/libc/sys/setsid.2:1.14 src/lib/libc/sys/setsid.2:1.15
--- src/lib/libc/sys/setsid.2:1.14 Sat Oct 7 21:03:51 2006
+++ src/lib/libc/sys/setsid.2 Mon Apr 4 08:00:53 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: setsid.2,v 1.14 2006/10/07 21:03:51 elad Exp $
+.\" $NetBSD: setsid.2,v 1.15 2011/04/04 08:00:53 jruoho Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)setsid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd October 7, 2006
+.Dd April 4, 2011
.Dt SETSID 2
.Os
.Sh NAME
@@ -43,7 +43,7 @@
.Fn setsid "void"
.Sh DESCRIPTION
The
-.Nm setsid
+.Fn setsid
function creates a new session.
The calling process is the session leader of the new session, is the
process group leader of a new process group and has no controlling
@@ -52,12 +52,12 @@
process group.
.Pp
Upon successful completion, the
-.Nm setsid
+.Fn setsid
function returns the value of the process group ID of the new process
group, which is the same as the process ID of the calling process.
.Sh ERRORS
If an error occurs,
-.Nm setsid
+.Fn setsid
returns \-1 and the global variable
.Va errno
is set to indicate the error, as follows:
@@ -74,6 +74,6 @@
.Xr tcsetpgrp 3
.Sh STANDARDS
The
-.Nm setsid
+.Fn setsid
function conforms to
.St -p1003.1-90 .