Global storage for command line arguments
The current incarnation of the Rust runtime expects for
the processes argc
and argv
arguments to be stored
in a globally-accessible location for use by the os
module.
Only valid to call on linux. Mac and Windows use syscalls to discover the command line arguments.
FIXME #7756: Would be nice for this to not exist. FIXME #7756: This has a lot of C glue for lack of globals.
imp |
cleanup | One-time global cleanup. |
clone | Make a clone of the global arguments. |
init | One-time global initialization. |
put | Give the global arguments to global storage. |
take | Take the global arguments from global storage. |
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).