2003-08-12 13:06:43 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2003-08-12
|
|
|
|
;
|
|
|
|
; int __fastcall__ rename (const char* oldname, const char* newname);
|
|
|
|
;
|
|
|
|
|
|
|
|
.export _rename
|
|
|
|
|
|
|
|
.import __sysrename
|
2010-06-10 18:10:53 +00:00
|
|
|
.import __mappederrno
|
2003-08-12 13:06:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
;--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.proc _rename
|
|
|
|
|
|
|
|
jsr __sysrename ; Call the machine specific function
|
2010-06-10 18:10:53 +00:00
|
|
|
jmp __mappederrno ; Store into _oserror, set errno, return 0/-1
|
2003-08-12 13:06:43 +00:00
|
|
|
|
|
|
|
.endproc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|