From owner-svn-src-head@FreeBSD.ORG Fri Apr 4 19:53:46 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A70553B; Fri, 4 Apr 2014 19:53:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBD24AB3; Fri, 4 Apr 2014 19:53:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s34Jrj9D064433; Fri, 4 Apr 2014 19:53:45 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s34JrjxC064431; Fri, 4 Apr 2014 19:53:45 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201404041953.s34JrjxC064431@svn.freebsd.org> From: Ed Schouten Date: Fri, 4 Apr 2014 19:53:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264136 - in head: lib/libc/sys sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 19:53:46 -0000 Author: ed Date: Fri Apr 4 19:53:45 2014 New Revision: 264136 URL: http://svnweb.freebsd.org/changeset/base/264136 Log: Correct return type of pdfork(2). The pdfork(2) man page states: "pdfork() returns a PID, 0 or -1, as fork(2) does." As it returns a PID, the return type should obviously be pid_t. As int and pid_t have the same size on all architectures, this change does not affect the ABI in any way. Modified: head/lib/libc/sys/pdfork.2 head/sys/sys/procdesc.h Modified: head/lib/libc/sys/pdfork.2 ============================================================================== --- head/lib/libc/sys/pdfork.2 Fri Apr 4 19:35:38 2014 (r264135) +++ head/lib/libc/sys/pdfork.2 Fri Apr 4 19:53:45 2014 (r264136) @@ -32,7 +32,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 28, 2013 +.Dd April 4, 2014 .Dt PDFORK 2 .Os .Sh NAME @@ -45,7 +45,7 @@ .Lb libc .Sh SYNOPSIS .In sys/procdesc.h -.Ft int +.Ft pid_t .Fn pdfork "int *fdp" "int flags" .Ft int .Fn pdgetpid "int fd" "pid_t *pidp" Modified: head/sys/sys/procdesc.h ============================================================================== --- head/sys/sys/procdesc.h Fri Apr 4 19:35:38 2014 (r264135) +++ head/sys/sys/procdesc.h Fri Apr 4 19:53:45 2014 (r264136) @@ -105,7 +105,7 @@ void procdesc_reap(struct proc *); * Process descriptor system calls. */ struct rusage; -int pdfork(int *, int); +pid_t pdfork(int *, int); int pdkill(int, int); int pdgetpid(int, pid_t *);