/*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef __SYS_FILE_H
#define __SYS_FILE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KERNEL
/*
* Descriptor table entry.
* One for each kernel object.
*/
struct file {
struct fileops {
int (*fo_rw)();
int (*fo_ioctl)();
int (*fo_select)();
int (*fo_close)();
} *f_ops;
};
int nfile;
#endif /* KERNEL */
#include <sys/fcntlcom.h>
/*
* bits to save after an open. The no delay bits mean "don't wait for
* carrier at open" in all cases. Sys5 & POSIX save the no delay bits,
* using them to also mean "don't block on reads"; BSD has you reset it
* with an fcntl() if you want the "don't block on reads" behavior.
*/
/*
* User definitions.
*/
/*
* Flock call.
*/
/*
* Access call. Also maintained in unistd.h
*/
/*
*/
#ifdef KERNEL
return; \
} \
}
#endif /* KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* __SYS_FILE_H */