From e05a1e171262ce51abe71929ef3e9a1ae6f484b4 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 4 Dec 2001 01:35:06 +0000 Subject: Pseudofsize procfs(5). --- sys/fs/procfs/procfs_note.c | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'sys/fs/procfs/procfs_note.c') diff --git a/sys/fs/procfs/procfs_note.c b/sys/fs/procfs/procfs_note.c index c669654..41f32b0 100644 --- a/sys/fs/procfs/procfs_note.c +++ b/sys/fs/procfs/procfs_note.c @@ -40,28 +40,18 @@ */ #include -#include +#include +#include +#include + +#include #include int -procfs_donote(curp, p, pfs, uio) - struct proc *curp; - struct proc *p; - struct pfsnode *pfs; - struct uio *uio; +procfs_doprocnote(PFS_FILL_ARGS) { - int xlen; - int error; - char note[PROCFS_NOTELEN+1]; - - if (uio->uio_rw != UIO_WRITE) - return (EINVAL); - - xlen = PROCFS_NOTELEN; - error = vfs_getuserstr(uio, note, &xlen); - if (error) - return (error); - + sbuf_trim(sb); + sbuf_finish(sb); /* send to process's notify function */ return (EOPNOTSUPP); } -- cgit v1.1