mirror of
https://github.com/fluencelabs/musl
synced 2025-06-14 23:41:40 +00:00
this was originally written for an early draft of the library where non-standard functions would reside in a static library separate from the shared libc.so, which would implement a pure standard. the idea was not to depend on an implementation-dependent __syscall_ret function in the main libc. but it turned out to be better to put everything in a single library for both static and dynamic linking uses, and thus the (incomplete) remnants of this feature were just enlarging the source and binary.
9 lines
121 B
C
9 lines
121 B
C
#include "syscall.h"
|
|
|
|
struct sysinfo;
|
|
|
|
int sysinfo(struct sysinfo *info)
|
|
{
|
|
return syscall1(__NR_sysinfo, (long)info);
|
|
}
|