POSIXfy readlink() call



The POXIX prototype for readlink(2) is:
ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize);

See:
http://www.opengroup.org/onlinepubs/000095399/functions/readlink.html

NetBSD already did it:
http://netbsd.gw.com/cgi-bin/man-cgi?readlink+2+

It'd be good have it corrected in 7.0.

Salutes,
Igh.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: restrict
    ... >> problem knowing when source and destinations buffers overlap. ... I'm not implementing memcpy - that's been done. ... char a; ... memcpy(a, b, BUFSIZE); ...
    (comp.lang.c)
  • Re: opinions on code
    ... char inputbuf; ... char *tmp; ... size_t size = BUFSIZE; ... so your programme will put the line into inputbuf[] and when the loop ...
    (comp.lang.c)
  • Re: opinions on code
    ... char inputbuf; ... char *tmp; ... size_t size = BUFSIZE; ... so your programme will put the line into inputbuf[] and when the loop ...
    (comp.lang.c)
  • Re: Where the code trouble is?
    ... > char *title; ... int main{ ... fgets(name, BUFSIZE, stdin); ... strcat(name, CAPTION"); ...
    (comp.lang.c)