[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/support dir.c,1.10,1.11
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/support dir.c,1.10,1.11 |
Date: |
Tue, 17 Dec 2002 22:24:35 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv11228/support
Modified Files:
dir.c
Log Message:
Patch 857, from Aditya Bansod -- internal calls for Directory.Move()
Index: dir.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/dir.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** dir.c 16 Dec 2002 04:39:19 -0000 1.10
--- dir.c 18 Dec 2002 03:24:33 -0000 1.11
***************
*** 55,58 ****
--- 55,59 ----
ILInt32 ILDeleteDir(const char *path)
{
+ errno=0;
if (path == NULL)
{
***************
*** 66,69 ****
--- 67,90 ----
return IL_ERRNO_ENOSYS;
#endif
+
+ }
+
+ ILInt32 ILRenameDir(const char *old_name, const char *new_name)
+ {
+ int retVal;
+
+ /* Reset errno because we're not sure what it'll be */
+ errno = 0;
+ if (old_name == NULL || new_name == NULL)
+ {
+ return IL_ERRNO_ENOENT;
+ }
+
+ #ifdef HAVE_RENAME
+ retVal = rename(old_name, new_name);
+ return ILSysIOConvertErrno(errno);
+ #else
+ return IL_ERRNO_ENOSYS;
+ #endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/support dir.c,1.10,1.11,
Gopal.V <address@hidden> <=