Give an example of how isatty(3) might return the wrong answer.

What will be an ideal response?


The isatty function is usually implemented as a non-destructive ioctl command, such as TCGETA,supported by all terminal devices. If another device driver that is not a terminal driver supports an ioctl command with the same number value as TCGETA,and if you open this device and pass the ?le descriptor toisatty, it will return true (nonzero) if the ioctl command succeeds.

Computer Science & Information Technology

You might also like to view...

The __________ interface allows the client to hold on to a resource until the client is notified that someone else needs the resource.

A) ?Resource configure ? B) ?Resource requested C) ?Resource ? D) ?Resource-specific

Computer Science & Information Technology

Experiment by calling the file utility with the names of files in /usr/bin. How many different types of files are there?

What will be an ideal response?

Computer Science & Information Technology

Which one of the following is not a valid key length for the Advanced Encryption Standard?

A. 128 bits B. 192 bits C. 256 bits D. 384 bits

Computer Science & Information Technology

What are the differences between Generation 1 and Generation 2 virtual machines?

What will be an ideal response?

Computer Science & Information Technology