Skip to content

Commit

Permalink
FreeBSD: add strchrnul
Browse files Browse the repository at this point in the history
  • Loading branch information
valpackett committed Feb 18, 2023
1 parent e8a80da commit b6d5899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,7 @@ stack_t
statfs
strcasecmp
strcasestr
strchrnul
strncasecmp
strndup
strsignal
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5250,6 +5250,8 @@ extern "C" {
rmtp: *mut ::timespec,
) -> ::c_int;

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

pub fn shm_create_largepage(
path: *const ::c_char,
flags: ::c_int,
Expand Down

0 comments on commit b6d5899

Please sign in to comment.