home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / libsrc / c / sys / stubs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-13  |  965 b   |  81 lines

  1. /* This file stubs out a bunch of functions that are normally found on
  2.    a UNIX machine but which don't apply or aren't implemented for
  3.    DJGPP. */
  4.  
  5. #include <errno.h>
  6. #include <stdlib.h>
  7. #include <signal.h>
  8. #include <sys/wait.h>
  9.  
  10. int
  11. pipe(int fildes[2])
  12. {
  13.     errno = EPIPE;
  14.     return -1;
  15. }
  16.  
  17. void
  18. sync(void)
  19. {
  20. }
  21.  
  22. int
  23. getgroups(int ngroups, int *gidset)
  24. {
  25.     return 0;
  26. }
  27.  
  28. int
  29. mknod(const char *p, int i, int j)
  30. {
  31.     return -1;
  32. }
  33.  
  34. int
  35. mkfifo(char *p, int i)
  36. {
  37.     return -1;
  38. }
  39.  
  40. int
  41. sigaction(int sig, struct sigaction *act, struct sigaction *oact)
  42. {
  43.     return 0;
  44. }
  45.  
  46. int
  47. sigemptyset(sigset_t *set)
  48. {
  49.     return 0;
  50. }
  51.  
  52. int
  53. sigfillset(sigset_t *set)
  54. {
  55.     return 0;
  56. }
  57.  
  58. int
  59. sigaddset(sigset_t *set, int signo)
  60. {
  61.     return 0;
  62. }
  63.  
  64. int
  65. sigdelset(sigset_t *set, int signo)
  66. {
  67.     return 0;
  68. }
  69.  
  70. int
  71. sigismember(sigset_t *set, int signo)
  72. {
  73.     return 0;
  74. }
  75.  
  76. int
  77. wait(int *p)
  78. {
  79.     return -1;
  80. }
  81.