SCCS-vsn: sys/kern/vfs_vnops.c 4.7
-/* vfs_vnops.c 4.6 %G% */
+/* vfs_vnops.c 4.7 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
u.u_error = EBADF;
return (NULL);
}
u.u_error = EBADF;
return (NULL);
}
-#ifdef UCBIPC
- if (u.u_pofile[f] & ISPORT) {
- u.u_error = EISPORT;
- return (NULL);
- }
-#endif
* and a file structure.
* Initialize the descriptor
* to point at the file structure.
* and a file structure.
* Initialize the descriptor
* to point at the file structure.
- *
- * no file -- if there are no available
- * file structures.
*/
struct file *
falloc()
*/
struct file *
falloc()
for (fp = file; fp < lastf; fp++)
if (fp->f_count == 0)
goto slot;
for (fp = file; fp < lastf; fp++)
if (fp->f_count == 0)
goto slot;
u.u_error = ENFILE;
return (NULL);
slot:
u.u_error = ENFILE;
return (NULL);
slot: