aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
AgeCommit message (Collapse)Author
2013-02-24Comment updates and a policy statement about avoiding #define GNU_dammitRob Landley
2013-02-04More support for old (~2008) build environments, move the #ifdef checks for ↵Rob Landley
symbols out of specific library version checks (shouldn't hurt anything), remove obsolete debug macro.
2013-01-15Work around more random uClibc-specific breakage.Rob Landley
2012-12-01Fix ancient glibc workaround to force fstatat64Rob Landley
2012-11-26The headers of uClibc and older glibc got unhappy with O_DIRECTORY and some ↵Rob Landley
other stuff. Fix it up in portability.h.
2012-11-16More touch cleanup to use generic infrastructure: use getdate() from libc, ↵Rob Landley
use flag macros, option parsing can collect argument strings in global block, use existing perror_* macros.
2012-11-13Older versions of glibc predated posix-2008. They still provide most of what ↵0.4.1Rob Landley
we need, but require a boot to the headers to get them to admit it. Note that uClibc lies and claims to be glibc so we have to specifically exclude it here.
2012-06-16More header fiddling: crypt.h is silly, SUSv4 requires crypt() to be ↵Rob Landley
prototyped in unistd.h. The fact glibc refuses to do so without a wacky #define is a glibc bug, treat it as such.
2012-03-19Remove "feature test macros", replace non-portable fdprintf() with standard ↵Rob Landley
fprintf().
2012-03-16Implement Apple and Android versions of getline(), getdelim(), and clearenv().Georgi Chorbadzhiyski
2012-03-07Consolidate headers.Rob Landley
2010-01-06Shut up even MORE gcc/glibc spurious warnings.Rob Landley
2007-11-15Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.Rob Landley
2007-02-13MacOS X has a defective sed with no -r.Rob Landley
2007-02-03Teach build to build only the toys/*.c selected in .config, and teachRob Landley
CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never actually used uninitialized because gcc is stupid" warnings.
2007-01-18Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, whichRob Landley
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART) Straighten out count and len (I generally consistently use "count" for the current progress and "len" for the total, but this time I got them backwards for some reason and don't want to confuse myself in future.)
2007-01-14Add start of mke2fs/gene2fs, and some other stuff I've been working on.Rob Landley