Age | Commit message (Collapse) | Author | Files | Lines |
|
I'd like to also provide futimes(), but it seems
that some systems doesn't support a it at kernel level.
If someone knows how to write a portable replacement
for futimes() please tell me...
metze
(This used to be commit a9604fe4a323dccb537cf02ea7594437b4995803)
|
|
(This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
|
|
Michael
(This used to be commit 2d3c2f34f33338ff422047dae9cc262522689328)
|
|
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
(This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
|
|
...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
(This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)
|
|
(lib/replace part of 8bcd2df841bae63e7d58c35d4728b7d853471697 metze)
(This used to be commit 8db9e196506f530c780d93e16da590566d16a407)
|
|
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
|
|
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
|
|
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
(This used to be commit e4955c729fdf0bd299df4dadc4b33e09fe4d336e)
|
|
1) you must not free the memory, as it is possible the memory did not
come from malloc (try it under valgrind to test)
2) the old code didn't cope with duplicate environment variables
I hope this will fix some of the build farm errors on irix, and maybe solaris
(This used to be commit ec6900171d066e927f004b621fb39cc7b8dcfd90)
|
|
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
(This used to be commit dd83a8dad8ad89a1485598fa6e11c9128d04e6d7)
|
|
inspired by:
http://cvs.linux-ha.org/viewcvs/viewcvs.cgi/linux-ha/replace/unsetenv.c?rev=1.4&view=auto
metze
(This used to be commit 8787525e518805f8445a376dc4964921598cb2e0)
|
|
metze
(This used to be commit d6de7f2cda70cfd55f0f7fbb9f3b93a5a58c6f51)
|
|
(This used to be commit b79303f25180c777d9d09b2cdf852bf0a5eda70d)
|
|
(This used to be commit 448a3ecc0184bfa063db1eb3ae6dc16b8b792792)
|
|
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'
metze
(This used to be commit cdcd4232d2f383f4d2f9ca1d049b7b3cc7b58359)
|
|
places to avoid a #ifdef
(This used to be commit 095b8057740a4bb207e24e4c63a2dcb53521a72f)
|
|
- replacing rename() is pointless - all platforms have it (and the
#define of rename breaks some code)
- use system/locale.h in snprintf.c
- fix passwd.h for initgroups
- stdlib is in replace.h, not needed elsewhere
- fix the initgroups replacement
- fix mapping of dl functions to rep_*
(This used to be commit 57cd0ca176387d6a3acabf9fedeef4f2a3a3dad7)
|
|
(This used to be commit 41419e54d5e79d08a71cd9c94585be3448b1e9fc)
|
|
(This used to be commit f46ab799b41c0ec520739ec11979771316781ce4)
|
|
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e06290aba789e2f3affc769fc5159a21)
|
|
(This used to be commit 71c0a0731c52458105974e9ad727b7ba403fd992)
|
|
(This used to be commit 0b80ee8b3b17d4914010c9a54d5c2dcb69738990)
|
|
inside libreplace.
(This used to be commit 5745ecdd826c387137a742f32ee3c8f60191a6a7)
|
|
(This used to be commit 3ec1db7bd12cdc233c37f261073a33fc48ecd7ce)
|
|
(This used to be commit 9a421425d242f6e0385414121c114c7c62ea1aaa)
|
|
* libreplace can now build stand-alone
* add stub testsuite for libreplace
* make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b1454e01a33ed0d53791ebffdd349298b4)
|
|
strnlen
from scratch.
Volker
(This used to be commit 2a7cdf52e4113db30a7a8b180c68cec736f6c186)
|
|
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?
(This used to be commit 5b9b9dd5303300778bb9e6d0479ab03fdd70c67d)
|
|
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.
Volker
(This used to be commit fd166ca0c079d83081bc1d631fe40b965c7873d4)
|
|
(This used to be commit 1de34590821b0c076bf8d48cbdae97f33275647e)
|
|
Volker
(This used to be commit ebf75c6196afdd4bfa4f11bb1d45d385ab0babed)
|
|
(This used to be commit ed2dbc4dfe4556831c809dab24e3833cd2018138)
|
|
(This used to be commit ac178b52935d7629f8583092e833b74093ca70e1)
|
|
and BSD systems, but it's not everywhere.
(This used to be commit b3d2512ed4fc8c378607bcc2dc241a1f77ab7197)
|
|
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
(This used to be commit 2bda7b63be1257210601dac3e2b1070f48d765b4)
|
|
Heimdal which does work. This should fix most of the rest of the
failures on solaris
(This used to be commit acfaa98b5ea686feb81350baf09b3f4480f96edc)
|
|
(This used to be commit df5bd916db3cfbd6c145177fd8992261f03a5cbc)
|
|
--enable-developer on. syslog() and toupper() required more includes.
Someone more familiar with samba4 builds should verify this, please.
(This used to be commit d28f49fc6d3b7ee1b7077e2d35b2aee54d2d1469)
|
|
Split of system/locale.h header from system/iconv.h
Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba)
|
|
headers that formerly included it for us.
Paul
(This used to be commit a4d706cf26382820b58940458f8873a4f8f79612)
|
|
(This used to be commit c83e4b166534278c335254aa8890a50635bbf1b7)
|
|
(This used to be commit 407b5e615f80ab2f7a3d10bafd9284de7f02fe60)
|
|
(This used to be commit 4483d275e12006e5acc72ae143c0a01da01bd00d)
|
|
lib/replace/
the old timegm() replacement was also broken (it returned the wrong value)
(This used to be commit 342489a1d4d5cc4b16cf2e5ff7e671326f0cb3d5)
|
|
- Add framework for fallback generating code
- Move pread / pwrite replacement functions to libreplace
- Support pidl builds correctly
- Support asn1 builds correctly
- Move OS-specific checks to lib/replace/SConscript
(This used to be commit fbbfad0a1f7dedbf48e835a864f8285f283d72f3)
|
|
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.
Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
(This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
|
|
(This used to be commit 57e6bd61395e82064c72510dcc326b11b7bdf7fd)
|
|
McCall, but takes a slightly different approach that I hope will be
more generic
(This used to be commit e8260a81cf99be2ccae64135ca0572c8a6ae62ad)
|
|
(This used to be commit eb3b3c8b407b2208291385539c3379f0420a448e)
|