aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-08-14 18:20:44 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-08-14 18:20:44 +0000
commit81d960fa6d17ec93eb2e515a2db045947b2e315c (patch)
tree2cdc99d46b9ffcff8b1a10665e954f6a133a4ffe /sys/compat/linux/linux_file.c
parente000c5368435b1b03711ec2009b702ef8f48669c (diff)
downloadsrc-81d960fa6d17ec93eb2e515a2db045947b2e315c.tar.gz
src-81d960fa6d17ec93eb2e515a2db045947b2e315c.zip
Implementation of the linux_getcwd syscall.
Notes
Notes: svn path=/head/; revision=49788
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index c27f1c9e49cc..e3d411cf763b 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);
+}