Added several "do nothing" files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3225
b7a2c559-68d2-44c3-8de9-
860c34a00d81
; ------------------------------------------------------------------------
; Actual code
- .code
+ .segment "STARTUP"
; set up system
--- /dev/null
+;
+; Ullrich von Bassewitz, 2004-10-08
+;
+; char* getenv (const char* name);
+;
+
+ .export _getenv
+ .import return0
+
+_getenv = return0 ; "not found"
+
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 2004-10-08
+;
+; Setup arguments for main
+;
+
+
+ .constructor initmainargs, 24
+ .import __argc, __argv
+
+
+;---------------------------------------------------------------------------
+; Setup arguments for main
+
+.proc initmainargs
+
+ rts
+
+.endproc
+
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 2004-10-08
+;
+; unsigned char __fastcall__ _sysuname (struct utsname* buf);
+;
+
+ .export __sysuname, utsdata
+
+ .import utscopy
+
+ __sysuname = utscopy
+
+;--------------------------------------------------------------------------
+; Data. We define a fixed utsname struct here and just copy it.
+
+.rodata
+
+utsdata:
+ ; sysname
+ .asciiz "cc65"
+
+ ; nodename
+ .asciiz ""
+
+ ; release
+ .byte ((.VERSION >> 8) & $0F) + '0'
+ .byte '.'
+ .byte ((.VERSION >> 4) & $0F) + '0'
+ .byte $00
+
+ ; version
+ .byte (.VERSION & $0F) + '0'
+ .byte $00
+
+ ; machine
+ .asciiz "LYNX"
+
+
+