1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source4/lib/replace
Andrew Tridgell e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7e)
2007-10-10 14:18:55 -05:00
..
system r18593: try to get the same socket_wrapper file building in samba3 and samba4 2007-10-10 14:18:54 -05:00
test r18491: fixed a warning 2007-10-10 14:18:37 -05:00
aclocal.m4 r18485: include libreplace.m4 in the aclocal.m4 files 2007-10-10 14:18:36 -05:00
autoconf-2.60.m4 r18292: import some autoconf 2.60 specific macros, 2007-10-10 14:18:03 -05:00
autogen.sh r18088: sometimes autoconf picks up some old stuff: 2007-10-10 14:17:14 -05:00
config.guess r18535: move the AC_CANONICAL_HOST and host specific flag tests into 2007-10-10 14:18:42 -05:00
config.sub r18535: move the AC_CANONICAL_HOST and host specific flag tests into 2007-10-10 14:18:42 -05:00
configure.ac r18485: include libreplace.m4 in the aclocal.m4 files 2007-10-10 14:18:36 -05:00
dlfcn.c r18160: - pread and pwrite replacements need to be non-static 2007-10-10 14:17:44 -05:00
dlfcn.m4 r18445: splitout the dlfcn related tests 2007-10-10 14:18:31 -05:00
getpass.c r18160: - pread and pwrite replacements need to be non-static 2007-10-10 14:17:44 -05:00
getpass.m4 r18443: add object files only when needed 2007-10-10 14:18:30 -05:00
install-sh r18033: added install-sh, needed for standalone libreplace build 2007-10-10 14:17:05 -05:00
libreplace_cc.m4 r18549: move gcc version check to libreplace and reorder the tests a bit 2007-10-10 14:18:45 -05:00
libreplace_macros.m4 r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro 2007-10-10 14:18:40 -05:00
libreplace.m4 r18600: - fix shell syntax in tests for libraries 2007-10-10 14:18:55 -05:00
Makefile.in r18539: 'make distclean' should delete config.cache 2007-10-10 14:18:43 -05:00
README r18031: Merge my replace fixes: 2007-10-10 14:17:05 -05:00
repdir_getdents.c r18456: Tru64 doesn't have getdents() so we don't need this ifdef's... 2007-10-10 14:18:32 -05:00
repdir_getdirentries.c r18505: add configure checks for telldir() and seekdir() 2007-10-10 14:18:40 -05:00
repdir.m4 r18505: add configure checks for telldir() and seekdir() 2007-10-10 14:18:40 -05:00
replace.c r18343: fixed setlinebuf() prototype, added test for it, and use it in two 2007-10-10 14:18:13 -05:00
replace.h r18518: we replace snprintf() if its not C99, so we should also add the rep_ 2007-10-10 14:18:41 -05:00
samba.m4 r18485: include libreplace.m4 in the aclocal.m4 files 2007-10-10 14:18:36 -05:00
snprintf.c r18401: some of our code also relies on fprintf() handling C99 2007-10-10 14:18:24 -05:00
timegm.c r18460: split out timegm test and only add timegm.o when needed 2007-10-10 14:18:33 -05:00
timegm.m4 r18460: split out timegm test and only add timegm.o when needed 2007-10-10 14:18:33 -05:00
win32_replace.h r18458: move wins32 stuff to the top dir 2007-10-10 14:18:33 -05:00
win32.m4 r18458: move wins32 stuff to the top dir 2007-10-10 14:18:33 -05:00

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 other subsystems
(such as LIBUTIL).

The following functions are guaranteed:

ftruncate
strlcpy
strlcat
mktime
rename
innetgr
initgroups
memmove
strdup
inet_ntoa
setlinebuf
vsyslog
timegm
setenv
strndup
strnlen
waitpid
seteuid
setegid
asprintf
snprintf
vasprintf
vsnprintf
opendir
readdir
telldir
seekdir
closedir
dlopen
dlclose
dlsym
dlerror
chroot
bzero
strerror
errno
mkdtemp
mkstemp (a secure one!)
pread
pwrite
getpass
readline (the library)
inet_ntoa
strtoll
strtoull

Types:
bool
socklen_t
uint_t
uint{8,16,32,64}_t
int{8,16,32,64}_t
intptr_t

Constants:
PATH_NAME_MAX
UINT{16,32,64}_MAX
INT32_MAX

Macros:
va_copy
__FUNCTION__
__STRING
MIN
MAX

Prerequisites:
memset (for bzero)
syslog (for vsyslog)
setnetgrent, getnetgrent, endnetgrent (for innetgr)
mktemp (for mkstemp and mkdtemp)