From owner-freebsd-hackers Wed Dec 28 04:58:50 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id EAA11923 for hackers-outgoing; Wed, 28 Dec 1994 04:58:50 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id EAA11902 for ; Wed, 28 Dec 1994 04:58:41 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA17408; Wed, 28 Dec 1994 13:59:12 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id OAA25190 for freebsd-hackers@freefall.cdrom.com; Wed, 28 Dec 1994 14:06:36 +0100 Received: by bonnie.tcd-dresden.de (8.6.8/8.6.6) id NAA07747; Wed, 28 Dec 1994 13:50:08 +0100 From: j@uriah.sax.de (J Wunsch) Message-Id: <199412281250.NAA07747@bonnie.tcd-dresden.de> Subject: Re: fork() in unistd.h To: freebsd-hackers@freefall.cdrom.com Date: Wed, 28 Dec 1994 13:50:07 +0100 (MET) In-Reply-To: <199412280206.TAA16982@seagull.rtd.com> from "Don Yuniskis" at Dec 27, 94 07:06:49 pm X-Phone: +49-351-8141 137 Reply-To: joerg_wunsch@uriah.sax.de X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 824 Sender: hackers-owner@freebsd.org Precedence: bulk As Don Yuniskis wrote: | | Greetings! | /usr/include/unistd.h for 1.1.5.1R contains two (conflicting) | prototypes for fork(). One is conditional on POSIX... should | the other be inversely conditioned? Or, removed altogether?? conflicting? i've only noticed the conflict between fork() and vfork(). Anyway, the real reason is that Posix requires fork() to return a pid_t, while the kernel internally (traditionally) uses an int for the PID. So int would be the proper return type from the kernel POV, but pid_t from the Posix view. Change your unistd.h to pid_t, and live with it for 1.1.5.1. -- cheers, J"org work: --- no longer --- private: joerg_wunsch@uriah.sax.de Never trust an operating system you don't have sources for. ;-)