344 * Softcarrier ioctls
345 */
346 #define TIOCGSOFTCAR (_TIOC|105)
347 #define TIOCSSOFTCAR (_TIOC|106)
348
349
350 /* termios ioctls */
351
352 #define TCGETS (_TIOC|13)
353 #define TCSETS (_TIOC|14)
354 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
355 #define TCSANOW (_TIOC|14) /* same as TCSETS */
356 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
357 #define TCSETSW (_TIOC|15)
358 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
359 #define TCSADRAIN (_TIOC|15) /* same as TCSETSW */
360 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
361 #define TCSETSF (_TIOC|16)
362
363 /*
364 * NTP PPS ioctls
365 */
366 #define TIOCGPPS (_TIOC|125)
367 #define TIOCSPPS (_TIOC|126)
368 #define TIOCGPPSEV (_TIOC|127)
369
370 /* Argument filled in by TIOCGPPSEV */
371 struct ppsclockev {
372 struct timeval tv;
373 uint_t serial;
374 };
375
376 #if defined(_SYSCALL32)
377 struct ppsclockev32 {
378 struct timeval32 tv;
379 uint32_t serial;
380 };
381 #endif /* _SYSCALL32 */
382
383 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
|
344 * Softcarrier ioctls
345 */
346 #define TIOCGSOFTCAR (_TIOC|105)
347 #define TIOCSSOFTCAR (_TIOC|106)
348
349
350 /* termios ioctls */
351
352 #define TCGETS (_TIOC|13)
353 #define TCSETS (_TIOC|14)
354 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
355 #define TCSANOW (_TIOC|14) /* same as TCSETS */
356 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
357 #define TCSETSW (_TIOC|15)
358 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
359 #define TCSADRAIN (_TIOC|15) /* same as TCSETSW */
360 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
361 #define TCSETSF (_TIOC|16)
362
363 /*
364 * linux terminal ioctls we need to be aware of
365 */
366 #define TIOCSETLD (_TIOC|123) /* set line discipline parms */
367 #define TIOCGETLD (_TIOC|124) /* get line discipline parms */
368
369 /*
370 * The VMIN and VTIME and solaris overlap with VEOF and VEOL - This is
371 * perfectly legal except, linux expects them to be separate. So we keep
372 * them separately.
373 */
374 struct lx_cc {
375 unsigned char veof; /* veof value */
376 unsigned char veol; /* veol value */
377 unsigned char vmin; /* vmin value */
378 unsigned char vtime; /* vtime value */
379 };
380
381 /*
382 * NTP PPS ioctls
383 */
384 #define TIOCGPPS (_TIOC|125)
385 #define TIOCSPPS (_TIOC|126)
386 #define TIOCGPPSEV (_TIOC|127)
387
388 /* Argument filled in by TIOCGPPSEV */
389 struct ppsclockev {
390 struct timeval tv;
391 uint_t serial;
392 };
393
394 #if defined(_SYSCALL32)
395 struct ppsclockev32 {
396 struct timeval32 tv;
397 uint32_t serial;
398 };
399 #endif /* _SYSCALL32 */
400
401 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
|