Skip to content

Add a deprecation note to time_t on musl#1956

Merged
bors merged 2 commits intorust-lang:masterfrom
JohnTitor:time64
Oct 25, 2020
Merged

Add a deprecation note to time_t on musl#1956
bors merged 2 commits intorust-lang:masterfrom
JohnTitor:time64

Conversation

@JohnTitor
Copy link
Copy Markdown
Member

cc #1848

@rust-highfive
Copy link
Copy Markdown

@JohnTitor: no appropriate reviewer found, use r? to override

@JohnTitor
Copy link
Copy Markdown
Member Author

@bors r+

@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

📌 Commit 61ff741 has been approved by JohnTitor

@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

⌛ Testing commit 61ff741 with merge dd2d2db...

bors added a commit that referenced this pull request Oct 25, 2020
Add a deprecation note to `time_t` on musl

cc #1848
@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

💔 Test failed - checks-actions

@JohnTitor
Copy link
Copy Markdown
Member Author

@bors r+

@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

📌 Commit d40c7eb has been approved by JohnTitor

@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

⌛ Testing commit d40c7eb with merge 6ca151e...

@bors
Copy link
Copy Markdown
Contributor

bors commented Oct 25, 2020

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 6ca151e to master...

@bors bors merged commit 6ca151e into rust-lang:master Oct 25, 2020
@JohnTitor JohnTitor deleted the time64 branch October 25, 2020 05:08
bors added a commit that referenced this pull request Oct 12, 2022
add some time functions on glibc and musl

#### man pages

* [asctime/ctime man page](https://man7.org/linux/man-pages/man3/ctime.3.html)
* [strftime](https://man7.org/linux/man-pages/man3/strftime.3.html)
* [strptime](https://man7.org/linux/man-pages/man3/strptime.3.html)

I didn't add `ctime()/ctime_r()` on musl because they involve the `time_t` type, which elicits [a deprecation wraning](#1956).

Is it fine to add these two functions on `musl`, they will have the same definitions  as the `glibc` ones:
```rust
pub fn ctime(timep: *const time_t) -> *mut ::c_char;
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
```
If it's ok, I will add them:)
bors added a commit that referenced this pull request Oct 12, 2022
add some time functions on glibc and musl

#### man pages

* [asctime/ctime man page](https://man7.org/linux/man-pages/man3/ctime.3.html)
* [strftime](https://man7.org/linux/man-pages/man3/strftime.3.html)
* [strptime](https://man7.org/linux/man-pages/man3/strptime.3.html)

I didn't add `ctime()/ctime_r()` on musl because they involve the `time_t` type, which elicits [a deprecation wraning](#1956).

Is it fine to add these two functions on `musl`, they will have the same definitions  as the `glibc` ones:
```rust
pub fn ctime(timep: *const time_t) -> *mut ::c_char;
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
```
If it's ok, I will add them:)
bors added a commit that referenced this pull request Oct 13, 2022
add some time functions on glibc and musl

#### man pages

* [asctime/ctime man page](https://man7.org/linux/man-pages/man3/ctime.3.html)
* [strftime](https://man7.org/linux/man-pages/man3/strftime.3.html)
* [strptime](https://man7.org/linux/man-pages/man3/strptime.3.html)

I didn't add `ctime()/ctime_r()` on musl because they involve the `time_t` type, which elicits [a deprecation wraning](#1956).

Is it fine to add these two functions on `musl`, they will have the same definitions  as the `glibc` ones:
```rust
pub fn ctime(timep: *const time_t) -> *mut ::c_char;
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
```
If it's ok, I will add them:)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants