From: cuz Date: Tue, 12 Aug 2003 14:24:34 +0000 (+0000) Subject: New uname function X-Git-Tag: V2.12.0~1448 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8bc9f321ec2d71092ff0536e8428a0c2f89164ca;p=cc65 New uname function git-svn-id: svn://svn.cc65.org/cc65/trunk@2278 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 + +