Add shared libraries TDM
This commit is contained in:
parent
455d9dcd79
commit
c027416fd5
3 changed files with 78 additions and 0 deletions
14
content/progsys/TDM_9-les_librairies/src/libuname.c
Normal file
14
content/progsys/TDM_9-les_librairies/src/libuname.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <sys/utsname.h>
|
||||
#include <string.h>
|
||||
|
||||
int uname(struct utsname *buf)
|
||||
{
|
||||
|
||||
strcpy(buf->sysname,"Windows GNU/LINUX");
|
||||
strcpy(buf->nodename, "");
|
||||
strcpy(buf->release, "10.0.0.1");
|
||||
strcpy(buf->version, "10.2");
|
||||
strcpy(buf->machine, "Shittycorp processors inc.");
|
||||
|
||||
return 1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue