Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

PosixOwnershipChange

Owns an explicit partial POSIX numeric ownership change. None preserves an identity; Some(0) is a real native identity. Numeric values are scoped to the target host, with no name lookup or implicit current-user substitution. Values unrepresentable by the native ID or equal to its reserved sentinel are rejected before changing anything. Changes may clear special mode bits according to POSIX; this is not an ACL replacement or transaction. This value allocates nothing; shared mutation needs synchronization.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.fs

import std.fs;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

PosixOwnershipChange

pub struct PosixOwnershipChange

Owns an explicit partial POSIX numeric ownership change. None preserves an identity; Some(0) is a real native identity. Numeric values are scoped to the target host, with no name lookup or implicit current-user substitution. Values unrepresentable by the native ID or equal to its reserved sentinel are rejected before changing anything. Changes may clear special mode bits according to POSIX; this is not an ACL replacement or transaction. This value allocates nothing; shared mutation needs synchronization.

PosixOwnershipChange.UserId

pub UserId: u64?;

New user ID, or none to preserve it.

PosixOwnershipChange.GroupId

pub GroupId: u64?;

New group ID, or none to preserve it.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library