From owner-cvs-sys Sun Sep 14 09:55:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA17797 for cvs-sys-outgoing; Sun, 14 Sep 1997 09:55:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA17747; Sun, 14 Sep 1997 09:54:55 -0700 (PDT) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id JAA07658; Sun, 14 Sep 1997 09:51:33 -0700 (PDT) Date: Sun, 14 Sep 1997 09:51:33 -0700 (PDT) Message-Id: <199709141651.JAA07658@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern init_sysent.c syscalls.c syscalls.master vfs_syscalls.c src/sys/sys syscall-hide.h syscall.h sysproto.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1997/09/14 09:51:33 PDT Modified files: sys/kern init_sysent.c syscalls.c syscalls.master vfs_syscalls.c sys/sys syscall-hide.h syscall.h sysproto.h Log: 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. Revision Changes Path 1.49 +1 -0 src/sys/kern/init_sysent.c 1.44 +1 -0 src/sys/kern/syscalls.c 1.43 +2 -1 src/sys/kern/syscalls.master 1.68 +50 -1 src/sys/kern/vfs_syscalls.c 1.38 +1 -0 src/sys/sys/syscall-hide.h 1.42 +2 -1 src/sys/sys/syscall.h 1.28 +5 -0 src/sys/sys/sysproto.h