01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXEC (2) EXEC (2)<br />

Search perm1ss10n is denied for a directory listed in the<br />

new process file's path prefix. [EACCES]<br />

The new process file is not an ordinary file. [EACCESJ<br />

The new process file mode denies execution permission.<br />

[EACCES[<br />

The exec is not an execlp or execvp , and the new process<br />

file has the appropriate access permission but an invalid<br />

magic number in its header. [ENOEXECJ<br />

The new process file is a pure procedure (shared text) file<br />

that is currently open for writing by some process.<br />

[ETXTBSYJ<br />

The new process requires more memory than is allowed by<br />

the system-imposed maximum MAXMEM. [ENOMEM]<br />

The number of bytes in the new process's argument list is<br />

greater than the system-imposed limit of 5120 bytes.<br />

[E2BIGJ<br />

The new process file is not as long as indicated by the size<br />

values in its header. [EFAULT]<br />

Path , argv, or envp point to an illegal address. [EF AUL T]<br />

RETURN VALUE<br />

If exec returns to the calling process an error has occurred; the<br />

return value will be -1 and errno will be set to indicate the error.<br />

SEE ALSO<br />

exit(2), fork(2), environ(S).<br />

- 3-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!