utsname.cpp 200 B

1234567891011121314
  1. #include <sys/utsname.h>
  2. #include <errno.h>
  3. #include <Kernel/Syscall.h>
  4. extern "C" {
  5. int uname(struct utsname* buf)
  6. {
  7. int rc = syscall(SC_uname, buf);
  8. __RETURN_WITH_ERRNO(rc, rc, -1);
  9. }
  10. }