Date: Sat, 23 Feb 2008 20:09:01 GMT From: mymtom <ning.zhao@china.ncr.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/121021: readlink not conform to POSIX Message-ID: <200802232009.m1NK913q006871@www.freebsd.org> Resent-Message-ID: <200802232020.m1NKK1YI037932@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802232009.m1NK913q006871>