Changeset 610 for trunk/libs/mini-libc
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (6 years ago)
- Location:
- trunk/libs/mini-libc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/stdio.c
r580 r610 23 23 24 24 #include <stdio.h> 25 #include <hal_shared_types.h> 26 #include <hal_user.h> 27 #include <syscalls_numbers.h> 25 28 #include <stdarg.h> 26 29 #include <almosmkh.h> … … 37 40 // stdio library functions 38 41 //////////////////////////////////////////////////////////////////////////////////////// 42 43 ///////////////////////////// 44 int 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 } 39 51 40 52 /////////////////////////////////////////////////// -
trunk/libs/mini-libc/stdio.h
r476 r610 46 46 } 47 47 FILE; 48 49 /********************************************************************************************* 50 * This function causes the file/directory named <old> to be renamed as <new>. 51 * If <new> exists, it is previously removed. 52 ********************************************************************************************* 53 * @ returns 0 if success / returns -1 if failure. 54 ********************************************************************************************/ 55 int rename( const char * old, 56 const char * new ); 48 57 49 58 /********************************************************************************************* -
trunk/libs/mini-libc/unistd.h
r589 r610 48 48 49 49 /***************************************************************************************** 50 * This function change the current working directory in reference process descriptor.50 * This function change the current working directory in the reference process descriptor. 51 51 ***************************************************************************************** 52 52 * @ pathname : pathname (can be relative or absolute).
Note: See TracChangeset
for help on using the changeset viewer.