diff options
Diffstat (limited to 'ports/unix/guts/chdir.c')
-rw-r--r-- | ports/unix/guts/chdir.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/unix/guts/chdir.c b/ports/unix/guts/chdir.c new file mode 100644 index 0000000..9e30348 --- /dev/null +++ b/ports/unix/guts/chdir.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2008-2010 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * static int + * wrap_chdir(const char *path) { + * int rc = -1; + */ + pseudo_debug(PDBGF_CLIENT, "chdir: '%s'\n", + path ? path : "<nil>"); + + if (!path) { + errno = EFAULT; + return -1; + } + rc = real_chdir(path); + + if (rc != -1) { + pseudo_client_op(OP_CHDIR, 0, -1, -1, path, 0); + } + +/* return rc; + * } + */ |