Ignore:
Timestamp:
Dec 27, 2018, 7:38:58 PM (5 years ago)
Author:
alain
Message:

Fix several bugs in VFS to support the following
ksh commandis : cp, mv, rm, mkdir, cd, pwd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.c

    r580 r610  
    2323
    2424#include <stdio.h>
     25#include <hal_shared_types.h>
     26#include <hal_user.h>
     27#include <syscalls_numbers.h>
    2528#include <stdarg.h>
    2629#include <almosmkh.h>
     
    3740//          stdio library functions
    3841////////////////////////////////////////////////////////////////////////////////////////
     42
     43/////////////////////////////
     44int rename( const char * old,
     45            const char * new )
     46{
     47    return hal_user_syscall( SYS_RENAME,
     48                             (reg_t)old,
     49                             (reg_t)new, 0, 0 );   
     50}
    3951
    4052///////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.