Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created June 16, 2015 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shichao-an/26d278ca768f90e8c67a to your computer and use it in GitHub Desktop.
Save shichao-an/26d278ca768f90e8c67a to your computer and use it in GitHub Desktop.
#include <unistd.h> /* System V */
#include <sys/ioctl.h> /* BSD and Linux */
int ioctl(int fd, int request, ...);
/* Returns: −1 on error, something else if OK */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment