[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNOKKI WITH SUN SOLARIS 8
From: |
Pawel Kot |
Subject: |
Re: GNOKKI WITH SUN SOLARIS 8 |
Date: |
Tue, 29 Oct 2002 18:04:05 +0100 |
>>> address@hidden 29 October 2002 17:21:20 >>>
> #ifndef __unices__ || WIN32
> if (ioctl(fd, FIONREAD, n)) {
> dprintf("serial_nreceived: cannot get the received
data size\n");
> return GN_ERR_INTERNALERROR;
> }
> #endif
Here is a snipplet from /usr/include/sys/termios.h from Solaris and it
looks like a
correct solution for Solaris. Bozo, could you please take care of
this?
Probably:
#ifndef FIONREAD
# include <sys/termios.h>
# ifdef FIORDCHK
# define FIONREAD FIORDCHK
# else
# define FIONREAD 0 /* dunno what use here */
# endif
#endif
in compat.h would be sufficient.
/* POSIX job control ioctls */
#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
defined(__EXTENSIONS__)
[...]
/*
* Returns a non-zero value if there
* are characters in the input queue.
*
* XXX - somebody is confused here. V7 had no such "ioctl", although
XENIX may
* have added it; 4BSD had FIONREAD, which returned the number of
characters
* waiting, and was supposed to work on all descriptors (i.e., every
driver
* should make a stab at implementing it).
*/
#define FIORDCHK (('f'<<8)|3) /* V7 */
#endif /* (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE))... */
pkot