home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Il CD di internet
/
CD.iso
/
SOURCE
/
D
/
LIBC
/
LIBC-4.6
/
LIBC-4
/
libc-linux
/
compat
/
m68k
/
__old__uname.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-11-19
|
349 b
|
20 lines
#include <errno.h>
#include <linux/utsname.h>
#include <sys/syscall.h>
int
__old__uname (struct old_utsname *buf)
{
register int res asm ("d0") = SYS_olduname;
__asm__("movel %2,d1\n\t"
"trap #0"
:"=g" (res)
:"0" (SYS_olduname),"g" (buf)
: "d0", "d1");
if (res>=0)
return res;
errno = -res;
return -1;
}