Skip to content

Commit

Permalink
Auto merge of #3104 - devnexen:linux_addstrchrnul, r=JohnTitor
Browse files Browse the repository at this point in the history
linux adding strchrnul
  • Loading branch information
bors committed Feb 14, 2023
2 parents 78d774f + 3a19eca commit e401a59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3498,6 +3498,7 @@ strcasecmp
strcasestr
strcat
strchr
strchrnul
strcmp
strcoll
strcpy
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,7 @@ statfs64
statvfs64
strcasecmp
strcasestr
strchrnul
strncasecmp
strndup
strsignal
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,8 @@ extern "C" {
pub fn sendmsg(fd: ::c_int, msg: *const ::msghdr, flags: ::c_int) -> ::ssize_t;
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t;
pub fn uname(buf: *mut ::utsname) -> ::c_int;

pub fn strchrnul(s: *const ::c_char, c: ::c_int) -> *mut ::c_char;
}

cfg_if! {
Expand Down

0 comments on commit e401a59

Please sign in to comment.