- Timestamp:
- May 2, 2005, 4:56:25 AM (21 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 1 added
- 5 edited
-
include/InnoTekLIBC/backend.h (modified) (1 diff, 1 prop)
-
include/stdlib.h (modified) (2 diffs, 1 prop)
-
src/lib/misc/_chdir_os2.c (added)
-
src/lib/misc/chdir.c (modified) (4 diffs, 1 prop)
-
src/lib/misc/chdir2.c (modified) (1 diff, 1 prop)
-
src/lib/sys/b_fsDirCurrentSet.c (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/backend.h
-
Property cvs2svn:cvs-rev
changed from
1.20to1.21
r1945 r1946 229 229 * @returns Negative error code (errno.h) on failure. 230 230 * @param pszPath Path to the new current directory of the process. 231 */ 232 int __libc_Back_fsDirCurrentSet(const char *pszPath); 231 * @param fDrive Force a change of the current drive too. 232 */ 233 int __libc_Back_fsDirCurrentSet(const char *pszPath, int fDrive); 233 234 234 235 /** -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/stdlib.h
-
Property cvs2svn:cvs-rev
changed from
1.31to1.32
r1945 r1946 292 292 #ifdef __BSD_VISIBLE 293 293 char *_getcwdux(char *, size_t); 294 /** @todo: int _chdirux(char *); */295 294 char *_realrealpath(const char *, char *, size_t); 296 295 #endif … … 421 420 long double _atofl (__const__ char *); 422 421 int _chdir2 (__const__ char *); 422 423 423 int _chdrive (int); 424 424 int _core (int); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/chdir.c
-
Property cvs2svn:cvs-rev
changed from
1.6to1.7
r1945 r1946 2 2 /** @file 3 3 * 4 * chdir.4 * chdir. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <[email protected]>6 * Copyright (c) 2004 knut st. osmundsen <[email protected]> 7 7 * 8 8 * … … 36 36 #include <InnoTekLIBC/logstrict.h> 37 37 38 38 39 /** 39 * Changes the current directory. 40 * Changes the current directory and drive. 41 * 42 * Use _chdir_os2 for a VAC/MSC compatible chdir. 40 43 * 41 44 * @returns 0 on success. … … 46 49 { 47 50 LIBCLOG_ENTER("path=%p:{%s}\n", (void *)path, path); 48 int rc = __libc_Back_fsDirCurrentSet(path );51 int rc = __libc_Back_fsDirCurrentSet(path); 49 52 if (!rc) 50 53 LIBCLOG_RETURN_INT(0); … … 52 55 LIBCLOG_RETURN_INT(-1); 53 56 } 57 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/chdir2.c
-
Property cvs2svn:cvs-rev
changed from
1.3to1.4
r1945 r1946 3 3 #include "libc-alias.h" 4 4 #include <stdlib.h> 5 #include <string.h>6 #include <emx/io.h>7 #include <emx/syscalls.h>8 #include <InnoTekLIBC/backend.h>9 5 10 6 int _chdir2 (const char *name) 11 7 { 12 char old_drive, new_drive; 13 14 old_drive = _getdrive (); 15 new_drive = _fngetdrive (name); 16 if (new_drive != 0) 17 { 18 if (_chdrive (new_drive) != 0) 19 return -1; 20 if (name[2] == 0) /* Change drive only */ 21 return 0; 22 } 23 int rc = __libc_Back_fsDirCurrentSet (name); 24 if (rc == 0) 25 return 0; 26 else 27 { 28 _chdrive (old_drive); 29 errno = -rc; 30 -
Property cvs2svn:cvs-rev
changed from
