This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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