CGI Bash Shell Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.h 669B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @PROJECT CGI Bash Shell Interface
  3. * @COPYRIGHT See COPYING in the top level directory
  4. * @FILE common.h
  5. * @PURPOSE Common CBSI
  6. * @DEVELOPERS Nathan Angelacos <nangel@users.sourceforge.net>
  7. * Rafal Kupiec <belliash@asiotec.eu.org>
  8. */
  9. #ifndef __COMMON_H
  10. #define __COMMON_H
  11. #define ALLOC_CHUNK 10
  12. #define CBSI_VERSION "0.92"
  13. #define STDIN 0
  14. #define STDOUT 1
  15. #define STDERR 2
  16. #define HASH_BUF 1536
  17. #define TRANS_BUF 2048
  18. #define LANGDIR "/usr/lib/kagera/langs"
  19. #define SUBSHELL_CMD "/bin/sh"
  20. #define TEMPDIR "/tmp"
  21. typedef struct {
  22. char* string;
  23. unsigned char quoted;
  24. } argv_t;
  25. typedef struct {
  26. char* buf;
  27. void* next;
  28. } list_t;
  29. #endif