diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-23 00:38:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:45 -0500 |
commit | f3b412fbd6dd94d64eb6a63d88baef2816891c29 (patch) | |
tree | 61b6086157d30cf1dd64c8cc720638cd484c78d1 /source4/lib/replace/README | |
parent | 92d74c340843f52aaced18dcc243965387fcaedb (diff) | |
download | samba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.tar.gz samba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.tar.bz2 samba-f3b412fbd6dd94d64eb6a63d88baef2816891c29.zip |
r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.
Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
(This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
Diffstat (limited to 'source4/lib/replace/README')
-rw-r--r-- | source4/lib/replace/README | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/source4/lib/replace/README b/source4/lib/replace/README new file mode 100644 index 0000000000..74b5397949 --- /dev/null +++ b/source4/lib/replace/README @@ -0,0 +1,54 @@ +This subsystem ensures that we can always use a certain core set of +functions and types, that are either provided by the OS or by replacement +functions / definitions in this subsystem. The aim is to try to stick +to POSIX functions in here as much as possible. Convenience functions +that are available on no platform at all belong in different subsystems +(such as LIBUTIL). + +The following functions are guarenteed: + +ftruncate +strlcpy +strlcat +mktime +rename +innetgr +initgroups +memmove +strdup +inet_ntoa +setlinebuf +vsyslog +timegm +setenv +strtoull +strtoll +strndup +strnlen +waitpid +seteuid +setegid +asprintf +snprintf +vasprintf +vsnprintf +opendir +readdir +telldir +seekdir +closedir +dlopen +dlclose +dlsym +dlerror +chroot +bzero +strerror +errno +mkstemp (a secure one!) + +Prerequisites: +memset (for bzero) +syslog (for vsyslog) +setnetgrent, getnetgrent, endnetgrent (for innetgr) +mktemp (for mkstemp) |