summaryrefslogtreecommitdiff
path: root/runtime/ops/os/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/os/mod.rs')
-rw-r--r--runtime/ops/os/mod.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/ops/os/mod.rs b/runtime/ops/os/mod.rs
index 80f37514f..166ccb867 100644
--- a/runtime/ops/os/mod.rs
+++ b/runtime/ops/os/mod.rs
@@ -250,9 +250,9 @@ fn op_system_memory_info(
Ok(sys_info::mem_info())
}
-// TODO(bartlomieju): op2 doesn't support cfg attrs
#[cfg(not(windows))]
-#[op]
+#[op2]
+#[smi]
fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
state
.borrow_mut::<PermissionsContainer>()
@@ -264,9 +264,9 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
}
}
-// TODO(bartlomieju): op2 doesn't support cfg attrs
#[cfg(windows)]
-#[op]
+#[op2]
+#[smi]
fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
state
.borrow_mut::<PermissionsContainer>()
@@ -274,9 +274,9 @@ fn op_gid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
Ok(None)
}
-// TODO(bartlomieju): op2 doesn't support cfg attrs
#[cfg(not(windows))]
-#[op]
+#[op2]
+#[smi]
fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
state
.borrow_mut::<PermissionsContainer>()
@@ -288,9 +288,9 @@ fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
}
}
-// TODO(bartlomieju): op2 doesn't support cfg attrs
#[cfg(windows)]
-#[op]
+#[op2]
+#[smi]
fn op_uid(state: &mut OpState) -> Result<Option<u32>, AnyError> {
state
.borrow_mut::<PermissionsContainer>()