fixed formatting
[tridge/junkcode.git] / uname.c
1 #include <pwd.h>
2 #include <sys/types.h>
3 #include <sys/utsname.h>
4 #include <dlfcn.h>
5
6 int uname(struct utsname *buf)
7 {
8         static int (*uname_orig)(struct utsname *buf);
9         if (!uname_orig) {
10                 uname_orig = dlsym(-1, "uname");
11         }
12         uname_orig(buf);
13         strcpy(buf->nodename, "jeremy");
14         return 0;
15 }