Skip to content

File tree

6 files changed

+18
-36
lines changed

6 files changed

+18
-36
lines changed

libc-test/semver/linux-gnu.txt

-3
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,6 @@ euidaccess
691691
eaccess
692692
asctime_r
693693
ctime_r
694-
strftime
695-
strftime_l
696-
strptime
697694
dirname
698695
posix_basename
699696
gnu_basename

libc-test/semver/linux-musl.txt

-3
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,5 @@ timex
7777
euidaccess
7878
eaccess
7979
asctime_r
80-
strftime
81-
strftime_l
82-
strptime
8380
dirname
8481
basename

libc-test/semver/linux.txt

+3
Original file line numberDiff line numberDiff line change
@@ -3832,8 +3832,11 @@ statvfs64
38323832
strcasecmp
38333833
strcasestr
38343834
strchrnul
3835+
strftime
3836+
strftime_l
38353837
strncasecmp
38363838
strndup
3839+
strptime
38373840
strsignal
38383841
swapoff
38393842
swapon

src/unix/linux_like/linux/gnu/mod.rs

-15
Original file line numberDiff line numberDiff line change
@@ -1478,21 +1478,6 @@ extern "C" {
14781478
pub fn asctime_r(tm: *const ::tm, buf: *mut ::c_char) -> *mut ::c_char;
14791479
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
14801480

1481-
pub fn strftime(
1482-
s: *mut ::c_char,
1483-
max: ::size_t,
1484-
format: *const ::c_char,
1485-
tm: *const ::tm,
1486-
) -> ::size_t;
1487-
pub fn strftime_l(
1488-
s: *mut ::c_char,
1489-
max: ::size_t,
1490-
format: *const ::c_char,
1491-
tm: *const ::tm,
1492-
locale: ::locale_t,
1493-
) -> ::size_t;
1494-
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
1495-
14961481
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
14971482
/// POSIX version of `basename(3)`, defined in `libgen.h`.
14981483
#[link_name = "__xpg_basename"]

src/unix/linux_like/linux/musl/mod.rs

-15
Original file line numberDiff line numberDiff line change
@@ -883,21 +883,6 @@ extern "C" {
883883

884884
pub fn asctime_r(tm: *const ::tm, buf: *mut ::c_char) -> *mut ::c_char;
885885

886-
pub fn strftime(
887-
s: *mut ::c_char,
888-
max: ::size_t,
889-
format: *const ::c_char,
890-
tm: *const ::tm,
891-
) -> ::size_t;
892-
pub fn strftime_l(
893-
s: *mut ::c_char,
894-
max: ::size_t,
895-
format: *const ::c_char,
896-
tm: *const ::tm,
897-
locale: ::locale_t,
898-
) -> ::size_t;
899-
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
900-
901886
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
902887
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
903888
}

src/unix/linux_like/mod.rs

+15
Original file line numberDiff line numberDiff line change
@@ -1795,6 +1795,21 @@ extern "C" {
17951795
pub fn uname(buf: *mut ::utsname) -> ::c_int;
17961796

17971797
pub fn strchrnul(s: *const ::c_char, c: ::c_int) -> *mut ::c_char;
1798+
1799+
pub fn strftime(
1800+
s: *mut ::c_char,
1801+
max: ::size_t,
1802+
format: *const ::c_char,
1803+
tm: *const ::tm,
1804+
) -> ::size_t;
1805+
pub fn strftime_l(
1806+
s: *mut ::c_char,
1807+
max: ::size_t,
1808+
format: *const ::c_char,
1809+
tm: *const ::tm,
1810+
locale: ::locale_t,
1811+
) -> ::size_t;
1812+
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
17981813
}
17991814

18001815
// LFS64 extensions

0 commit comments

Comments
 (0)