* [9front] getpid(2) patch
@ 2020-12-23 14:16 boehm.igor
0 siblings, 0 replies; only message in thread
From: boehm.igor @ 2020-12-23 14:16 UTC (permalink / raw)
To: 9front; +Cc: boehm.igor
Fix inconsistency between man page of getpid() with its
implementation.
On 9front getpid() doesn't fail to generate a pid. Therefore it also
doesn't set errstr. Hence the text in the man page describing that
could be removed unless I am overlooking something.
If the text is left in, it suggests that one has to implement error
handling code for a situation that can never arise, at least not on
9front.
See '/sys/src/9/port/proc.c:1772: pidadd(long pid)' for details.
Thanks cinap for clearing up my initial confusion.
diff -r 568e6c7e12ac sys/man/2/getpid
--- a/sys/man/2/getpid Wed Dec 23 02:32:13 2020 +0100
+++ b/sys/man/2/getpid Wed Dec 23 15:04:09 2020 +0100
@@ -26,8 +26,3 @@
.IR intro (2),
.IR exec (2),
.IR proc (3)
-.SH DIAGNOSTICS
-Returns 0 and
-sets
-.I errstr
-if unsuccessful.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-23 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 14:16 [9front] getpid(2) patch boehm.igor
9front - general discussion about 9front
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://inbox.vuxu.org/9front
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
9front@9front.org
public-inbox-index 9front
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.vuxu.org/vuxu.archive.9front
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git