Andrew Tridgell
8d80024976
r18067: some tweaks for irix and hpux
...
this checks for -AC99 or -c99 to get C99 structure init to work. It's
based on a similar macro metze did for Samba4.
the double sinclude() is weird, but I can't see any other way to use a
common config.m4 between libreplace and all the projects that use it
2007-10-10 14:17:10 -05:00
Andrew Tridgell
71c0a0731c
r18061: this should fix the libreplace build on us4 with gcc
2007-10-10 14:17:10 -05:00
Andrew Tridgell
838de24dfe
r18060: use gmake for libreplace if available
2007-10-10 14:17:10 -05:00
Andrew Tridgell
64eff9d9d9
r18059: another cpp error
2007-10-10 14:17:10 -05:00
Andrew Tridgell
bac8d5ce28
r18058: we don't actually need __VA_ARGS__ yet (its another C99 feature which
...
I don't think we use anywhere)
2007-10-10 14:17:09 -05:00
Andrew Tridgell
e4c3b9ea2f
r18057: fixed an #ifdef
2007-10-10 14:17:09 -05:00
Andrew Tridgell
0b80ee8b3b
r18056: includes needed for O_CREAT
2007-10-10 14:17:09 -05:00
Andrew Tridgell
1c91de687f
r18055: aix needs time.h for timegm.c to compile
2007-10-10 14:17:09 -05:00
Andrew Tridgell
3917436ff7
r18054: snprintf.c needs to use replace.h to get the rep_vasprintf and related
...
macros
2007-10-10 14:17:09 -05:00
Andrew Tridgell
a0bd4f5c4a
r18053: the sig_atomic_t test needs to be in libreplace for getpass.c to
...
compile on hpux
2007-10-10 14:17:08 -05:00
Andrew Tridgell
5745ecdd82
r18052: discard_const_p() isn't part of the libreplace API, so we can't use it
...
inside libreplace.
2007-10-10 14:17:08 -05:00
Andrew Tridgell
f5fc88f0c4
r18051: - add gcc warning flags
...
- fix piles of warnings and ftruncate bug in libreplace testsuite
2007-10-10 14:17:08 -05:00
Simo Sorce
dc689b5579
r18046: Add 'z' specifier support and a configure test.
...
Jeremy should I backport this to samba3 too?
2007-10-10 14:17:08 -05:00
Jelmer Vernooij
1f431dcd0a
r18045: Update format, list "test" target as phony.
2007-10-10 14:17:07 -05:00
Andrew Tridgell
3ec1db7bd1
r18044: timegm.c needs to be in a separate file
2007-10-10 14:17:07 -05:00
Andrew Tridgell
a68b339519
r18043: added strlcpy() test
2007-10-10 14:17:07 -05:00
Andrew Tridgell
d359dea98e
r18042: testsuite needs to link to libreplace.a :-)
2007-10-10 14:17:07 -05:00
Andrew Tridgell
a2a6782ec7
r18041: started on the bodies of the testsuite functions for libreplace
2007-10-10 14:17:07 -05:00
Jelmer Vernooij
9a421425d2
r18040: Use only one strnlen implementation
2007-10-10 14:17:06 -05:00
Jelmer Vernooij
b0cfdd24be
r18039: Include header with time_t if needed.
2007-10-10 14:17:06 -05:00
Andrew Tridgell
2dda101a5f
r18038: make test fns static
2007-10-10 14:17:06 -05:00
Andrew Tridgell
34f173d8cb
r18037: added 'make installcheck' target
2007-10-10 14:17:06 -05:00
Andrew Tridgell
5feaeaf1dc
r18035: - fixed 'make clean' to remove test objects
...
- fixed 'make install' to create target dir
should be ready to go into the build farm as a standalone build now?
2007-10-10 14:17:05 -05:00
Andrew Tridgell
8c07569227
r18034: fixed build of libreplace outside of source directory
2007-10-10 14:17:05 -05:00
Andrew Tridgell
652c11e4b8
r18033: added install-sh, needed for standalone libreplace build
2007-10-10 14:17:05 -05:00
Andrew Tridgell
e83ea30b72
r18032: added a 'make distclean'
2007-10-10 14:17:05 -05:00
Jelmer Vernooij
fe7ca4b145
r18031: Merge my replace fixes:
...
* libreplace can now build stand-alone
* add stub testsuite for libreplace
* make talloc/tdb/ldb use libreplace
2007-10-10 14:17:05 -05:00
Volker Lendecke
2a7cdf52e4
r18018: Fix the build on OpenBSD. No license problem this time, I've written strnlen
...
from scratch.
Volker
2007-10-10 14:17:03 -05:00
Andrew Tridgell
5b9b9dd530
r17992: reverted r17842
...
This needs more consideration, as the patch removed the copyright
notice and license from the timegm.c code.
Volker, when you get a minute can you let me know what problem this
patch fixed so I can find a different approach?
2007-10-10 14:17:02 -05:00
Volker Lendecke
66b6456eee
r17884: Shape up the snprintf fix after Metzes comments
2007-10-10 14:16:51 -05:00
Volker Lendecke
e17371b7f9
r17849: Next round for RPC-SAMBA3-SHARESEC
2007-10-10 14:16:48 -05:00
Volker Lendecke
fd166ca0c0
r17842: After talking to Simo, apply the next attempt to resolve the strnlen
...
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.
Volker
2007-10-10 14:16:47 -05:00
Volker Lendecke
1de3459082
r17841: Revert 17840, libldb.a defines strnlen. Sorry for the noise
2007-10-10 14:16:47 -05:00
Volker Lendecke
ebf75c6196
r17840: A step towards building on Solaris which appears not to have strnlen.
...
Volker
2007-10-10 14:16:47 -05:00
Stefan Metzmacher
560a3058e5
r17790: replace uses -ldl and should directly depend on it
...
metze
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
dec228be4d
r17789: remove compiler warnings
...
metze
2007-10-10 14:16:43 -05:00
Andrew Tridgell
ed2dbc4dfe
r17763: moved setenv to ldb/replace/
2007-10-10 14:16:38 -05:00
Andrew Tridgell
ac178b5293
r17750: these have moved to ldb/replace/ now
2007-10-10 14:16:36 -05:00
Andrew Tridgell
ad539ec114
r17658: several replacement snprintf() fixes.
...
1) when running the testsuite, actually test against the system
sprintf(), not against ourselves (doh!)
2) fix the buffer termination to terminate buf2 as well
3) fix handling of %llu, and add a simple test
This fixes a bug with password expiry on solaris
2007-10-10 14:16:20 -05:00
James Peach
b3d2512ed4
r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
...
and BSD systems, but it's not everywhere.
2007-10-10 14:09:34 -05:00
Stefan Metzmacher
092e52c518
r16012: do the type checks before anythingelse
...
metze
2007-10-10 14:08:50 -05:00
Stefan Metzmacher
2bda7b63be
r16003: Tru64 doesn't have strtoll/strtoull but the size of 'long' is equal to
...
the size of 'long long' so we can use strtol/strtoul
Patch from Bjoern Jacke, thanks!
(I only added the SIZEOF_LONG == SIZEOF_LONG_LONG)
metze
2007-10-10 14:08:48 -05:00
Stefan Metzmacher
e0e4f86b30
r16001: we don't use u_intX_t any more
...
metze
2007-10-10 14:08:48 -05:00
Jelmer Vernooij
139d9369dc
r15986: Declare struct tm
2007-10-10 14:08:46 -05:00
Andrew Tridgell
acfaa98b5e
r15953: our timegm() replacement still doesn't work, so grab the one from
...
Heimdal which does work. This should fix most of the rest of the
failures on solaris
2007-10-10 14:08:44 -05:00
Andrew Tridgell
dcce824080
r15896: we're getting a lot of crashes on the build farm due to people
...
assuming that printf("%s", NULL) is OK. The problem is that it is ok
with recent versions of glibc, so the bug isn't noticed by most
developers.
This configure change ensures that we replace snprintf() if it doesn't
handle NULL strings. Then we just need to make sure we use d_printf()
instead of printf() in torture tests to display possibly NULL strings.
2007-10-10 14:08:38 -05:00
Andrew Tridgell
971cead2ad
r15882: I forgot to add in this prototype for strtok_r()
2007-10-10 14:08:37 -05:00
Andrew Tridgell
df5bd916db
r15879: strtok_r() replacement, for solaris
2007-10-10 14:08:36 -05:00
Jelmer Vernooij
3780e0580b
r15868: Add replacement macro for __STRING()
2007-10-10 14:08:34 -05:00
Jim McDonough
d28f49fc6d
r15719: Fix build on systems (AIX) that don't have vsyslog or strcasestr, with
...
--enable-developer on. syslog() and toupper() required more includes.
Someone more familiar with samba4 builds should verify this, please.
2007-10-10 14:08:09 -05:00