unix

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package unix exports an Elvish namespace that contains variables and functions that deal with features unique to UNIX-like operating systems. On non-UNIX operating systems it exports an empty namespace.

Index

Constants

View Source
const ExposeUnixNs = true

ExposeUnixNs indicate whether this module should be exposed as a usable elvish namespace.

Variables

View Source
var Ns = eval.Ns{
	"umask": UmaskVariable{},
}

Ns is an Elvish namespace that contains variables and functions that deal with features unique to UNIX-like operating systems. On

Functions

This section is empty.

Types

type UmaskVariable

type UmaskVariable struct{}

UmaskVariable is a variable whose value always reflects the current file creation permission mask. Setting it changes the current file creation permission mask for the process (not an individual thread).

func (UmaskVariable) Get

func (UmaskVariable) Get() interface{}

Get returns the current file creation umask as a string.

func (UmaskVariable) Set

func (UmaskVariable) Set(v interface{}) error

Set changes the current file creation umask. It can be called with a string (the usual case) or a float64.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL