38.2 - The dup2 System Call - A C tutorial for redirecting stdin and stdout using system calls.

  Рет қаралды 27,853

Kris Jordan

Kris Jordan

Күн бұрын

Пікірлер: 23
@diegod.8518
@diegod.8518 3 жыл бұрын
By far the best explanation on this topic I have found on the web. The way you visualize, reiterate, and add different examples while switching from code to illustrations is superb.
@alvinlu1512
@alvinlu1512 4 жыл бұрын
The best explanation I found online! Excellent!
@moisesdevs
@moisesdevs 3 жыл бұрын
great video! The world needs more teachers like you! Subscribed
@pochopsp
@pochopsp 4 жыл бұрын
Great video and explaination. Now I get it all. Thx a lot
@techlover714
@techlover714 3 жыл бұрын
Greatest work on youtube please make videos on multithreading. Your videos are magic.
@omartrkzi
@omartrkzi 3 жыл бұрын
Finally some real English ...... God ! My ears ...
@splodys
@splodys 3 жыл бұрын
This is great content! keep up the great work, helped me immenselly!
@marcosmecatronikify
@marcosmecatronikify Жыл бұрын
great explanation, thank you very much for sharing your knowledge!
@YourName0729
@YourName0729 3 жыл бұрын
Thank you! Very clear and detailed!
@miquelmunoz611
@miquelmunoz611 3 жыл бұрын
you saved my semester
@narvik7587
@narvik7587 2 жыл бұрын
Thanks for your video. I am really appreciated 😭
@naibiyilidaer5580
@naibiyilidaer5580 3 жыл бұрын
Thank you so much!
@malakggh
@malakggh Жыл бұрын
Thank you so much, it's really amazing video. What application do you use for drawing on the screen ?
@oussamakaddami4543
@oussamakaddami4543 4 жыл бұрын
Excellent!
@p_molnar
@p_molnar 2 жыл бұрын
superb video! What program and device are you using to annotate the screen real time?
@aloonz8929
@aloonz8929 3 жыл бұрын
thank you!
@activelivingchallenger4298
@activelivingchallenger4298 3 жыл бұрын
I don't think you need to use dup2 to implement redirect but I guess he is just using dup2 to show how it works. If you close stdout before calling open what the open function will do is find the lowest file descriptor available (which is now STDOUT) and use that instead of creating a new file descriptor which is FD3 in this example.
@shelbys4252
@shelbys4252 3 жыл бұрын
I love u
@shubhambhakuni9306
@shubhambhakuni9306 4 жыл бұрын
how to reset output to stdout?
@ibthajsami8497
@ibthajsami8497 3 жыл бұрын
same Question!
@e-leman
@e-leman Жыл бұрын
you have to store it in another fd and dup2 to 1 again after you done
@CNET24th
@CNET24th 3 жыл бұрын
why do you sound like the guy from khanacademy?
@chamarasilva7700
@chamarasilva7700 3 жыл бұрын
how to reset stdin/out to the terminal?
LS37.1 - Input/Output Introduction
31:02
Kris Jordan
Рет қаралды 4,1 М.
哈莉奎因被吓到了#Cosplay
00:20
佐助与鸣人
Рет қаралды 32 МЛН
why do header files even exist?
10:53
Low Level
Рет қаралды 460 М.
Redirecting standard output in C
15:39
CodeVault
Рет қаралды 97 М.
Unix system calls (1/2)
45:16
Brian Will
Рет қаралды 442 М.
38.1 - The exec System Call
18:21
Kris Jordan
Рет қаралды 4,4 М.
The Dark Side of .reserve()
18:50
Logan Smith
Рет қаралды 185 М.
Linux Crash Course - Data Streams (stdin, stdout & stderr)
17:13
Learn Linux TV
Рет қаралды 59 М.
How to execute another program in C (using exec)
14:23
CodeVault
Рет қаралды 113 М.
C can do this too and it's faster than Python
2:09:48
Tsoding Daily
Рет қаралды 23 М.
37.2 - Pipes
12:14
Kris Jordan
Рет қаралды 4,7 М.