Skip to content

Commit

Permalink
Merge branch '42406-wget' into 'main'
Browse files Browse the repository at this point in the history
[#42406] Add wget ioctl numbers

See merge request repositories/wasi_ext_lib!17
  • Loading branch information
GPlaczek committed Mar 1, 2024
2 parents 27296a8 + 201ff52 commit cde96d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c_lib/wasi_ext_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@

#define _MAX_FD_NUM 1024

#define WGETGS _IOR(2, 0, 4)
#define WGETRH _IO(2, 1)
#define WGETRB _IO(2, 2)

// Extended fs_fdflags
#define WASI_EXT_FDFLAG_CTRL_BIT ((__wasi_fdflags_t)0x0020)
#define WASI_EXT_FDFLAG_MASK ((__wasi_fdflags_t)0xffc0)
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ pub const WASI_EXT_FDFLAG_CTRL_BIT: wasi::Fdflags = 0x0020;
pub const WASI_EXT_FDFLAG_MASK: wasi::Fdflags = 0xffc0;
pub const WASI_EXT_FDFLAG_CLOEXEC: wasi::Fdflags = 0x0040;

pub const WGETGS: c_ulong = 2147746304;
pub const WGETRH: c_ulong = 513;
pub const WGETRB: c_ulong = 514;

pub use wasi::SIGNAL_KILL;

type ExitCode = i32;
Expand Down

0 comments on commit cde96d9

Please sign in to comment.