This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

add more synth system calls


This adds rename() to the synth system calls and provides definitions
for both rename() and unlink().

Bart

2009-07-09  Bart Veer  <bartv@ecoscentric.com>

	* include/hal_io.h: add unlink() and rename() prototypes

2009-07-09  Bart Veer  <bartv@ecoscentric.com>

	* src/syscall-i386-linux-1.0.S: add rename() system call.

Index: i386linux/current/src/syscall-i386-linux-1.0.S
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/synth/i386linux/current/src/syscall-i386-linux-1.0.S,v
retrieving revision 1.12
diff -u -p -r1.12 syscall-i386-linux-1.0.S
--- i386linux/current/src/syscall-i386-linux-1.0.S	29 Jan 2009 17:49:43 -0000	1.12
+++ i386linux/current/src/syscall-i386-linux-1.0.S	23 Aug 2009 11:33:11 -0000
@@ -402,6 +402,7 @@ SYSCALL0(getpid)
 SYSCALL0(getuid)
 SYSCALL1(nice)
 SYSCALL2(kill)
+SYSCALL2(rename)
 SYSCALL1(dup)
 SYSCALL1(pipe)
 SYSCALL1(brk)
Index: arch/current/include/hal_io.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/synth/arch/current/include/hal_io.h,v
retrieving revision 1.15
diff -u -p -r1.15 hal_io.h
--- arch/current/include/hal_io.h	29 Jan 2009 17:49:43 -0000	1.15
+++ arch/current/include/hal_io.h	23 Aug 2009 11:33:54 -0000
@@ -507,7 +507,9 @@ externC int             cyg_hal_sys_exec
 externC int             cyg_hal_sys_pipe(int []);
 externC int             cyg_hal_sys_close(int);
 externC int             cyg_hal_sys_dup2(int, int);
- 
+externC int             cyg_hal_sys_unlink(const char*);
+externC int             cyg_hal_sys_rename(const char*, const char*);
+
 #define CYG_HAL_SYS_IPCOP_semop          1
 #define CYG_HAL_SYS_IPCOP_semget         2
 #define CYG_HAL_SYS_IPCOP_semctl         3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]