this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added __linux_uname()

+41
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 57 57 stat/common.c 58 58 dirent/getdirentries.c 59 59 time/gettimeofday.c 60 + ext/uname.c 60 61 ext/epoll_create.c 61 62 ext/epoll_create1.c 62 63 ext/epoll_ctl.c
+19
src/kernel/emulation/linux/ext/sys/utsname.h
··· 1 + #ifndef EXT_UNAME_H 2 + #define EXT_UNAME_H 3 + 4 + #define LINUX_UTSNAME_LENGTH 65 5 + 6 + struct linux_utsname 7 + { 8 + char sysname[LINUX_UTSNAME_LENGTH]; 9 + char nodename[LINUX_UTSNAME_LENGTH]; 10 + char release[LINUX_UTSNAME_LENGTH]; 11 + char version[LINUX_UTSNAME_LENGTH]; 12 + char machine[LINUX_UTSNAME_LENGTH]; 13 + char domainname[LINUX_UTSNAME_LENGTH]; 14 + }; 15 + 16 + int __linux_uname(struct linux_utsname* p); 17 + 18 + #endif 19 +
+21
src/kernel/emulation/linux/ext/uname.c
··· 1 + #include "sys/utsname.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <asm/unistd.h> 5 + 6 + extern void cerror(int e); 7 + 8 + int __linux_uname(struct linux_utsname* p) 9 + { 10 + int rv; 11 + 12 + rv = LINUX_SYSCALL(__NR_uname, p); 13 + if (rv < 0) 14 + { 15 + cerror(errno_linux_to_bsd(rv)); 16 + return -1; 17 + } 18 + 19 + return rv; 20 + } 21 +