diff options
author | marcel <marcel@FreeBSD.org> | 1999-08-14 18:20:44 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-08-14 18:20:44 +0000 |
commit | 538e4c7fd4174d7f9d142e593596d6d5a7dc62e0 (patch) | |
tree | 9563a60ce17de310327348eecae8ae9d882ccfd1 /sys/compat/linux/linux_file.c | |
parent | b3249a427e2ad828e9516e20fb574b5ce61c32de (diff) | |
download | FreeBSD-src-538e4c7fd4174d7f9d142e593596d6d5a7dc62e0.zip FreeBSD-src-538e4c7fd4174d7f9d142e593596d6d5a7dc62e0.tar.gz |
Implementation of the linux_getcwd syscall.
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index c27f1c9..e3d411c 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.28 1999/08/12 19:53:32 marcel Exp $ + * $Id: linux_file.c,v 1.29 1999/08/13 09:27:54 marcel Exp $ */ #include "opt_compat.h" @@ -849,3 +849,18 @@ 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; + +#ifdef DEBUG + printf("Linux-emul(%d): getcwd(%p, %ld)\n", + p->p_pid, args->buf, args->bufsize); +#endif + + bsd.buf = args->buf; + bsd.buflen = args->bufsize; + return __getcwd(p, &bsd); +} |