diff options
| author | Fenrir <[email protected]> | 2017-03-08 01:34:30 -0700 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-03-10 20:14:08 -0700 |
| commit | 3e1d15c34c6063e6c87ae4e3256009753df1a941 (patch) | |
| tree | 184261b8f26314487f938445476522c4941e8739 /ctr-std/src/sys/unix/fd.rs | |
| parent | Merge pull request #24 from FenrirWolf/unit_type (diff) | |
| download | archived-ctru-rs-3e1d15c34c6063e6c87ae4e3256009753df1a941.tar.xz archived-ctru-rs-3e1d15c34c6063e6c87ae4e3256009753df1a941.zip | |
Add fs module
Diffstat (limited to 'ctr-std/src/sys/unix/fd.rs')
| -rw-r--r-- | ctr-std/src/sys/unix/fd.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ctr-std/src/sys/unix/fd.rs b/ctr-std/src/sys/unix/fd.rs index 917a34b..91adac1 100644 --- a/ctr-std/src/sys/unix/fd.rs +++ b/ctr-std/src/sys/unix/fd.rs @@ -109,6 +109,24 @@ impl FileDesc { .map(|n| n as usize) } } + + // This is a unix-specific operation that the 3DS likely doesn't support. + // However, there's no reason to make calling this function an error either. + pub fn set_cloexec(&self) -> io::Result<()> { + Ok(()) + } + + // This is a unix-specific operation that the 3DS likely doesn't support. + // However, there's no reason to make calling this function an error either. + pub fn set_nonblocking(&self) -> io::Result<()> { + Ok(()) + } + + // The sdmc and romfs devoptabs definitely don't support this operation. + // Not sure if it will be needed for network support or not. + pub fn duplicate(&self) -> io::Result<FileDesc> { + unimplemented!() + } } impl<'a> Read for &'a FileDesc { |