From 8bc9f321ec2d71092ff0536e8428a0c2f89164ca Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 12 Aug 2003 14:24:34 +0000 Subject: [PATCH] New uname function git-svn-id: svn://svn.cc65.org/cc65/trunk@2278 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/Makefile | 1 + libsrc/common/uname.s | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 libsrc/common/uname.s diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index bd373b158..f4cee0cc1 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -144,6 +144,7 @@ S_OBJS = _cwd.o \ time.o \ tolower.o \ toupper.o \ + uname.o \ unlink.o \ vfprintf.o \ vprintf.o \ diff --git a/libsrc/common/uname.s b/libsrc/common/uname.s new file mode 100644 index 000000000..d6fb484dd --- /dev/null +++ b/libsrc/common/uname.s @@ -0,0 +1,22 @@ +; +; Ullrich von Bassewitz, 2003-08-12 +; +; int __fastcall__ uname (struct utsname* buf); +; + + .export _uname + + .import __sysuname + .import oserrcheck + + +;-------------------------------------------------------------------------- + +.proc _uname + + jsr __sysuname ; Call the machine specific function + jmp oserrcheck ; Store into _oserror, set errno, return 0/-1 + +.endproc + +