home *** CD-ROM | disk | FTP | other *** search
- static char sccs_id[] = "@(#) chdir.c 1.2 " __DATE__ " HJR";
-
- /* chdir.c (c) Copyright 1990 H.Rogers */
-
- #include <errno.h>
-
- #include "sys/types.h"
- #include "sys/unix.h"
- #include "sys/os.h"
-
- int
- chdir (register char *path)
- {
- os_error *e;
-
- path = __uname (path, 0);
-
- if (e = os_fsctrl (0, path, 0, 0))
- {
- __seterr (e);
- return (-1);
- }
-
- return (0);
- }
-