Michael Forney and Rich Felker
a56ec7e8e2
unconditonally define alloca as __builtin_alloca
...
This enables alternative compilers, which may not define __GNUC__,
to implement alloca, which is still fairly widely used.
This is similar to how stdarg.h already works in musl; compilers must
implement __builtin_va_arg, there is no fallback definition.
2020-01-01 15:07:11 -05:00
Michael Forney and Rich Felker
7e771e62e7
shadow: Implement fgetspent
2013-11-24 21:04:53 -05:00
Michael Forney and Rich Felker
b3646b30d6
shadow: Move spent parsing to internal function
2013-11-24 20:57:10 -05:00
Michael Forney and Rich Felker
642936d6dd
Fix dn_comp prototype and add stub
...
This function is used by ping6 from iputils.
2013-11-24 09:39:30 -05:00
Michael Forney and Rich Felker
22f29bfebe
shadow: Implement putspent
2013-11-24 09:36:28 -05:00
Michael Forney and Rich Felker
4f6658b969
Fix dn_expand pointer following
2013-11-23 16:23:09 -05:00
Michael Forney and Rich Felker
3fd1acbfee
putgrent: Add missing newline
2013-11-23 16:20:56 -05:00
Michael Forney and Rich Felker
a3b98a11a9
putgrent: Stop writing output on first failure
...
This way, if an fprintf fails, we get an incomplete group entry rather
than a corrupted one.
2013-11-23 16:20:51 -05:00
Michael Forney and Rich Felker
b300d5b7bd
strcmp: Remove unnecessary check for *r
...
If *l == *r && *l, then by transitivity, *r.
2013-11-23 16:17:38 -05:00