diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-08-29 19:05:27 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-08-29 19:05:27 +0000 |
| commit | 055d495677c4f59d9e0892b73a96ec32762b9e93 (patch) | |
| tree | 321c0e2ac2e1da13c1280eed8530c7060711bcd2 /sys/compat/linux/linux_file.c | |
| parent | 159247784cf778ff547fd09c9d65f8c1383aab57 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_file.c')
| -rw-r--r-- | sys/compat/linux/linux_file.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 0f68ab5c6ba1..2a5d6732d482 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -830,34 +830,6 @@ linux_link(struct proc *p, struct linux_link_args *args) return link(p, &bsd); } -int -linux_getcwd(struct proc *p, struct linux_getcwd_args *args) -{ - struct __getcwd_args bsd; - caddr_t sg; - int error, len; - -#ifdef DEBUG - if (ldebug(getcwd)) - printf(ARGS(getcwd, "%p, %ld"), args->buf, args->bufsize); -#endif - - sg = stackgap_init(); - bsd.buf = stackgap_alloc(&sg, SPARE_USRSPACE); - bsd.buflen = SPARE_USRSPACE; - error = __getcwd(p, &bsd); - if (!error) { - len = strlen(bsd.buf) + 1; - if (len <= args->bufsize) { - p->p_retval[0] = len; - error = copyout(bsd.buf, args->buf, len); - } - else - error = ERANGE; - } - return (error); -} - #ifndef __alpha__ int linux_fdatasync(p, uap) |
