Remove extraneous sysfd2path()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 30 Apr 2019 00:54:33 +0000 (20:54 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 30 Apr 2019 00:54:33 +0000 (20:54 -0400)
commit95e5d955a8e4bd291260b6f7f89b51e824d1d30d
treed779be77f645dfef692676de846f469459c9f020
parent25e7634e8833ba2725901ad6bc9014e549bd2fc7
Remove extraneous sysfd2path()

We already have sys_fd2path(), and no one was using sysfd2path().  The
latter, which we are removing, is the Plan 9 implementation, I think.

Arguably, the one we are removing is a little faster, since it doesn't
invoke the snprintf() mechanisms and is a straight memcpy, but it also
doesn't handle the "no string" case yet.  If we ever want to make
sys_fd2path() faster, we certainly can.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h
kern/src/ns/sysfile.c