home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1621 / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  958 b   |  45 lines

  1. /* Copyright 1990, Daniel J. Bernstein. All rights reserved. */
  2.  
  3. #include "config.h"
  4. #include "pty.h"
  5.  
  6. int uid;
  7. int euid;
  8. int pid;
  9. int pgrp;
  10. long date;
  11. char *username;
  12.  
  13. int fdin = -1;
  14. int fdout = -1;
  15. int fdmty = -1;
  16. int fdsty = -1;
  17. int fdtty = -1;
  18. int fdre = -1;
  19. int fdpass = -1;
  20.  
  21. int flagquiet = 0;
  22. int flagdetached = 0;
  23. int flagjobctrl = 1;
  24. int flagttymodes = 1;
  25. int flagsameerr = 0;
  26. int flagfdpass = 0;
  27. int flagsession = 0;
  28. int flagverbose = 0;
  29.  
  30. int flagxchown = 0;
  31. int flagxutmp = 0;
  32. int flagxwtmp = 0;
  33. int flagxexcl = 0; /* should be 1, but that would break write & friends */
  34. int flagxerrwo = 0; /* should be 1, but that would break csh & more */
  35. int flagxchkopen = 1;
  36. int flagxskipopen = 0;
  37. int flagxrandom = 1; /* random pty searching: worth the effort */
  38. int flagxsetuid = 1;
  39.  
  40. #include "tty.h"
  41.  
  42. struct ttymodes tmotty; /* original tty modes */
  43. struct ttymodes tmochartty; /* tty in character mode */
  44. struct ttymodes tmopty; /* original pty modes */
  45.