Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys bring in ERRORS from openbsd.
details: https://anonhg.NetBSD.org/src/rev/2e4ef7c99da8
branches: trunk
changeset: 535159:2e4ef7c99da8
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Aug 11 12:09:11 2002 +0000
description:
bring in ERRORS from openbsd.
diffstat:
lib/libc/sys/getpgrp.2 | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 795a7a47f0d1 -r 2e4ef7c99da8 lib/libc/sys/getpgrp.2
--- a/lib/libc/sys/getpgrp.2 Sun Aug 11 12:08:55 2002 +0000
+++ b/lib/libc/sys/getpgrp.2 Sun Aug 11 12:09:11 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getpgrp.2,v 1.17 2002/02/08 01:28:17 ross Exp $
+.\" $NetBSD: getpgrp.2,v 1.18 2002/08/11 12:09:11 yamt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)getpgrp.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 4, 1993
+.Dd August 11, 2002
.Dt GETPGRP 2
.Os
.Sh NAME
@@ -73,6 +73,20 @@
.Fn tcsetpgrp
calls
are used to get/set the process group of the control terminal.
+.Sh ERRORS
+.Fn getpgrp
+always succeeds, however
+.Fn getpgid
+will succeed unless:
+.Bl -tag -width Er
+.It Bq Er EPERM
+if the current process and the process
+.Fa pid
+are not in the same session.
+.It Bq Er ESRCH
+if there is no process with a process ID equal to
+.Fa pid .
+.El
.Sh SEE ALSO
.Xr setpgid 2 ,
.Xr termios 4
Home |
Main Index |
Thread Index |
Old Index