Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 1996 13:45:59 GMT
From:      James Raynard <james@jraynard.demon.co.uk>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1229: redundant redeclaration of `lseek'
Message-ID:  <199605211345.NAA04252@jraynard.demon.co.uk>
Resent-Message-ID: <199605211930.MAA21611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1229
>Category:       bin
>Synopsis:       redundant redeclaration of `lseek'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 21 12:30:00 PDT 1996
>Last-Modified:
>Originator:     James Raynard
>Organization:
A FreeBSD-current box
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

FreeBSD 2.2-CURRENT as of 19th May

>Description:

sys/types.h has a prototype for lseek(). So does unistd.h, which 
#include's sys/types.h

>How-To-Repeat:

Compile anything that #include's unistd.h, with -Wredundant-decls.

>Fix:
	
Remove lseek() prototype from unistd.h

*** /usr/src/include/unistd.h~	Tue May 21 14:01:09 1996
--- /usr/src/include/unistd.h	Tue May 21 14:01:18 1996
***************
*** 79,85 ****
  uid_t	 getuid __P((void));
  int	 isatty __P((int));
  int	 link __P((const char *, const char *));
- off_t	 lseek __P((int, off_t, int));
  long	 pathconf __P((const char *, int));
  int	 pause __P((void));
  int	 pipe __P((int *));
--- 79,84 ----

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605211345.NAA04252>