source: mainline/uspace/app/bdsh/errors.h@ a716a75

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since a716a75 was e2ea8d7e, checked in by Tim Post <echo@…>, 17 years ago

Housekeeping list, complete lingering things before they get forgotten:

  • cli_*() now sets a global cli_errno, error functions cleaned up
  • Finish internal cli_*() functions in util.c
  • Don't expose cli_init() or cli_finit()
  • Get rid of unused globals
  • Don't set globals in commands themselves
  • Update README files
  • Fix stale comments
  • Property mode set to 100644
File size: 406 bytes
RevLine 
[216d6fc]1#ifndef ERRORS_H
2#define ERRORS_H
3
4/* Various error levels */
[e2ea8d7e]5#define CL_EFATAL -1
[216d6fc]6#define CL_EOK 0
7#define CL_EFAIL 1
8#define CL_EBUSY 2
9#define CL_ENOENT 3
10#define CL_ENOMEM 4
11#define CL_EPERM 5
12#define CL_ENOTSUP 6
13#define CL_EEXEC 7
14#define CL_EEXISTS 8
[e2ea8d7e]15#define CL_ETOOBIG 9
16
17/* Just like 'errno' */
18extern volatile int cli_errno;
[216d6fc]19
20extern void cli_error(int, const char *, ...);
[e2ea8d7e]21
[216d6fc]22#endif
Note: See TracBrowser for help on using the repository browser.