ecuungetty.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*+-------------------------------------------------------------------------
  2. ecuungetty.h
  3. wht@wht.net
  4. --------------------------------------------------------------------------*/
  5. /*+:EDITS:*/
  6. /*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
  7. /*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
  8. /*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  9. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  10. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  11. /*:05-04-1994-04:39-wht@n4hgf-ECU release 3.30 */
  12. /*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
  13. /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  14. /*:04-27-1992-18:49-wht@n4hgf-ecuungetty grows up to chown ttys */
  15. /*:03-27-1992-16:21-wht@n4hgf-re-include protection for all .h files */
  16. /*:07-25-1991-12:57-wht@n4hgf-ECU release 3.10 */
  17. /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  18. #ifndef _ecuungetty_h
  19. #define _ecuungetty_h
  20. /* ungetty definitions */
  21. #define UG_NOTENAB 0 /* on no-switch exec, line not enabled */
  22. #define UG_RESTART 1 /* on -t exec, restart needed */
  23. #define UG_FAIL 2 /* on no switch exec, line in use */
  24. /* extended ecuungetty codes */
  25. #define UGE_T_LOGIN 200 /* -t found utmp status US_LOGIN */
  26. #define UGE_T_LOGGEDIN 201 /* -t found utmp status US_LOGGGEDIN */
  27. #define UGE_T_NOTFOUND 202 /* not found */
  28. #define UGE_BADARGC 230 /* usage: bad arg count */
  29. #define UGE_BADSWITCH 231 /* usage: bad switch */
  30. #define UGE_BADARGV 232 /* usage: bad argument */
  31. #define UGE_NOTROOT 233 /* ecuungetty found it had no root privileges */
  32. #define UGE_NOUUCP 234 /* cannot find uucp passwd entry */
  33. #define UGE_LOGIC 235 /* logic error */
  34. #define UGE_CALLER 236 /* caller is not ecu or root */
  35. #define UGE_BOMB 254 /* ungetty core dumped or killed */
  36. #define UGE_DNE 255 /* ungetty did not execute */
  37. /* vi: set tabstop=4 shiftwidth=4: */
  38. /* end of ecuungetty.h */
  39. #endif /* _ecuungetty_h */