shell.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef _SHELL_H
  2. #define _SHELL_H
  3. #ifdef HAVE_CONFIG_H
  4. #include "config.h"
  5. #endif /* HAVE_CONFIG_H */
  6. #define ERR_BINSTAT 1
  7. #define ERR_BINMOD 2
  8. #define ERR_PASSWD 3
  9. #define ERR_WRONGBINDIR 4
  10. #define ERR_TMPSTAT 6
  11. #define ERR_TMPMOD 9
  12. #define ERR_WRONGUID 12
  13. #define ERR_WRONGUNAME 13
  14. #define ERR_BADCONF 14
  15. #define ERR_BADBOT 15
  16. #define ERR_BADPASS 16
  17. #define ERR_BOTDISABLED 17
  18. #define ERR_NOBOTS 18
  19. #define ERR_MAX 19
  20. #define EMAIL_OWNERS BIT0
  21. #define EMAIL_TEAM BIT1
  22. #define DETECT_LOGIN 1
  23. #define DETECT_TRACE 2
  24. #define DETECT_PROMISC 3
  25. #define DETECT_PROCESS 4
  26. #define DETECT_SIGCONT 5
  27. #define DET_IGNORE 0
  28. #define DET_WARN 1
  29. #define DET_REJECT 2
  30. #define DET_DIE 3
  31. #define DET_SUICIDE 4
  32. void check_maxfiles();
  33. void check_mypid();
  34. int clear_tmp();
  35. char *homedir();
  36. char *my_username();
  37. char *my_uname();
  38. #ifndef CYGWIN_HACKS
  39. char *move_bin(const char *, const char *, bool);
  40. #endif /* !CYGWIN_HACKS */
  41. void fix_tilde(char **);
  42. void baduname(char *, char *);
  43. int email(char *, char *, int);
  44. int shell_exec(char *, char *, char **, char **);
  45. #ifndef CYGWIN_HACKS
  46. void check_last();
  47. void check_promisc();
  48. void check_trace(int);
  49. void check_processes();
  50. void check_crontab();
  51. void crontab_del();
  52. int crontab_exists();
  53. void crontab_create(int);
  54. void detected(int, char *);
  55. #endif /* !CYGWIN_HACKS */
  56. void werr(int) __attribute__((noreturn));
  57. char *werr_tostr(int);
  58. #endif /* _SHELL_H */