Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/unix/pathexec_env.3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH pathexec_env 3
.SH NAME
pathexec_env \- modify environment for pathexec
.SH SYNTAX
.B #include <pathexec.h>

pathexec_env(const char* \fBkey\fR,const char* \fBvalue\fR);
.SH DESCRIPTION
pathexec_env modifies the environment used by pathexec. It removes a
variable named \fIkey\fR, if one exists. It then adds a variable named
\fIkey\fR with value \fIvalue\fR, if the pointer \fIvalue\fR is nonzero.
The name \fIkey\fR must not contain =.

Normally pathexec_env returns 1. If it is unable to allocate memory, it
returns 0, leaving the pathexec environment alone.
.SH "SEE ALSO"
execve(2), pathexec_run(3), pathexec(3)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].