Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / kernel / sys / clkdefs.h
blobde0cceaeb34ad087886c73bd040b072aa5920bb2
1 /* $NetBSD$ */
3 /*
4 * Defines for the "clk" timestamping STREAMS module
5 */
7 #if defined(sun)
8 #include <sys/ioccom.h>
9 #else
10 #include <sys/ioctl.h>
11 #endif
14 * First, we need to define the maximum size of the set of
15 * characters to timestamp. 32 is MORE than enough.
18 #define CLK_MAXSTRSIZE 32
19 struct clk_tstamp_charset { /* XXX to use _IOW not _IOWN */
20 char val[CLK_MAXSTRSIZE];
24 * ioctl(fd, CLK_SETSTR, (char*)c );
26 * will tell the driver that any char in the null-terminated
27 * string c should be timestamped. It is possible, though
28 * unlikely that this ioctl number could collide with an
29 * existing one on your system. If so, change the 'K'
30 * to some other letter. However, once you've compiled
31 * the kernel with this include file, you should NOT
32 * change this file.
35 #if defined(__STDC__) /* XXX avoid __STDC__=0 on SOLARIS */
36 #define CLK_SETSTR _IOW('K', 01, struct clk_tstamp_charset)
37 #else
38 #define CLK_SETSTR _IOW(K, 01, struct clk_tstamp_charset)
39 #endif