1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/lib/replace
2008-05-22 15:01:32 +02:00
..
system libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used 2008-05-13 09:07:13 +02:00
test libreplace: always provide utime() and utimes() 2008-05-07 13:25:22 +02:00
.checker_innocent r19120: silence a warning about a test function 2007-10-10 14:20: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 r22658: - add AC_GNU_SOURCE macro for systems which don't have it 2007-10-10 14:51:58 -05:00
autogen.sh r18088: sometimes autoconf picks up some old stuff: 2007-10-10 14:17:14 -05:00
config.guess r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
config.sub r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
configure.ac libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build 2008-05-07 17:38:41 +02:00
dlfcn.c Support dlopen(NULL, ...) on HPUX. 2008-02-20 20:05:51 +01:00
dlfcn.m4 r25855: Check for HPUX dl functions. 2007-12-21 05:44:29 +01:00
getaddrinfo.c r25909: Fix the snprintf checks, and fix a typo in pointer indirection. 2007-12-21 05:44:50 +01:00
getaddrinfo.h r25724: - include getaddrinfo.h after we have defined struct addrinfo 2007-12-21 05:43:29 +01:00
getifaddrs.c libreplace: fix rep_freeifaddrs to not segfault on NULL input. 2008-02-29 02:23:29 +01:00
getpass.c Fix Coverity ID 554 2008-03-18 16:40:46 +01:00
getpass.m4 libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4. 2008-02-20 12:53:20 +01:00
inet_aton.c libreplace: put inet_aton.c under LGPL instead of GPL. 2008-03-18 16:10:47 +01:00
inet_ntoa.c libreplace: remove trailing white spaces. 2008-03-18 16:30:15 +01:00
inet_ntop.c r26540: Revert my previous commit after concerns raised by Andrew. 2007-12-21 05:52:06 +01:00
inet_pton.c r26540: Revert my previous commit after concerns raised by Andrew. 2007-12-21 05:52:06 +01:00
install-sh r18033: added install-sh, needed for standalone libreplace build 2007-10-10 14:17:05 -05:00
libreplace_cc.m4 use uintptr_t instead of intptr_t where appropriate 2008-04-17 14:47:07 +02:00
libreplace_ld.m4 Fix typo. 2008-05-08 13:43:45 +02:00
libreplace_macros.m4 r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE 2007-12-21 05:45:24 +01:00
libreplace_network.m4 libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected 2008-05-22 15:01:32 +02:00
libreplace.m4 lib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS 2008-05-16 22:56:15 +02:00
Makefile.in libreplace: add extended getifaddrs test that prints out the interfaces. 2008-02-28 23:01:15 +01:00
README libreplace: always provide utime() and utimes() 2008-05-07 13:25:22 +02:00
repdir_getdents.c r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
repdir_getdirentries.c r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
repdir.m4 r19032: let the getdents replacement fail and see what the build-farm says. 2007-10-10 14:20:30 -05:00
replace.c libreplace: always provide utime() and utimes() 2008-05-07 13:25:22 +02:00
replace.h libreplace: always provide utime() and utimes() 2008-05-07 13:25:22 +02:00
samba.m4 libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba 2008-05-07 17:15:36 +02:00
snprintf.c Allocate one 0-byte in asprintf replacement when len==0 2008-03-18 13:48:21 +01:00
socket.c libreplace: Add tests for connect and gethostbyname. 2008-02-26 16:41:09 +01:00
socketpair.c libreplace: move rep_socketpair() to its own module. 2008-03-18 17:21:18 +01:00
strptime.c r23800: LGPL is now called GNU Lesser General Public License 2007-10-10 14:59:17 -05:00
strptime.m4 r22216: move strptime testsuite into it's own file 2007-10-10 14:50:38 -05:00
timegm.c r26540: Revert my previous commit after concerns raised by Andrew. 2007-12-21 05:52:06 +01: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
initgroups
memmove
strdup
setlinebuf
vsyslog
timegm
setenv
unsetenv
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
inet_ntop
inet_pton
inet_aton
strtoll
strtoull
socketpair
strptime
getaddrinfo
freeaddrinfo
getnameinfo
gai_strerror
getifaddrs
freeifaddrs
utime
utimes

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
RTLD_LAZY
HOST_NAME_MAX
UINT16_MAX
UINT32_MAX
UINT64_MAX
CHAR_BIT

Macros:
va_copy
__FUNCTION__
__FILE__
__LINE__
__LINESTR__
__location__
__STRING
__STRINGSTRING
MIN
MAX
QSORT_CAST
ZERO_STRUCT
ZERO_STRUCTP
ZERO_STRUCTPN
ZERO_ARRAY
ARRAY_SIZE
PTR_DIFF

Headers:
stdint.h
stdbool.h

Prerequisites:
memset (for bzero)
syslog (for vsyslog)
mktemp (for mkstemp and mkdtemp)