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

Add a deprecation note to time_t on musl #1956

Merged
merged 2 commits into from
Oct 25, 2020
Merged

Conversation

JohnTitor
Copy link
Member

cc #1848

@rust-highfive
Copy link

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

@JohnTitor
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Oct 25, 2020

📌 Commit 61ff741 has been approved by JohnTitor

@bors
Copy link
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
Contributor

bors commented Oct 25, 2020

💔 Test failed - checks-actions

@JohnTitor
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Oct 25, 2020

📌 Commit d40c7eb has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Oct 25, 2020

⌛ Testing commit d40c7eb with merge 6ca151e...

@bors
Copy link
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