summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_sysent.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-09-14 16:51:31 +0000
committerphk <phk@FreeBSD.org>1997-09-14 16:51:31 +0000
commitb079abc11c97decabfeb4683ebd3561674cdf55d (patch)
tree2b771099ba7453b6556716fa8dcf87c1f0f6f017 /sys/kern/init_sysent.c
parente2ce0d677e459daf5a1afb3e7317c7d9b2fdfe1c (diff)
downloadFreeBSD-src-b079abc11c97decabfeb4683ebd3561674cdf55d.zip
FreeBSD-src-b079abc11c97decabfeb4683ebd3561674cdf55d.tar.gz
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.
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r--sys/kern/init_sysent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index ff220b8..a86db21 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -358,4 +358,5 @@ struct sysent sysent[] = {
{ 1, (sy_call_t *)thr_wakeup }, /* 323 = thr_wakeup */
{ 1, (sy_call_t *)mlockall }, /* 324 = mlockall */
{ 0, (sy_call_t *)munlockall }, /* 325 = munlockall */
+ { 2, (sy_call_t *)__getcwd }, /* 326 = __getcwd */
};
OpenPOWER on IntegriCloud