2003-08-12 17:24:02 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2003-08-12
|
|
|
|
;
|
|
|
|
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.import utscopy
|
|
|
|
.export __sysuname, utsdata
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
__sysuname = utscopy
|
2003-08-12 17:24:02 +00:00
|
|
|
|
|
|
|
;--------------------------------------------------------------------------
|
|
|
|
; Data. We define a fixed utsname struct here and just copy it.
|
|
|
|
|
|
|
|
.rodata
|
|
|
|
|
|
|
|
utsdata:
|
2013-05-09 11:56:54 +00:00
|
|
|
; sysname
|
|
|
|
.asciiz "cc65"
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
; nodename
|
|
|
|
.asciiz ""
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
; release
|
|
|
|
.byte ((.VERSION >> 8) & $0F) + '0'
|
|
|
|
.byte '.'
|
|
|
|
.byte ((.VERSION >> 4) & $0F) + '0'
|
|
|
|
.byte $00
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
; version
|
|
|
|
.byte (.VERSION & $0F) + '0'
|
|
|
|
.byte $00
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
; machine
|
|
|
|
.asciiz "GEOS"
|
2003-08-12 17:24:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|