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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ค. 2024

ความคิดเห็น • 23

  • @diegod.8518
    @diegod.8518 3 ปีที่แล้ว +18

    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 3 ปีที่แล้ว +8

    The best explanation I found online! Excellent!

  • @omartrkzi
    @omartrkzi 3 ปีที่แล้ว +2

    Finally some real English ...... God ! My ears ...

  • @moisesdevs
    @moisesdevs 3 ปีที่แล้ว +1

    great video! The world needs more teachers like you! Subscribed

  • @splodys
    @splodys 3 ปีที่แล้ว +1

    This is great content! keep up the great work, helped me immenselly!

  • @YourName0729
    @YourName0729 2 ปีที่แล้ว +2

    Thank you! Very clear and detailed!

  • @pochopsp
    @pochopsp 3 ปีที่แล้ว +2

    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.

  • @marcosmecatronikify
    @marcosmecatronikify ปีที่แล้ว

    great explanation, thank you very much for sharing your knowledge!

  • @oussamakaddami4543
    @oussamakaddami4543 3 ปีที่แล้ว

    Excellent!

  • @naibiyilidaer5580
    @naibiyilidaer5580 2 ปีที่แล้ว

    Thank you so much!

  • @miquelmunoz611
    @miquelmunoz611 2 ปีที่แล้ว

    you saved my semester

  • @narvik7587
    @narvik7587 2 ปีที่แล้ว

    Thanks for your video. I am really appreciated 😭

  • @aloonz8929
    @aloonz8929 3 ปีที่แล้ว

    thank you!

  • @chamarasilva7700
    @chamarasilva7700 2 ปีที่แล้ว +2

    how to reset stdin/out to the terminal?

  • @p_molnar
    @p_molnar 2 ปีที่แล้ว

    superb video! What program and device are you using to annotate the screen real time?

  • @malakggh
    @malakggh ปีที่แล้ว

    Thank you so much, it's really amazing video.
    What application do you use for drawing on the screen ?

  • @shelbys4252
    @shelbys4252 3 ปีที่แล้ว

    I love u

  • @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.

  • @shubhambhakuni9306
    @shubhambhakuni9306 3 ปีที่แล้ว +2

    how to reset output to stdout?

    • @ibthajsami8497
      @ibthajsami8497 2 ปีที่แล้ว

      same Question!

    • @e-leman
      @e-leman ปีที่แล้ว

      you have to store it in another fd and dup2 to 1 again after you done

  • @jacobv4138
    @jacobv4138 2 ปีที่แล้ว

    why do you sound like the guy from khanacademy?