Jeremy Allison
46c12de07f
r16245: Cope with string being zero len. Klocwork bug #410 . Jeremy.
2007-10-15 13:20:40 +02:00
jmcd
0cd1ed0424
Volker's fix for bug #668 . Change the \n after the password prompt to go to tty instead of stdout.
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
d4ae42b1b2
reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
...
metze
2007-10-15 13:20:40 +02:00
Stefan Metzmacher
3e8f43e3cf
reformat getpass() replacement code
...
metze
2007-10-15 13:20:39 +02:00
Stefan Metzmacher
0177158d85
missing stuff from samba4's libreplace
...
metze
2007-10-15 13:19:28 +02:00
metze
ec8e3f7f92
don't imply "system/network.h" within replace.h,
...
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-15 13:19:28 +02:00
Jeremy Allison
d39ce8e37e
Merge from metze of libreplace header changes
2007-10-10 17:56:19 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
2007-10-10 15:34:30 -05:00
Jeremy Allison
3824a10fbc
r25587: Fix getaddrinfo detection code. From Timur.
...
Jeremy.
2007-10-10 12:31:16 -05:00
Jeremy Allison
3cd783e3a5
r25560: Merge from Jelmer. "Define HAVE_* for other gai functions to prevent problems with libroken."
...
Jeremy.
2007-10-10 12:31:13 -05:00
Jelmer Vernooij
8c1669997c
r25557: merge libreplace fixes from samba4
2007-10-10 12:31:13 -05:00
Jeremy Allison
4cf17df5ca
r25507: Fix definition of struct sockaddr_storage if
...
struct sockaddr_in6 is defined.
Jeremy.
2007-10-10 12:31:11 -05:00
Jeremy Allison
760d993340
r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfo
...
under the 2 clause *BSD license for future use in IPv6 code. Original
code was from PostgreSQL and I've maintained their license even though
I've rewritten large parts of it (I probably should donate this back
to them).
Jeremy.
2007-10-10 12:31:10 -05:00
Jeremy Allison
d980ee5040
r25495: Fixup definitions for missing sockaddr_storage.
...
Jeremy.
2007-10-10 12:31:10 -05:00
Jeremy Allison
2cab825634
r25487: Try fix the build - fix socklen_t and sa_family_t.
...
Jeremy.
2007-10-10 12:31:08 -05:00
Jeremy Allison
f1b8c5de0a
r25474: Try and fix the build on Mac OS X 10.4.9.
...
Shuffle sa_family_t around.
Jeremy.
2007-10-10 12:31:06 -05:00
Jeremy Allison
327875182c
r25472: Fix the interfaces code to detect IPv6 interfaces, using the
...
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
2007-10-10 12:31:06 -05:00
Jeremy Allison
1f71990544
r25455: Ensure we have inet_ntop and inet_pton available in lib/replace.
...
Jeremy.
2007-10-10 12:31:06 -05:00
Stefan Metzmacher
862046028c
r25252: move macro defines to the end of replace.h
...
and move the include location sys/param.h
before we redefine missing macros
metze
2007-10-10 12:30:55 -05:00
Stefan Metzmacher
828d2ca061
r25232: sync lib/replace with SAMBA_4_0
...
metze
2007-10-10 12:30:52 -05:00
Volker Lendecke
d93b5d50a0
r24354: Remove offsetof macro
...
Samba4 seems not to suffer from it
2007-10-10 12:29:35 -05:00
Jelmer Vernooij
4a5fa715a6
r24341: Make libreplace provide offsetof.
2007-10-10 12:29:31 -05:00
Volker Lendecke
ed84540bb2
r24054: Fix some warnings
2007-10-10 12:29:00 -05:00
Andrew Tridgell
87c91e4362
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
2007-10-10 12:28:27 -05:00
Andrew Tridgell
727a6cf2cb
r23800: LGPL is now called GNU Lesser General Public License
...
not GNU Library General Public License
2007-10-10 12:28:26 -05:00
Andrew Tridgell
43cd589773
r23799: updated old Franklin Street FSF addresses to new URL
2007-10-10 12:28:26 -05:00
Andrew Tridgell
c676a97114
r23798: updated old Temple Place FSF addresses to new URL
2007-10-10 12:28:26 -05:00
Andrew Tridgell
e87bb12093
r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING file
2007-10-10 12:28:26 -05:00
Andrew Tridgell
b6cbac3db3
r23791: found some more v2->v3 conversions
2007-10-10 12:28:25 -05:00
Andrew Tridgell
1b78cace50
r23790: LGPLv3+ conversion for our LGPLv2+ library code
2007-10-10 12:28:25 -05:00
Jeremy Allison
c2f7ab1c17
r23780: Find and fix more GPL2 -> GPL3.
...
Jeremy.
2007-10-10 12:28:21 -05:00
Michael Adam
5f5b931492
r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
...
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.
But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.
Michael
2007-10-10 12:23:10 -05:00
Stefan Metzmacher
1716613cc7
r23335: as not all source files include replace.h/config.h
...
before unistd.h we need to pass -D_FILE_OFFSET_BITS=64
together with -Dpread=pread64 -Dpwrite=pwrite64
metze
2007-10-10 12:23:07 -05:00
Stefan Metzmacher
20965d800f
r23309: sync lib/replace with SAMBA_4_0
...
metze
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
5e9b84326b
r23307: move readahead stuff out of libreplace and make it samba3 specific
...
as we can't replace this function in libreplace and we do
the some stuff for other function in the same way.
metze
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
85a07e24f0
r23305: merge from samba4:
...
fix large file support on HP-UX 11.00 and 11.11
metze
2007-10-10 12:23:04 -05:00
Michael Adam
18a7e739ea
r23109: Redo the change from r22772 I accidentially undid in r23108.
...
Michael
2007-10-10 12:22:47 -05:00
Michael Adam
5a06726e68
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
...
Fixing build of ldb for instance on some systems without dlfcn.h.
2007-10-10 12:22:46 -05:00
Michael Adam
2c72980a80
r22931: Fix logic in detection of the need to replace dlopen and friends.
...
Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen
was found in libdl but header dlfcn.h was not appropriate.
Michael
2007-10-10 12:22:10 -05:00
Derrell Lipman
7d05fa8b32
r22772: - Still working on the fact that readahead() is not declared (on at least one
...
OS) but is available for linking. Instead of running configure tests with
-Werror-implicit-function-declaration in developer mode (which may lead to
different library functions being used in developer mode than when not in
developer mode), add tests for whether readahead is declared. If not,
provide a replacement declaration in lib/replace.
2007-10-10 12:21:56 -05:00
Stefan Metzmacher
cb785d9bed
r22659: merge from SAMBA_4_0:
...
- add AC_GNU_SOURCE macro for systems which don't have it
(sles8)
- fix compiler warning on some systems
metze
2007-10-10 12:19:53 -05:00
James Peach
e718606295
r22394: Remove test directory once we are finished.
2007-10-10 12:19:31 -05:00
Stefan Metzmacher
8a7d2e633b
r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
...
metze
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
737b445007
r22280: merge from samba4:
...
add a lot more detailed strtoll() and strtoull() tests
metze
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
5ca1854644
r22274: merge from samba4:
...
- provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro
metze
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
3f87165771
r22271: merge from samba4:
...
provide __location__ in replace.h
and see how the build-farm likes this simpler version
metze
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
66b0a6cc51
r22264: merge from samba4:
...
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.
metze
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
9865d3165d
r22254: merge from samba4:
...
- make the strtoll tests more verbose
- add initial strtoull tests
metze
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
42ccfaf5e5
r22252: merge from samba4:
...
add prototype of setenv
metze
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
17088fd644
r22247: merge from samba4:
...
only test strtoll once
metze
2007-10-10 12:19:22 -05:00