9front - general discussion about 9front
 help / color / mirror / Atom feed
* [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).