Return-Path: owner-linux-activists@Niksula.hut.fi Return-Path: Received: from joker.cs.hut.fi by hydra.Helsinki.FI (4.1/SMI-4.1/39) id AA15874; Fri, 30 Apr 93 06:39:41 +0300 Received: from joker.cs.hut.fi by niksula.hut.fi id <62152-9>; Fri, 30 Apr 1993 06:37:55 +0300 From: "Linux Activists" To: "Linux-Activists" Reply-To: "Linux-Activists" X-Note1: Remember to put 'X-Mn-Key: DOC' to your mail body or header Subject: Linux-Activists - DOC Channel digest. 93-3-30-0:23 X-Mn-Key: DOC Sender: owner-linux-activists@Niksula.hut.fi Message-Id: <93Apr30.063755eet_dst.62152-9@niksula.hut.fi> Date: Fri, 30 Apr 1993 06:37:50 +0300 Status: RO X-Status: Topics: Re: [MAN PROJECT] More man pages available ---------------------------------------------------------------------- From: jrs@world.std.com (Rick Sladkey) Subject: Re: [MAN PROJECT] More man pages available Date: Fri, 30 Apr 1993 03:06:48 +0300 There is a basic error in almost all of the man2 pages. They say "such-and-such system call returns -EACCES in such-and-such a case." All the systems calls actually return -1 on error and set errno with the error code. I know it looks like they really do return negative errno values when you look at the kernel source but this is actually converted into -1 and errno values in the syscall library interface. Here is how BSD man pages say it: +----- | Upon successful completion, a value of 0 is returned. Otherwise, a value | of -1 is returned and errno is set to indicate an error. +----- Rick ------------------------------ End of DOC Digest ***************** ------- .