mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 07:13:14 +08:00
SBUF(9): Enable sbuf_new_for_sysctl()
This commit is contained in:
parent
74c5b0ff73
commit
a27a1ba4f5
@ -1652,6 +1652,7 @@ userland_sysctl(struct thread *td, int *name, u_int namelen, void *old,
|
|||||||
}
|
}
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Drain into a sysctl struct. The user buffer should be wired if a page
|
* Drain into a sysctl struct. The user buffer should be wired if a page
|
||||||
@ -1677,4 +1678,3 @@ sbuf_new_for_sysctl(struct sbuf *s, char *buf, int length,
|
|||||||
sbuf_set_drain(s, sbuf_sysctl_drain, req);
|
sbuf_set_drain(s, sbuf_sysctl_drain, req);
|
||||||
return (s);
|
return (s);
|
||||||
}
|
}
|
||||||
#endif /* __rtems__ */
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user