home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xntp3.zip / include / sys / clkdefs.h < prev   
C/C++ Source or Header  |  1992-08-11  |  760b  |  32 lines

  1. /*
  2.  * Defines for the "clk" timestamping STREAMS module
  3.  */
  4.  
  5. #include <sys/ioccom.h>
  6.  
  7. /*
  8.  * First, we need to define the maximum size of the set of
  9.  * characters to timestamp. 32 is MORE than enough.
  10.  */
  11.  
  12. #define CLK_MAXSTRSIZE 32
  13.  
  14. /*
  15.  * ioctl(fd, CLK_SETSTR, (char*)c );
  16.  *
  17.  * will tell the driver that any char in the null-terminated
  18.  * string c should be timestamped. It is possible, though
  19.  * unlikely that this ioctl number could collide with an
  20.  * existing one on your system. If so, change the 'K'
  21.  * to some other letter. However, once you've compiled
  22.  * the kernel with this include file, you should NOT
  23.  * change this file.
  24.  */
  25.  
  26. #if __STDC__
  27. #define CLK_SETSTR _IOWN('K',01,CLK_MAXSTRSIZE)
  28. #else
  29. #define CLK_SETSTR _IOWN(K,01,CLK_MAXSTRSIZE)
  30. #endif
  31.  
  32.