Skip to content

os: API #2947

@rsc

Description

@rsc
Delete Time; callers should use time.Time.

Change NewFile to take a uintptr; change File.Fd to return one.  This accommodates
Windows safely without having to define a syscall.Handle type on Unix.

Delete O_NDELAY, O_NONBLOCK, O_NOCTTY, O_ASYNC.
People can import syscall for those very system-specific ones.
Maybe delete some error constants (ENXIO,...).

Doc for Environ: s/array/copy/ (it's a slice, but get across that it's not the real
thing either).

Delete Exec, which is a trivial wrapper around syscall.Exec, cannot be implemented on
Windows, and does not work on OS X?  (On OS X, only single-threaded programs can use
exec.)

Doc for ShellExpand: s/operating system's/current/ (as in current process, current
program).
Rename ShellExpand -> ExpandEnv.  Shell implies other expansions that are not being
done
(like globbing).

Doc for Stat: delete talk about FollowedSymlink.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions