Fixed namespace pollution in rev.1.78. Don't export <sys/stat.h> to
userland from here; just forward declare struct stat. fhstat.2 (== fhopen.2 == fhstatfs.2) has always specified including <sys/stat.h> before using any of the fh functions although this is only necessary for dereferencing the "struct stat *" arg of fhstat(), so applications should not notice this change. Fixed unsorting of user prototypes in rev.1.78.
This commit is contained in:
parent
187e734c1d
commit
5e498d91fd
@ -38,13 +38,6 @@
|
||||
#define _SYS_MOUNT_H_
|
||||
|
||||
#include <sys/ucred.h>
|
||||
|
||||
#ifndef _KERNEL
|
||||
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||
#include <sys/stat.h>
|
||||
#endif /* !_POSIX_C_SOURCE */
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include <sys/lock.h>
|
||||
|
||||
@ -463,7 +456,12 @@ int softdep_fsync __P((struct vnode *));
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
struct stat;
|
||||
|
||||
__BEGIN_DECLS
|
||||
int fhopen __P((const struct fhandle *, int));
|
||||
int fhstat __P((const struct fhandle *, struct stat *));
|
||||
int fhstatfs __P((const struct fhandle *, struct statfs *));
|
||||
int fstatfs __P((int, struct statfs *));
|
||||
int getfh __P((const char *, fhandle_t *));
|
||||
int getfsstat __P((struct statfs *, long, int));
|
||||
@ -471,9 +469,6 @@ int getmntinfo __P((struct statfs **, int));
|
||||
int mount __P((const char *, const char *, int, void *));
|
||||
int statfs __P((const char *, struct statfs *));
|
||||
int unmount __P((const char *, int));
|
||||
int fhopen __P((const struct fhandle *, int));
|
||||
int fhstat __P((const struct fhandle *, struct stat *));
|
||||
int fhstatfs __P((const struct fhandle *, struct statfs *));
|
||||
|
||||
/* C library stuff */
|
||||
void endvfsent __P((void));
|
||||
|
Loading…
x
Reference in New Issue
Block a user