freebsd-dev/include
Konstantin Belousov 14d447de52 MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.
2010-05-04 05:34:18 +00:00
..
arpa Namespace: inet_ntoa_r() is a BSD extension. 2009-03-14 19:00:16 +00:00
gssapi Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This 2008-08-06 14:02:05 +00:00
protocols Expand dump to allow MAX_INT dump levels. 2008-05-24 05:20:46 +00:00
rpc Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDR 2009-06-18 17:10:43 +00:00
rpcsvc
_ctype.h Back out not human readable optimization in prev. commit which shown 2007-11-01 03:18:02 +00:00
a.out.h
ar.h Attempt to improve application portability by marking `struct ar_hdr' 2006-11-13 04:28:29 +00:00
assert.h Only protect the prototypes with #ifndef _ASSERT_H_, the standards 2007-12-01 19:28:13 +00:00
bitstring.h
complex.h Implement cproj{,f,l}(). 2008-08-07 15:07:48 +00:00
cpio.h
ctype.h Don't prototype _tolower() and _toupper(). They're not supposed to be 2009-03-14 19:04:24 +00:00
db.h Hide dbopen() in the POSIX namespace, and use standard type names 2009-03-14 20:05:27 +00:00
dirent.h Merge scandir(3) interface update to stable/8. 2010-01-24 12:35:36 +00:00
dlfcn.h MFC r205606 2010-03-31 13:51:31 +00:00
elf-hints.h
elf.h Remove some OpenSolaris compatibility stuff now that we're doing it a 2007-11-28 22:09:12 +00:00
err.h
fmtmsg.h
fnmatch.h
fstab.h
fts.h Our fts(3) API, as inherited from 4.4BSD, suffers from integer 2008-01-26 17:09:40 +00:00
ftw.h
getopt.h
glob.h
grp.h Namespace: setgrent() is an XSI extension. 2009-03-14 19:05:18 +00:00
gssapi.h
hesiod.h
histedit.h Use tabs after #define. 2007-06-11 06:25:19 +00:00
ieeefp.h
ifaddrs.h
inttypes.h
iso646.h
kenv.h
langinfo.h MFCs of r197764, r197765, r197766, r197847: 2009-10-31 06:35:40 +00:00
libgen.h
limits.h
link.h
locale.h
Makefile Merge files missed in r196285. SVN is simply horrible. Sorry for the 2009-08-17 13:51:19 +00:00
malloc_np.h
malloc.h
memory.h
monetary.h
mpool.h Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD. 2009-03-28 07:31:02 +00:00
mqueue.h Add function __mq_oshandle() to get file handle of a mqueue. 2007-01-06 11:30:04 +00:00
ndbm.h Namespace: dbm_forder() and dbm_dirfno() are BSD extensions. 2009-03-14 19:02:28 +00:00
netconfig.h
netdb.h MFC r206155, r206267: Add capability to use a db version of 2010-04-18 04:07:32 +00:00
nl_types.h
nlist.h
nss.h
nsswitch.h MFC r206155, r206267: Add capability to use a db version of 2010-04-18 04:07:32 +00:00
paths.h Also un-split _PATH_STDPATH for grepability. 2009-02-01 00:50:46 +00:00
printf.h
proc_service.h
pthread_np.h Add cpu affinity APIs to get and set thread's cpu affinity mask, the 2008-03-03 08:28:13 +00:00
pthread.h Fix the visibility of several prototypes. Also move pthread_kill() and 2009-03-14 20:10:14 +00:00
pwd.h Namespace: endpwent, getpwent, and setpwent are XSI extensions. 2009-03-14 19:13:01 +00:00
ranlib.h
readpassphrase.h Define the size_t type since readpassphrase(3) requires it in its 2008-05-08 23:57:29 +00:00
regex.h
regexp.h
res_update.h Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
resolv.h Merge the resolver part of BIND 9.4.3 into HEAD. 2008-12-14 19:39:53 +00:00
runetype.h
search.h
setjmp.h Namespace: _setjmp() and _longjmp() are XSI extensions. 2009-03-14 19:01:26 +00:00
signal.h MFC r199827: 2010-01-31 18:38:03 +00:00
spawn.h Remove __restrict keywords from array arguments to make GCC's -std=c99 work. 2008-06-19 07:30:32 +00:00
stab.h
stdbool.h
stddef.h
stdio.h Merge fmtcheck() prototype change. 2009-06-23 23:53:35 +00:00
stdlib.h MFC r206893: 2010-05-04 05:34:18 +00:00
string.h Namespace: memccpy() and memchr() are XSI, and memrchr() is a BSD extension. 2009-03-14 19:03:34 +00:00
stringlist.h
strings.h - Remove bcmp, bcopy, bzero, index, and rindex from the POSIX.1-2008 2009-03-04 03:31:51 +00:00
sysexits.h
tar.h
tgmath.h Properly parenthesize the __tg_is_complex() macro by moving a closing 2007-02-02 18:30:23 +00:00
time.h Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu 2008-03-22 09:59:20 +00:00
timeconv.h
timers.h
ttyent.h
ulimit.h
unistd.h There is an optimization in chmod(1), that makes it not to call chmod(2) 2009-07-08 15:23:18 +00:00
utime.h
utmp.h Add a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE. 2008-11-16 14:43:33 +00:00
uuid.h Add missing prototypes for uuid_enc,dec_le,be() functions. 2008-09-15 23:47:19 +00:00
varargs.h
vis.h
wchar.h Put the restrict qualifiers in the right place in the wcp[n]cpy prototypes. 2009-03-04 15:45:34 +00:00
wctype.h Back out iswascii change from prev. commit, iswascii was right, 2007-10-14 10:23:54 +00:00
wordexp.h