This patch changes the NBSD libc stat implemenation and adds fstat (and headers), taken from current libc. It also adds weaks alias to functions in the resolver that were removed from public use in NetBSD but that are still used by Minix, and fixes a NetBSD non-REENTRANT bug in in gen/initdir.c.
15 lines
247 B
C
15 lines
247 B
C
/* Data for fstatfs() call. */
|
|
|
|
#ifndef _STATFS_H
|
|
#define _STATFS_H
|
|
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
|
|
struct statfs {
|
|
off_t f_bsize; /* file system block size */
|
|
};
|
|
|
|
int fstatfs(int fd, struct statfs *st);
|
|
|
|
#endif /* _STATFS_H */
|