aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_filio.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-01-14 00:13:45 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-01-14 00:13:45 +0000
commita4db49537b0def4e1a63bb696ab51b7549fcdf23 (patch)
treefe7842143c9585ef2ebb793d812ec71cc4488a51 /sys/compat/svr4/svr4_filio.c
parent59047ccadec9566c55492972f002d65a4e3f6460 (diff)
downloadsrc-a4db49537b0def4e1a63bb696ab51b7549fcdf23.tar.gz
src-a4db49537b0def4e1a63bb696ab51b7549fcdf23.zip
Replace ffind_* with fget calls.
Make fget MPsafe. Make fgetvp and fgetsock use the fget subsystem to reduce code bloat. Push giant down in fpathconf().
Notes
Notes: svn path=/head/; revision=89319
Diffstat (limited to 'sys/compat/svr4/svr4_filio.c')
-rw-r--r--sys/compat/svr4/svr4_filio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c
index b24a039cddd5..0dd6bedd6505 100644
--- a/sys/compat/svr4/svr4_filio.c
+++ b/sys/compat/svr4/svr4_filio.c
@@ -107,8 +107,7 @@ svr4_sys_read(td, uap)
SCARG(&ra, buf) = SCARG(uap, buf);
SCARG(&ra, nbyte) = SCARG(uap, nbyte);
- fp = ffind_hold(td, uap->fd);
- if (fp == NULL) {
+ if (fget(td, uap->fd, &fp) != 0) {
DPRINTF(("Something fishy with the user-supplied file descriptor...\n"));
return EBADF;
}