Simo Sorce
1fbc185725
replace: Fix use of mktemp
...
mktemp always returns the template, so checking for NULL doesn't cactch any
error. Errors are reported by turning the template into an empty string.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Apr 26 16:14:24 CEST 2012 on sn-devel-104
2012-04-26 16:14:24 +02:00
Jelmer Vernooij
3c9b32b5eb
replace: Avoid DEBUG(), which is not available in libreplace.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Mar 25 00:13:59 CET 2012 on sn-devel-104
2012-03-25 00:13:59 +01:00
Jelmer Vernooij
49eca290d3
libreplace: Add usleep implementation.
2012-03-24 22:41:05 +01:00
Jelmer Vernooij
456abea894
replace: Work around socket wrapper.
...
It's fine to ignore socket wrapper here, as it doesn't deal with unix domain sockets.
2012-03-24 17:05:29 +01:00
Jelmer Vernooij
10dd5f186f
replace: Add system/network.h for ucred struct.
2012-03-24 16:50:37 +01:00
Jelmer Vernooij
71d41a015a
libreplace: Add getpeereid implementation.
2012-03-24 16:00:36 +01:00
Jelmer Vernooij
d4c4cb06c5
replace: Move memalign() from lib/util/system.c to libreplace.
2012-03-24 14:43:21 +01:00
Stefan Metzmacher
d65896cc3c
lib/replace: fix rep_strtoull() prototype
...
metze
2010-10-23 08:49:28 +02:00
Matthieu Patou
2d0ac59fcc
replace: use a wrapper around strtoll if it didn't behave as expected
2010-10-22 01:00:53 +04:00
Björn Jacke
e2de1b8e71
libreplace: clock_gettime sets errno
2010-09-10 23:10:26 +02:00
Björn Jacke
3df1037a74
libreplace: add clock_gettime replacement function for systems that don't have it
2010-08-31 09:07:29 +02:00
Andrew Tridgell
686221eae2
s4-waf: use the libreplace strerror_r if needed
2010-03-29 21:34:29 +11:00
Andrew Tridgell
c81d2ae3c9
libreplace: strerror_r() is needed by heimdal on solaris8
2010-03-26 16:50:48 +11:00
Andrew Tridgell
a599319d0a
libreplace: fixed declaration of dprintf() on FreeBSD
2010-03-24 07:11:38 +01:00
Andrew Tridgell
f3c738f819
replace: added get_current_dir_name()
2010-03-05 23:07:32 +11:00
Brad Hards
198b17abf0
Spelling fixes for libreplace.
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-22 21:45:34 +01:00
Andrew Tridgell
d6fb64c512
libreplace: added replacements for dprintf() and vdprintf()
...
these are very useful for writing files with formatted writes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-11 21:04:13 +11:00
Volker Lendecke
a771c184b1
libreplace: Fix a C++ warning
2010-01-23 14:35:38 +01:00
Andrew Tridgell
fef3c910da
libreplace: some systems don't have memmem()
...
added rep_memmem() and a testsuite
2010-01-02 10:08:12 +11:00
Jelmer Vernooij
bb0f430064
Error out at runtime when seteuid/setresuid or setegid/setresgid are not
...
available. This means it's possible to compile libreplace when these
functions are not available and use it, as long as this particular
function is not used.
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
20e1ba1c09
Only define waitpid replacement if wait4 is available. (It isn't on
...
Windows.)
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
e5233ccf9e
Cope with the fact that only _mkdir() exists on Windows and that it
...
doesn't take a mode argument.
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
31fa08dcbd
Merge branch 'master' of /home/jelmer/samba3
...
Conflicts:
lib/replace/README
lib/replace/libreplace.m4
lib/replace/replace.c
source3/include/proto.h
source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2
Use dup2() replacement from libreplace.
2008-11-01 03:58:14 +01:00
Jelmer Vernooij
6a2caa34b2
Remove sys_chroot() - libreplace already provides an alternative.
2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c
Move sys_realpath() to libreplace.
2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac
Move sys_lchown() to libreplace.
2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17
Move sys_symlink() to libreplace.
2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf
Move sys_readlink() to libreplace.
2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722
Move sys_link to libreplace.
2008-11-01 03:30:47 +01:00
Jelmer Vernooij
161d70a57a
Move sys_chown() to rep_chown().
2008-11-01 03:27:45 +01:00
Jelmer Vernooij
94855cd692
Move common libraries from root to lib/.
2008-09-17 14:11:12 +02:00