Skip to content
Snippets Groups Projects
Commit aa8b14e1 authored by Tom Almeida's avatar Tom Almeida
Browse files

Added some constants in linux for file modes

parent b2d01a67
No related branches found
No related tags found
1 merge request!85Added functions for stdio.h
...@@ -18,6 +18,12 @@ pub const O_CREAT: c_int = 0x0040; ...@@ -18,6 +18,12 @@ pub const O_CREAT: c_int = 0x0040;
pub const O_TRUNC: c_int = 0x0200; pub const O_TRUNC: c_int = 0x0200;
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
pub const O_ACCMODE: c_int = O_RDONLY | O_WRONLY | O_RDWR; pub const O_ACCMODE: c_int = O_RDONLY | O_WRONLY | O_RDWR;
#[cfg(target_os = "linux")]
pub const O_APPEND: c_int = 0o2000;
#[cfg(target_os = "linux")]
pub const O_CLOEXEC: c_int = 0o2_000_000;
#[cfg(target_os = "linux")]
pub const O_EXCL: c_int = 0o200;
#[cfg(target_os = "redox")] #[cfg(target_os = "redox")]
pub const O_RDONLY: c_int = 0x0001_0000; pub const O_RDONLY: c_int = 0x0001_0000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment