ioctl prototype

Joel Sherrill joel@OARcorp.com
Thu Sep 18 09:18:00 GMT 1997


An RTEMS user is putting together termios support for RTEMS and we can't
find a prototype for ioctl.  I was going to add one but do not know where
it should go.  Suggesstions appreciated:

It is in <sys/ioctl.h> on linux.

It is in <unistd.h> on Solaris but inside an ifdef:

#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \
        defined(__EXTENSIONS__)
extern int ioctl(int, int, ...);
#endif /* (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE))... */

I don't know where the proper place to put it is. 

Thanks.

--joel




More information about the Newlib mailing list