summaryrefslogtreecommitdiff
path: root/src/unix/bsd
diff options
context:
space:
mode:
authorVal Packett <val@packett.cool>2023-05-07 04:00:38 -0300
committerVal Packett <val@packett.cool>2023-05-07 04:25:03 -0300
commitc461e304db322c53e8d0b28ae9192e9075b54a03 (patch)
treecc296b4c1003e19d9de65864ecb41af2230f5342 /src/unix/bsd
parent6c00b3761c89b5e5211311c4d7d10714b91d04e8 (diff)
downloadrust-libc-c461e304db322c53e8d0b28ae9192e9075b54a03.tar.gz
bsd: add setlogin
Diffstat (limited to 'src/unix/bsd')
-rw-r--r--src/unix/bsd/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index 84e572edab..6ce041357e 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -628,6 +628,7 @@ extern "C" {
pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
pub fn freeifaddrs(ifa: *mut ::ifaddrs);
pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int;
+ pub fn setlogin(name: *const ::c_char) -> ::c_int;
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
pub fn kqueue() -> ::c_int;
pub fn unmount(target: *const ::c_char, arg: ::c_int) -> ::c_int;