02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

intro(2) intro(2)<br />

NAME<br />

intro - introduction to system calls and error numbers<br />

SYNOPSIS<br />

#include <br />

DESCRIPTION<br />

This section describes all of the Aj<strong>UX®</strong> system calls. The system<br />

calls identified with the letter "P" following the section number<br />

are part of the NUX POSIX environment. The NUX POSIX<br />

programming environment is described in the AIUX Guide to PO­<br />

SIX and A/UX Programming Languages and Tools, Volume 1.<br />

Most of these calls have one or more error returns. An error condition<br />

is indicated by a returned value that is otherwise impossible,<br />

which is almost always -1. The individual descriptions specify<br />

the details. An error number is also made available in the external<br />

variable errno, which is not cleared on successful calls. So<br />

errno, should be tested only after an error has been indicated.<br />

There is a table of messages associated with each error and a routine<br />

for printing the message (see perror(3C). Each systemcall<br />

description attempts to list all possible error numbers.<br />

ERRORS<br />

The following is a complete list of AjUX error numbers and their<br />

names as defined in . Also given is a description of<br />

the most likely cause of the error.<br />

1 EPERM Not owner<br />

Typically this error indicates an attempt to modify a file in<br />

some way forbidden except to its owner or the superuser. It<br />

is also returned when ordinary users attempt modifications<br />

reserved for the superuser.<br />

2 ENOENT No such file or directory<br />

This error occurs when a filename is specified and the file<br />

should exist but doesn't, or when one of the directories in a<br />

path name does not exist.<br />

3 ESRCH No such process<br />

No process can be found corresponding to that specified by<br />

pid in kill or ptrace.<br />

4 EINTR Interrupted system call<br />

An asynchronous signal, such as an interrupt or quit, which<br />

the user program elected to catch, occurred during a system<br />

call. If execution is resumed after processing the signal, it<br />

February, 1990<br />

Revision C<br />

1

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

Saved successfully!

Ooh no, something went wrong!