Sponsored Content
Full Discussion: Chardev.c
Operating Systems Linux Chardev.c Post 302778347 by Corona688 on Sunday 10th of March 2013 01:55:45 PM
Old 03-10-2013
It's used for hundreds of device control things where the usual system calls don't quite fit. It's hard to give an "average" example since it's almost guaranteed to not make sense out of context.

There are ioctl's to make a cdrom play or pause.

There are ioctl's to set the format of a floppy drive.

There are ioctl's to get the geometry of a hard drive.

There are ioctl's to control a linux PPP network device.

There are ioctl's to control sound cards.

There are ioctl's to set or clear lines on a serial port.

etc, etc.
 
diction(1)						      General Commands Manual							diction(1)

NAME
diction, explain, suggest - Prints wordy sentences and looks them up in an interactive thesaurus. SYNOPSIS
diction [-fpattern_file] [-k] [-ma] [-me] [-ml] [-ms] [-n] [file...] explain suggest The diction command finds all sentences in an English language document that contain phrases from a database of bad or wordy diction. The explain command is an interactive thesaurus for the English language phrases found by the diction command and only for those phrases. The diction command reads from standard in if no file operand is provided. The suggest command is a synonym for explain. OPTIONS
Names a user-created pattern file to be used in addition to the default file. Passes the -k option to the deroff command. The -k option keeps blocks of text specified nroff by requests or macros; for example, the request. Passes the -ma option to deroff. The -ma option interprets nroff man macros only. Overrides the default nroff -ms macro package. Causes deroff to skip lists; should be used if a docu- ment contains many lists of nonsentences. Overrides the default nroff -ms macro package. Suppresses use of the default file (used with -f). Only the user-created pattern file is used. DESCRIPTION
Each phrase found by the diction command is enclosed in [ ] (brackets). Because diction runs deroff before looking at the text, include formatting header files as part of the input. Before using the explain command, use the diction command to obtain a list of poorly worded phrases. When you use the explain command, the system prompts you for a phrase and responds with a grammatically acceptable alternative. You can continue typing phrases, or you can exit by pressing the End-of-File key sequence. The explain command can also take input redirected from a file. No other command line arguments are valid. NOTES
Use of nonstandard formatting macros may cause incorrect sentence breaks. In particular, diction does not understand -me. FILES
Default pattern file. Thesaurus used by the explain command. SEE ALSO
Commands: deroff(1), nroff(1) diction(1)
All times are GMT -4. The time now is 12:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy