2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
15 #include <afsconfig.h>
16 #include "afs/param.h"
19 #include "afs/sysincludes.h" /* Standard vendor system headers */
20 #include "afsincludes.h" /* Afs-based standard headers */
21 #include <sys/namei.h>
24 osi_lookupname(char *aname, enum uio_seg seg, int followlink,
28 int flags, error, glocked;
30 glocked = ISAFS_GLOCK();
34 flags = LOCKLEAF | MPSAFE; /* namei must take Giant if needed */
39 NDINIT(&n, LOOKUP, flags, seg, aname, curthread);
40 if ((error = namei(&n)) != 0) {
46 /* XXX should we do this? Usually NOT (matt) */
47 #if defined(AFS_FBSD80_ENV)
48 /*VOP_UNLOCK(n.ni_vp, 0);*/
50 VOP_UNLOCK(n.ni_vp, 0, curthread);
52 NDFREE(&n, NDF_ONLY_PNBUF);
59 * does not implement security features of kern_time.c:settime()
62 afs_osi_SetTime(osi_timeval_t * atv)
64 printf("afs attempted to set clock; use \"afsd -nosettime\"\n");
68 * Replace all of the bogus special-purpose memory allocators...
71 osi_fbsd_alloc(size_t size, int dropglobal)
77 glocked = ISAFS_GLOCK();
80 rv = malloc(size, M_AFS, M_WAITOK);
84 rv = malloc(size, M_AFS, M_NOWAIT);
90 osi_fbsd_free(void *p)