debloat: use __syscall instead of syscall where possible

don't waste time (and significant code size due to function call
overhead!) setting errno when the result of a syscall does not matter
or when it can't fail.
This commit is contained in:
Rich Felker 2011-04-17 16:32:15 -04:00
commit eb0e8fa0b1
7 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ FILE *fopen(const char *filename, const char *mode)
f = __fdopen(fd, mode);
if (f) return f;
syscall(SYS_close, fd);
__syscall(SYS_close, fd);
return 0;
}