Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 60357

Input/Output of data to/from a system. This usually implies file storage or network communication, but may also mean interaction with a user through a user interface.

3 votes

How does a process know the location of another's stdout, stderr, stdin?

Under Unix, processes have file descriptors (fd). They are numbered, and the numbers are unique to a process. The fd 0 is stdin, fd 1 and 2 are stdout and stderr, respectively. These initial file desc …
amon's user avatar
  • 135k
8 votes
Accepted

Who is responsible for stream positioning?

The caller is responsible for putting the Stream in a suitable state to be consumed by the reader. There are two main reasons: Not all streams support repositioning. You should only set the Stream.P …
amon's user avatar
  • 135k
2 votes
Accepted

Is Epoll/Multiplexing suitable to make network requests instead of "listen to" incoming requ...

Select and Epoll were and are fundamentally flawed APIs. They tell us efficiently if I/O operations are possible on a particular file descriptor, but do not actually let us perform the I/O operation i …
amon's user avatar
  • 135k
47 votes
Accepted

Why do we have to mention the data type of the variable in C

You are comparing variable declarations to #defines, which is incorrect. With a #define, you create a mapping between an identifier and a snippet of source code. The C preprocessor will then literally …
amon's user avatar
  • 135k