public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* add more synth system calls
@ 2009-08-23 11:34 Bart Veer
  0 siblings, 0 replies; only message in thread
From: Bart Veer @ 2009-08-23 11:34 UTC (permalink / raw)
  To: ecos-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-23 11:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-23 11:34 add more synth system calls Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).