12 Commits
Author SHA1 Message Date
Michael ForneyandRich Felker 5c26c890ed mallocng: prevent stray ';' at top-level
The LOCK_OBJ_DEF macro is used with a trailing semicolon. However,
since the macro definition ends with the closing brace of a function
definition, the ISO C grammar does not allow an extra semicolon.

To fix this, swap the order of the two definitions, and drop the
semicolon from the __malloc_lock declaration.
2026-03-10 22:48:21 -04:00
Michael ForneyandRich Felker a23cf8f9c5 riscv mcontext_t/sigcontext: use __aligned__ instead of aligned
aligned may be defined by the application for its own use before
bits/signal.h is included.
2024-05-06 10:59:12 -04:00
Michael ForneyandRich Felker d8cb888db9 remove return with expression in void function 2021-04-27 19:31:48 -04:00
Michael ForneyandRich 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 ForneyandRich Felker 7e771e62e7 shadow: Implement fgetspent 2013-11-24 21:04:53 -05:00
Michael ForneyandRich Felker b3646b30d6 shadow: Move spent parsing to internal function 2013-11-24 20:57:10 -05:00
Michael ForneyandRich 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 ForneyandRich Felker 22f29bfebe shadow: Implement putspent 2013-11-24 09:36:28 -05:00
Michael ForneyandRich Felker 4f6658b969 Fix dn_expand pointer following 2013-11-23 16:23:09 -05:00
Michael ForneyandRich Felker 3fd1acbfee putgrent: Add missing newline 2013-11-23 16:20:56 -05:00
Michael ForneyandRich 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 ForneyandRich Felker b300d5b7bd strcmp: Remove unnecessary check for *r
If *l == *r && *l, then by transitivity, *r.
2013-11-23 16:17:38 -05:00