[slightly OT] In series of funny manual pages: linux vfork

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

[slightly OT] In series of funny manual pages: linux vfork

Post by mystran »

This is only "slightly OT" as the issue in question is definitely related to OS development, but...

The following is found in the manual page for vfork(2) on my system:

Code: Select all

CONFORMING TO
       The vfork call may be a bit similar to calls with the same name  in  other
       operating  systems.  The  requirements  put  on vfork by the standards are
       weaker than those put on fork, so an implementation where the two are syn-
       onymous  is  compliant.  In  particular, the programmer cannot rely on the
       parent remaining blocked until a call of execve() or  _exit()  and  cannot
       rely on any specific behaviour w.r.t. shared memory.
Especially the "may be a bit similar to" made me laugh. 8)
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
ehird
Member
Member
Posts: 214
Joined: Thu Mar 15, 2007 8:48 am

Post by ehird »

On the subject of funny manpages:

Code: Select all

BUGS
       This manpage is confusing.
-- getopt_long manual page
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post by os64dev »

a classic for FORTRAN

Code: Select all

"The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change." —Early FORTRAN manual for Xerox Computers[8]
Author of COBOS
ehird
Member
Member
Posts: 214
Joined: Thu Mar 15, 2007 8:48 am

Post by ehird »

Post Reply