File: returnerr.h

package info (click to toggle)
c2man 2.41-11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 800 kB
  • ctags: 863
  • sloc: ansic: 6,559; sh: 5,236; yacc: 839; lex: 621; makefile: 229; perl: 81
file content (16 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Do an operating system operation
 * This is an example of a function which performs some sort of operating
 * system operation, returning an errno-like indication of its success or
 * failure.  We'd like the documentation to list all the possible failure
 * indications that this function can return, which is only a tiny subset of
 * all the possible errno values.  Hence, we don't define it as returning an
 * enum of some sort, since that would cause c2man to list every possible value
 * that type can have.
 * Returns an indication of success or failure, as follows:
 *	EOK: Success
 *	EIO: I/O error
 *	ENOMEM: Out of memory
 *	EIEIO: Old Macdonald error
 */
int reterrno();