Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Implement ctime_s #110548

Open
zimirza opened this issue Sep 30, 2024 · 1 comment · May be fixed by #110676
Open

[libc] Implement ctime_s #110548

zimirza opened this issue Sep 30, 2024 · 1 comment · May be fixed by #110676
Labels

Comments

@zimirza
Copy link
Contributor

zimirza commented Sep 30, 2024

ctime and ctime_r are already implemented. It might be good to implement ctime_s. This is defined as the following:

int ctime_s(char *buf, size_t buf_size, const time_t *time);
@github-actions github-actions bot added the libc label Sep 30, 2024
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 1, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
@Rajveer100 Rajveer100 linked a pull request Oct 1, 2024 that will close this issue
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 2, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 2, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 13, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 17, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 18, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 31, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Oct 31, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 2, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 5, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 12, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 17, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 19, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, size_t buffer_size, const time_t *t_ptr);

```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Nov 20, 2024
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 7, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 8, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 8, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 8, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 8, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 8, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 9, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 9, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
Rajveer100 added a commit to Rajveer100/llvm-project that referenced this issue Jan 9, 2025
Resolves llvm#110548

Definition:

```c++
int ctime_s(char *buffer, rsize_t buffer_size, const time_t *t_ptr);
```
@nickdesaulniers
Copy link
Member

Note: ctime_s is part of Annex K.

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2336.pdf

Come to mind. The llvm-libc project as a whole should decide whether supporting Annex K is a goal, or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@nickdesaulniers @zimirza and others