misc/121021: readlink not conform to POSIX

mymtom ning.zhao at china.ncr.com
Sat Feb 23 20:20:02 UTC 2008


>Number:         121021
>Category:       misc
>Synopsis:       readlink not conform to POSIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 23 20:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     mymtom
>Release:        FreeBSD 6.2-RELEASE
>Organization:
NCR
>Environment:
FreeBSD freebsd.unix-center.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007     root at portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64
>Description:
Both man page and /usr/include/unistd.h show that the system call readlink does not confirm to IEEE Std 1003.1, 2004 Edition, which requres the following declaration:
--------
#include <unistd.h>
ssize_t readlink(const char *restrict path, char *restrict buf,
       size_t bufsize);
--------

On FreeBSD the declearation is:
--------
/* 1003.1-2001 */
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
int      fchown(int, uid_t, gid_t);
int      readlink(const char *, char *, int);
#endif
--------

>How-To-Repeat:
man readlink or view the file /usr/include/unistd.h
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list