Skip to Content
The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition
book

The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

by W. Richard Stevens, Bill Fenner, Andrew M. Rudoff
November 2003
Intermediate to advanced
1024 pages
25h 50m
English
Addison-Wesley Professional
Content preview from The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

Chapter 17. ioctl Operations

Introduction

The ioctl function has traditionally been the system interface used for everything that didn’t fit into some other nicely defined category. POSIX is getting rid of ioctl for certain functionality by creating specific wrapper functions to replace ioctls whose functionality is being standardized by POSIX. For example, the Unix terminal interface was traditionally accessed using ioctl, but POSIX created 12 new functions for terminals: tcgetattr to get the terminal attributes, tcflush to flush pending input or output, and so on. In a similar vein, POSIX has replaced one network ioctl: the new sockatmark function (Section 24.3) replaces the SIOCATMARK ioctl. Nevertheless, numerous ioctls remain for implementation-dependent ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go

Network Programming with Go

Adam Woodbeck

Publisher Resources

ISBN: 0131411551Purchase book