home *** CD-ROM | disk | FTP | other *** search
- /* sys/rename.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */
-
- #include <sys/emx.h>
- #include <os2emx.h>
- #include "syscalls.h"
-
- int __rename (const char *old_name, const char *new_name)
- {
- ULONG rc;
-
- rc = DosMove (old_name, new_name);
- if (rc != 0)
- {
- _sys_set_errno (rc);
- return (-1);
- }
- return (0);
- }
-