1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

13 Commits

Author SHA1 Message Date
Michael Adam
03a980d8f6 libreplace: replace.c does not need system/network.h anymore.
Michael
(cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328)
2008-03-19 22:40:45 +01:00
Michael Adam
6c53753246 libreplace: move rep_socketpair() to its own module.
Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
(cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
2008-03-19 22:40:45 +01:00
Michael Adam
edcf2712bc libreplace: replace inet_ntoa() when it is missing
...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028)
2008-03-18 16:44:59 +01:00
Volker Lendecke
8bcd2df841 Fix bug 5055 2007-11-26 15:28:13 +01:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
1b78cace50 r23790: LGPLv3+ conversion for our LGPLv2+ library code 2007-10-10 12:28:25 -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
20965d800f r23309: sync lib/replace with SAMBA_4_0
metze
2007-10-10 12:23:05 -05:00
Stefan Metzmacher
057c1c04d0 r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements

metze
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
7f61b3f009 r22151: remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them.

should fix bug #4496

metze
2007-10-10 12:19:17 -05:00
Stefan Metzmacher
352ee73030 r20817: sync lib/replace with samba4
metze
2007-10-10 12:17:09 -05:00
Stefan Metzmacher
8899bc45f9 r18998: - make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
2007-10-10 12:14:55 -05:00
Stefan Metzmacher
596cbe73dd r18644: bring in libreplace in lib/replace
metze
2007-10-10 11:52:03 -05:00