fd, dup()/dup2() system call tutorial

preview_player
Показать описание
In this video, we illusrate the basics of dup() and dup2() and how you can use these system calls to modify the file descriptors of your system. Modifying these file descriptors will allow us to change the direction of input and output of our program (e.g: instead of having our program read stdin from the terminal, we can have our program read stdin from our file, instead).
Рекомендации по теме
Комментарии
Автор

You're describing this better than the prof. Thank you!

gabrielt
Автор

When you don't get it from the man page for 30 minutes and get it from a 4-minute video made in 2014...

mohammedmokhtar
Автор

You saved me from failing system programming. God bless you both

taras
Автор

From your videos I learned faster, I can't believe myself, you guys make it look easy !

SoufianeSabiri
Автор

From 42Paris, Thank you for this video !! I obviously subscribe and hope you will do more videos (ok, 6 years after this one :( ) . I will talk about your videos in 42! It is so easier to understand by drawings than by code . MERCI

helene
Автор

I got an assignment involving pipes - and I had no idea what a file descriptor or the dup() system call was. I would've been screwed without this tutorial. Thank you so much!

SWAGCOWVIDEO
Автор

Was having a hard time understanding dup/dup2 until I saw this video. Thanks guys!

TheEmbeddedLinuxDude
Автор

Thank you! It is a lot more information that I could find in other videos!❤

svetameanssun
Автор

Best video of dupp in youtube ! congrats guys !

tal
Автор

Awesome video guys!! Made a very strange concept very easy to grasp!!

jamesdouitsis
Автор

9 months later I'm back at this video again. Still begging you two to become profs <3

tessacarstairs
Автор

such more i learn, more my loving for programming increases

newtao
Автор

An excellent explanation, thank you very much.

alexmathai
Автор

Really nice and clear video, thank you guys :)

CanardWC
Автор

Thank you so much im gonna go through your whole channel rn maybe ill pass the course

wyozynd
Автор

Your videos are quite good. Why don't you make more? Do you still code?

gbr
Автор

Very nice helpful video, thanks a lot guys.

MrVerao
Автор

This was a lot of good information. But I'd like it to better explain the part where we open a file into the fd[0] slot. and how that's done.

ManGo
Автор

Super useful, thank you for the upload :)

cele_stin
Автор

thank you so much! this was really helpful. 

chloeduan