rufilio.h 595 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * general file and stream ioctls
  3. */
  4. /*
  5. * for FIOINSLD
  6. */
  7. struct insld {
  8. short ld;
  9. short level;
  10. };
  11. /*
  12. * for passing files across streams
  13. */
  14. struct passfd {
  15. int fd;
  16. short uid;
  17. short gid;
  18. short nice;
  19. char logname[8];
  20. };
  21. /*
  22. * file ioctls
  23. */
  24. #define FIOCLEX (('f'<<8)|1)
  25. #define FIONCLEX (('f'<<8)|2)
  26. #define FIOPUSHLD (('f'<<8)|3)
  27. #define FIOPOPLD (('f'<<8)|4)
  28. #define FIOLOOKLD (('f'<<8)|5)
  29. #define FIOINSLD (('f'<<8)|6)
  30. #define FIOSNDFD (('f'<<8)|7)
  31. #define FIORCVFD (('f'<<8)|8)
  32. #define FIOACCEPT (('f'<<8)|9)
  33. #define FIOREJECT (('f'<<8)|10)
  34. #define FIONREAD (('f'<<8)|127)