summaryrefslogtreecommitdiff
path: root/lib/replace/README
AgeCommit message (Collapse)AuthorFilesLines
2025-11-11lib:replace: Remove memset_s()Andreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Nov 11 14:51:45 UTC 2025 on atb-devel-224
2025-11-11lib:replace: Implement memset_explicit()Andreas Schneider1-0/+1
The memset_s() implementation is a bit obscure, as it requires a constraint handler to be set up. You don't really find any implmentations out there. With C23 memset_explicit() was added and this has been implemented for glibc 2.43 and also in FreeBSD. See https://sourceware.org/bugzilla/show_bug.cgi?id=32378 See https://reviews.freebsd.org/D47286 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2025-11-11lib:replace: Remove trailing spaces in READMEAndreas Schneider1-4/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2025-01-02remove usage of bzeroMichael Tokarev1-2/+0
bzero() function has been deprecated for a long time. In samba it is replaced with memset(). But samba also provides common memory-zeroing macros, like ZERO_STRUCT(). In all places where bzero() is used, it actually meant to zero a structure or an array. So replace these bzero() calls with ZERO_STRUCT() or ZERO_ARRAY() as appropriate, and remove bzero() replacement and testing entirely. While at it, also stop checking for presence of memset() - this function is standard for a very long time, and the only conditional where HAVE_MEMSET were used, was to provide replacement for bzero() - in all other places memset() is used unconditionally. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
2018-12-20replace: Add memset_s to replacement functionsAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2012-12-03replace: Remove deprecated getpass() support.Andreas Schneider1-1/+0
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-09-24replace: Support setproctitle().Jelmer Vernooij1-0/+1
This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
2012-04-09Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with ↵Jeremy Allison1-0/+2
platforms that don't have these. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 9 21:40:42 CEST 2012 on sn-devel-104
2012-04-09libreplace: We have a poll replacement based on selectVolker Lendecke1-0/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 9 19:39:51 CEST 2012 on sn-devel-104
2010-08-31libreplace: add clock_gettime replacement function for systems that don't ↵Björn Jacke1-0/+1
have it
2010-02-02Change uint_t to unsigned int in lib/replaceMatt Kraai1-1/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-11-01Merge branch 'master' of /home/jelmer/samba3Jelmer Vernooij1-0/+6
Conflicts: lib/replace/README lib/replace/libreplace.m4 lib/replace/replace.c source3/include/proto.h source3/lib/system.c
2008-11-01Use dup2() replacement from libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_realpath() to libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_lchown() to libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_symlink() to libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_readlink() to libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_link to libreplace.Jelmer Vernooij1-0/+1
2008-11-01Move sys_chown() to rep_chown().Jelmer Vernooij1-0/+1
2008-10-27Remove duplicate check for volatile, move all utime-checks toJelmer Vernooij1-0/+4
libreplace.
2008-09-17Move common libraries from root to lib/.Jelmer Vernooij1-0/+113