remove extra spaces
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
; */
|
||||
|
||||
___directerrno:
|
||||
jsr ___seterrno ; Set errno (returns with .A = 0)
|
||||
sta ___oserror ; Clear ___oserror
|
||||
jsr ___seterrno ; Set errno (returns with .A = 0)
|
||||
sta ___oserror ; Clear ___oserror
|
||||
.if (.cpu .bitand CPU_ISET_65SC02)
|
||||
dec a
|
||||
.else
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
invmode:
|
||||
lda #EINVAL
|
||||
jsr ___seterrno ; Set __errno, returns zero in A
|
||||
jsr ___seterrno ; Set __errno, returns zero in A
|
||||
tax ; a/x = 0
|
||||
jmp incsp4
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
; */
|
||||
|
||||
___mappederrno:
|
||||
sta ___oserror ; Store the error code
|
||||
sta ___oserror ; Store the error code
|
||||
tax ; Did we have an error?
|
||||
bze ok ; Branch if no
|
||||
jsr ___osmaperrno ; Map OS error into errno code
|
||||
jsr ___seterrno ; Save in errno (returns with .A = 0)
|
||||
jsr ___osmaperrno ; Map OS error into errno code
|
||||
jsr ___seterrno ; Save in errno (returns with .A = 0)
|
||||
.if (.cpu .bitand CPU_ISET_65SC02)
|
||||
dec a
|
||||
.else
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
.proc _chdir
|
||||
|
||||
jsr __syschdir ; Call the machine specific function
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
; Failed to allocate a file stream
|
||||
|
||||
lda #EMFILE
|
||||
jsr ___seterrno ; Set __errno, will return 0 in A
|
||||
jsr ___seterrno ; Set __errno, will return 0 in A
|
||||
tax
|
||||
rts ; Return zero
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
; File not open
|
||||
|
||||
@L1: lda #EBADF
|
||||
jsr ___seterrno ; Returns with A = 0
|
||||
jsr ___seterrno ; Returns with A = 0
|
||||
tax ; A = X = 0
|
||||
jmp incsp6
|
||||
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
.proc _mkdir
|
||||
|
||||
jsr __sysmkdir ; Call the machine specific function
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
|
||||
.endproc
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
.proc _remove
|
||||
|
||||
jsr __sysremove ; Call the machine specific function
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
.proc _rmdir
|
||||
|
||||
jsr __sysrmdir ; Call the machine specific function
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
|
||||
.endproc
|
||||
|
||||
@@ -61,7 +61,7 @@ ___sig_ign:
|
||||
|
||||
invalidsig:
|
||||
lda #<EINVAL
|
||||
jsr ___seterrno ; Returns 0 in A
|
||||
jsr ___seterrno ; Returns 0 in A
|
||||
tax ; A/X = 0
|
||||
___sig_dfl:
|
||||
rts
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
.data
|
||||
|
||||
sigtable:
|
||||
.word ___sig_dfl ; SIGABRT
|
||||
.word ___sig_dfl ; SIGFPE
|
||||
.word ___sig_dfl ; SIGILL
|
||||
.word ___sig_dfl ; SIGINT
|
||||
.word ___sig_dfl ; SIGSEGV
|
||||
.word ___sig_dfl ; SIGTERM
|
||||
.word ___sig_dfl ; SIGABRT
|
||||
.word ___sig_dfl ; SIGFPE
|
||||
.word ___sig_dfl ; SIGILL
|
||||
.word ___sig_dfl ; SIGINT
|
||||
.word ___sig_dfl ; SIGSEGV
|
||||
.word ___sig_dfl ; SIGTERM
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
.proc _uname
|
||||
|
||||
jsr __sysuname ; Call the machine specific function
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ L0: ldy #EINVAL
|
||||
pla ; Drop ap
|
||||
pla
|
||||
tya
|
||||
jsr ___directerrno ; Return -1
|
||||
jsr ___directerrno ; Return -1
|
||||
jmp incsp6 ; Drop parameters
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user