diff options
Diffstat (limited to 'libgloss/nds32/syscall_rename.S')
-rw-r--r-- | libgloss/nds32/syscall_rename.S | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libgloss/nds32/syscall_rename.S b/libgloss/nds32/syscall_rename.S index 6b07cdad1..bf394bf55 100644 --- a/libgloss/nds32/syscall_rename.S +++ b/libgloss/nds32/syscall_rename.S @@ -32,22 +32,4 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .extern errno - - .section .text - .global _rename - .type _rename, @function - .align 2 -_rename: - /* Make syscall 'SYS_rename'. - Reture value '-1' stored in $r0 means there is something wrong. - If there is something wrong, make syscall 'SYS_geterr' to get - error code to see what exactly happens and store it in errno . */ - syscall SYS_rename - addi $r1, $r0, 1 - bnez $r1, .Ldone - syscall SYS_geterr - s.w $r0, errno - movi $r0, -1 -.Ldone: - ret - .size _rename, .-_rename +SYS_WRAPPER _rename, SYS_rename |