home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21fs.zip / octave / mkfifo / mkfifo.h < prev    next >
C/C++ Source or Header  |  2000-01-15  |  1KB  |  47 lines

  1. /*
  2. ** ****************************************************************************
  3. ** The header file for mkfifo.
  4. ** (c) Klaus Gebhardt, 1997
  5. ** ****************************************************************************
  6. */
  7.  
  8. /*
  9. ** ****************************************************************************
  10. ** This was written for the OS/2 port of Octave, but it is not part of Octave!
  11. ** You can use the code UNMODIFIED. If you think changes are necessary,
  12. ** please send me a mail (gebhardt@crunch.ikp.physik.th-darmstadt.de).
  13. ** Thanks,
  14. **   Klaus Gebhardt
  15. ** ****************************************************************************
  16. */
  17.  
  18. #ifndef _MKFIFO_H_
  19. #define _MKFIFO_H_
  20.  
  21. #if defined (__cplusplus)
  22. extern "C" {
  23. #endif
  24.  
  25. #ifndef _MKFIFO_NAMED_PIPE_
  26. #define _MKFIFO_NAMED_PIPE_ "\\PIPE\\MKFIFO\\SERVER\\CON"
  27. #endif
  28.  
  29. #include <sys/types.h>
  30. #include <sys/stat.h>
  31.  
  32. #define _MKFIFO_CREATE_NMP_   0
  33. #define _MKFIFO_REMOVE_NMP_   1
  34. #define _MKFIFO_LIST_NMPS_    2
  35. #define _MKFIFO_EXIT_SERVER_ 11
  36.  
  37.   int mkfifo (const char *, mode_t);
  38.   int remove_mkfifo (const char *);
  39.   int list_named_pipes ();
  40.   int exit_server ();
  41.  
  42. #if defined (__cplusplus)
  43. }
  44. #endif
  45.  
  46. #endif
  47.