svn commit: r197804 - in head: include lib/libc/gen

2009-10-06 Thread Robert Watson
Author: rwatson Date: Tue Oct 6 14:05:57 2009 New Revision: 197804 URL: http://svn.freebsd.org/changeset/base/197804 Log: Add basename_r(3) to complement basename(3). basename_r(3) which accepts a caller-allocated buffer of at least MAXPATHLEN, rather than using a global buffer. MFC

Re: svn commit: r197804 - in head: include lib/libc/gen

2009-10-06 Thread Gabor Kovesdan
Robert Watson escribió: + +char * +basename(path) + const char *path; +{ + static char *bname = NULL; + Sorry if it's a trivial question but isn't ANSI prototype preferred over KR function definition? -- Gabor Kovesdan FreeBSD Volunteer EMAIL: ga...@freebsd.org .:|:.

Re: svn commit: r197804 - in head: include lib/libc/gen

2009-10-06 Thread Robert N. M. Watson
On 6 Oct 2009, at 20:27, Gabor Kovesdan wrote: Robert Watson escribió: + +char * +basename(path) + const char *path; +{ + static char *bname = NULL; + Sorry if it's a trivial question but isn't ANSI prototype preferred over KR function definition? For the purposes of this