aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
AgeCommit message (Collapse)Author
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