Clean old .source directive out of asm code

This commit is contained in:
Justine Tunney 2022-03-18 12:43:21 -07:00
parent b149a9bcc4
commit 6c2fd9ecc6
269 changed files with 59 additions and 303 deletions

View file

@ -16,6 +16,7 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/bits/safemacros.internal.h"
#include "libc/fmt/fmt.h"
/**
@ -23,7 +24,11 @@
* @see strerror_r()
*/
noasan char *strerror(int err) {
_Alignas(1) static char buf[512];
strerror_r(err, buf, sizeof(buf));
return buf;
if (IsTiny()) {
return firstnonnull(strerror_short(err), "EUNKNOWN");
} else {
_Alignas(1) static char buf[512];
strerror_r(err, buf, sizeof(buf));
return buf;
}
}