Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3828,6 +3828,10 @@ extern "C" {
pub fn mkstemp(template: *mut c_char) -> c_int;
pub fn mkdtemp(template: *mut c_char) -> *mut c_char;

#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tmpnam(ptr: *mut c_char) -> *mut c_char;

pub fn openlog(ident: *const c_char, logopt: c_int, facility: c_int);
Expand Down
4 changes: 4 additions & 0 deletions src/new/qurt/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ extern "C" {
pub fn remove(filename: *const c_char) -> c_int;
pub fn rename(old: *const c_char, new: *const c_char) -> c_int;
pub fn tmpfile() -> *mut FILE;
#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tmpnam(s: *mut c_char) -> *mut c_char;

// Buffer control
Expand Down
8 changes: 8 additions & 0 deletions src/solid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ extern "C" {
pub fn vprintf(arg1: *const c_char, arg2: __va_list) -> c_int;
pub fn gets(arg1: *mut c_char) -> *mut c_char;
pub fn sprintf(arg1: *mut c_char, arg2: *const c_char, ...) -> c_int;
#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tmpnam(arg1: *const c_char) -> *mut c_char;
pub fn vsprintf(arg1: *mut c_char, arg2: *const c_char, arg3: __va_list) -> c_int;
pub fn rename(arg1: *const c_char, arg2: *const c_char) -> c_int;
Expand Down Expand Up @@ -507,6 +511,10 @@ extern "C" {
) -> c_int;
pub fn getw(arg1: *mut FILE) -> c_int;
pub fn putw(arg1: c_int, arg2: *mut FILE) -> c_int;
#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tempnam(arg1: *const c_char, arg2: *const c_char) -> *mut c_char;
pub fn fseeko(stream: *mut FILE, offset: off_t, whence: c_int) -> c_int;
pub fn ftello(stream: *mut FILE) -> off_t;
Expand Down
4 changes: 4 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,10 @@ extern "C" {
pub fn mkstemp(template: *mut c_char) -> c_int;
pub fn mkdtemp(template: *mut c_char) -> *mut c_char;

#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tmpnam(ptr: *mut c_char) -> *mut c_char;

pub fn openlog(ident: *const c_char, logopt: c_int, facility: c_int);
Expand Down
4 changes: 4 additions & 0 deletions src/vxworks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,10 @@ extern "C" {
pub fn ftello(stream: *mut crate::FILE) -> off_t;
pub fn mkstemp(template: *mut c_char) -> c_int;

#[deprecated(
since = "0.2.190",
note = "function is obsolete; prefer tmpfile, mkstemp, or similar"
)]
pub fn tmpnam(ptr: *mut c_char) -> *mut c_char;

pub fn openlog(ident: *const c_char, logopt: c_int, facility: c_int);
Expand Down
Loading