mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Put struct ostat and struct nstat under #ifdef _KERNEL. The
compatibility definitions are only needed for implementation of the syscalls, they cause namespace pollution and are not useful for applications. Noted by: bde MFC after: 1 week
This commit is contained in:
parent
1ec04b6d45
commit
dec97f1bea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238703
@ -99,7 +99,7 @@ typedef __uid_t uid_t;
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
#ifdef _KERNEL
|
||||
struct ostat {
|
||||
__uint16_t st_dev; /* inode's device */
|
||||
ino_t st_ino; /* inode's number */
|
||||
@ -117,7 +117,7 @@ struct ostat {
|
||||
fflags_t st_flags; /* user defined flags for file */
|
||||
__uint32_t st_gen; /* file generation number */
|
||||
};
|
||||
#endif /* __BSD_VISIBLE */
|
||||
#endif
|
||||
|
||||
struct stat {
|
||||
__dev_t st_dev; /* inode's device */
|
||||
@ -149,7 +149,7 @@ struct stat {
|
||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
};
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
#ifdef _KERNEL
|
||||
struct nstat {
|
||||
__dev_t st_dev; /* inode's device */
|
||||
ino_t st_ino; /* inode's number */
|
||||
|
Loading…
Reference in New Issue
Block a user