2003-08-12 17:24:02 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2003-08-12
|
|
|
|
;
|
|
|
|
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
|
|
|
|
;
|
|
|
|
|
2011-04-16 12:15:49 +00:00
|
|
|
.export __sysuname, utsdata
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2011-04-16 12:15:49 +00:00
|
|
|
.import utscopy
|
2003-08-12 17:24:02 +00:00
|
|
|
|
2011-04-16 12:15:49 +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:
|
2011-04-16 12:15:49 +00:00
|
|
|
; sysname
|
|
|
|
.asciiz "cc65"
|
|
|
|
|
|
|
|
; nodename
|
|
|
|
.asciiz ""
|
|
|
|
|
|
|
|
; release
|
|
|
|
.byte ((.VERSION >> 8) & $0F) + '0'
|
|
|
|
.byte '.'
|
|
|
|
.if ((.VERSION >> 4) & $0F) > 9
|
|
|
|
.byte ((.VERSION >> 4) & $0F) / 10 + '0'
|
|
|
|
.byte ((.VERSION >> 4) & $0F) .MOD 10 + '0'
|
|
|
|
.else
|
|
|
|
.byte ((.VERSION >> 4) & $0F) + '0'
|
|
|
|
.endif
|
|
|
|
.byte $00
|
|
|
|
|
|
|
|
; version
|
|
|
|
.if (.VERSION & $0F) > 9
|
|
|
|
.byte (.VERSION & $0F) / 10 + '0'
|
|
|
|
.byte (.VERSION & $0F) .MOD 10 + '0'
|
|
|
|
.else
|
|
|
|
.byte (.VERSION & $0F) + '0'
|
|
|
|
.endif
|
|
|
|
.byte $00
|
|
|
|
|
|
|
|
; machine
|
|
|
|
.asciiz "Oric Atmos"
|