Skip to content

Commit fea10f7

Browse files
authored
Revert "[libc] Add strftime_l (#127708)"
This reverts commit 9072ba7.
1 parent 850062c commit fea10f7

File tree

9 files changed

+1
-90
lines changed

9 files changed

+1
-90
lines changed

libc/config/baremetal/aarch64/entrypoints.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ set(TARGET_LIBC_ENTRYPOINTS
248248
libc.src.time.gmtime
249249
libc.src.time.gmtime_r
250250
libc.src.time.mktime
251-
libc.src.time.strftime
252-
libc.src.time.strftime_l
253251
libc.src.time.timespec_get
254252

255253
# internal entrypoints

libc/config/baremetal/arm/entrypoints.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ set(TARGET_LIBC_ENTRYPOINTS
248248
libc.src.time.gmtime
249249
libc.src.time.gmtime_r
250250
libc.src.time.mktime
251-
libc.src.time.strftime
252-
libc.src.time.strftime_l
253251
libc.src.time.timespec_get
254252

255253
# internal entrypoints

libc/config/baremetal/riscv/entrypoints.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ set(TARGET_LIBC_ENTRYPOINTS
244244
libc.src.time.gmtime
245245
libc.src.time.gmtime_r
246246
libc.src.time.mktime
247-
libc.src.time.strftime
248-
libc.src.time.strftime_l
249247
libc.src.time.timespec_get
250248

251249
# internal entrypoints

libc/config/linux/x86_64/entrypoints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,6 @@ if(LLVM_LIBC_FULL_BUILD)
11281128
libc.src.time.mktime
11291129
libc.src.time.nanosleep
11301130
libc.src.time.strftime
1131-
libc.src.time.strftime_l
11321131
libc.src.time.time
11331132
libc.src.time.timespec_get
11341133

libc/include/time.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ types:
99
- type_name: time_t
1010
- type_name: clock_t
1111
- type_name: size_t
12-
- type_name: locale_t
1312
enums: []
1413
objects: []
1514
functions:
@@ -101,16 +100,6 @@ functions:
101100
- type: size_t
102101
- type: const char *__restrict
103102
- type: const struct tm *__restrict
104-
- name: strftime_l
105-
standard:
106-
- stdc
107-
return_type: size_t
108-
arguments:
109-
- type: char *__restrict
110-
- type: size_t
111-
- type: const char *__restrict
112-
- type: const struct tm *__restrict
113-
- type: locale_t
114103
- name: time
115104
standard:
116105
- stdc

libc/src/time/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -150,20 +150,6 @@ add_entrypoint_object(
150150
libc.src.time.strftime_core.strftime_main
151151
)
152152

153-
add_entrypoint_object(
154-
strftime_l
155-
SRCS
156-
strftime_l.cpp
157-
HDRS
158-
strftime_l.h
159-
DEPENDS
160-
libc.hdr.types.locale_t
161-
libc.hdr.types.size_t
162-
libc.hdr.types.struct_tm
163-
libc.src.stdio.printf_core.writer
164-
libc.src.time.strftime_core.strftime_main
165-
)
166-
167153
add_entrypoint_object(
168154
time
169155
SRCS

libc/src/time/strftime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace LIBC_NAMESPACE_DECL {
1919
LLVM_LIBC_FUNCTION(size_t, strftime,
2020
(char *__restrict buffer, size_t buffsz,
2121
const char *__restrict format, const tm *timeptr)) {
22+
2223
printf_core::WriteBuffer wb(buffer, (buffsz > 0 ? buffsz - 1 : 0));
2324
printf_core::Writer writer(&wb);
2425
int ret = strftime_core::strftime_main(&writer, format, timeptr);

libc/src/time/strftime_l.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

libc/src/time/strftime_l.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)