diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-09-14 16:51:31 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-09-14 16:51:31 +0000 |
commit | 7822f1c624c42acafde15b5359d3cd8f80ee99fe (patch) | |
tree | 908f508fd657439a4d45c4ca7f0416adc17529ae /sys/sys/sysproto.h | |
parent | e70ee0f24b5830b28919fe087937908b172ee02f (diff) | |
download | src-7822f1c624c42acafde15b5359d3cd8f80ee99fe.tar.gz src-7822f1c624c42acafde15b5359d3cd8f80ee99fe.zip |
Add a __getcwd() syscall. This is intentionally undocumented, but all
it does is to try to figure the pwd out from the vfs namecache, and
return a reversed string to it. libc:getcwd() is responsible for
flipping it back.
Notes
Notes:
svn path=/head/; revision=29391
Diffstat (limited to 'sys/sys/sysproto.h')
-rw-r--r-- | sys/sys/sysproto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 1111fbf0f543..0a21332e389b 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -844,6 +844,10 @@ struct mlockall_args { struct munlockall_args { int dummy; }; +struct __getcwd_args { + u_char * buf; + u_int buflen; +}; int nosys __P((struct proc *, struct nosys_args *, int [])); void exit __P((struct proc *, struct rexit_args *, int [])) __dead2; int fork __P((struct proc *, struct fork_args *, int [])); @@ -1047,6 +1051,7 @@ int thr_sleep __P((struct proc *, struct thr_sleep_args *, int [])); int thr_wakeup __P((struct proc *, struct thr_wakeup_args *, int [])); int mlockall __P((struct proc *, struct mlockall_args *, int [])); int munlockall __P((struct proc *, struct munlockall_args *, int [])); +int __getcwd __P((struct proc *, struct __getcwd_args *, int [])); #ifdef COMPAT_43 |