From burg@burgpc.is.ge.com  Thu Dec 15 06:45:33 1994
Received: from mail.euronet.nl (mail.euronet.nl [193.67.112.150]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id GAA23770 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Dec 1994 06:45:32 -0800
Received: from burgpc.is.ge.com (p75.euronet.nl [193.67.112.235]) by mail.euronet.nl (8.6.4.1/A/UX 3.1) with ESMTP id PAA01746 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Dec 1994 15:45:09 +0100
Received: (from root@localhost) by burgpc.is.ge.com (8.6.9/8.6.6) id OAA07284; Thu, 15 Dec 1994 14:47:48 -0100
Message-Id: <199412151547.OAA07284@burgpc.is.ge.com>
Date: Thu, 15 Dec 1994 14:47:48 -0100
From: Dick van den Burg <burg@burgpc.is.ge.com>
Reply-To: burg@is.ge.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: fchown in unistd.h
X-Send-Pr-Version: 3.2

>Number:         58
>Category:       misc
>Synopsis:       incorrect prototype for fchown in unistd.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    core (FreeBSD core team)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 15 06:50:01 1994
>Closed-Date:    Thu Dec 15 11:26:26 PST 1994
>Last-Modified:
>Originator:     Dick van den Burg
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
>Environment:


>Description:

	While trying to compile Charles Provenzano'sthread package
	for FreeBSD I noticed that the prototype for fchown in unistd.h
	was 
	int	 fchown __P((int, int, int));
	it should be
	int	 fchown __P((int, uid_t, gid_t));

>How-To-Repeat:

	try to compile:

	#include <unistd.h>
	int fchown(int m, uid_t u, gid_t g) {
	  /* my implemetation of fchown */
	}

	this results in 
	test.c:2: conflicting types for `fchown'
	/usr/include/unistd.h:115: previous declaration of `fchown'


>Fix:
	
	change prototype in unistd.h to
	int      fchown __P((int, uid_t, gid_t));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Thu Dec 15 11:26:26 PST 1994 
State-Changed-Why:  
Suggested change would make it impossible to support both Standard 
and traditional C compilation environments on the user side. 
>Unformatted:



