From eb0e8fa0b1960cff4bd65ebefc798f70273b0bc9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 17 Apr 2011 16:32:15 -0400 Subject: 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. --- src/stdio/tmpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio/tmpfile.c') diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c index 18c232f7..926d6601 100644 --- a/src/stdio/tmpfile.c +++ b/src/stdio/tmpfile.c @@ -17,7 +17,7 @@ FILE *tmpfile(void) fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600); if (fd >= 0) { f = __fdopen(fd, "w+"); - syscall(SYS_unlink, s); + __syscall(SYS_unlink, s); return f; } } -- cgit v1.2.1