summaryrefslogtreecommitdiffstats
path: root/sys/sys/syscallsubr.h
diff options
context:
space:
mode:
authorgleb <gleb@FreeBSD.org>2012-05-24 08:00:26 +0000
committergleb <gleb@FreeBSD.org>2012-05-24 08:00:26 +0000
commit3c7243df78747d294e451596c19e50e9397cf115 (patch)
treeafad455e2157c851f1824ca662f574359ffb64a8 /sys/sys/syscallsubr.h
parent5755c92002b1bfcd30e0b240b42bc8a28df9c96e (diff)
downloadFreeBSD-src-3c7243df78747d294e451596c19e50e9397cf115.zip
FreeBSD-src-3c7243df78747d294e451596c19e50e9397cf115.tar.gz
Add kern_fhstat(), adjust sys_fhstat() to use it.
Extend kern_getdirentries() to accept uio segflag and optionally return buffer residue. Sponsored by: Google Summer of Code 2011
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r--sys/sys/syscallsubr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 08dba2f..4335550 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -89,6 +89,7 @@ int kern_fchmodat(struct thread *td, int fd, char *path,
int kern_fchownat(struct thread *td, int fd, char *path,
enum uio_seg pathseg, int uid, int gid, int flag);
int kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg);
+int kern_fhstat(struct thread *td, fhandle_t fh, struct stat *buf);
int kern_fhstatfs(struct thread *td, fhandle_t fh, struct statfs *buf);
int kern_fstat(struct thread *td, int fd, struct stat *sbp);
int kern_fstatfs(struct thread *td, int fd, struct statfs *buf);
@@ -96,7 +97,7 @@ int kern_ftruncate(struct thread *td, int fd, off_t length);
int kern_futimes(struct thread *td, int fd, struct timeval *tptr,
enum uio_seg tptrseg);
int kern_getdirentries(struct thread *td, int fd, char *buf, u_int count,
- long *basep);
+ long *basep, ssize_t *residp, enum uio_seg bufseg);
int kern_getfsstat(struct thread *td, struct statfs **buf, size_t bufsize,
enum uio_seg bufseg, int flags);
int kern_getgroups(struct thread *td, u_int *ngrp, gid_t *groups);
OpenPOWER on IntegriCloud