Why a pair of pseudo-terminals?What are pseudo terminals (pty/tty)?Why are there so many virtual terminal...

Why are Krueger flaps called flaps and not slats?

Is there any research on the development of attacks against artificial intelligence systems?

How can a stock trade for a fraction of a cent?

Banks in the City of London

Can I use Oko's ability targetting a creature with protection from green?

What actually is "unallocated space"?

Why is Mars cold?

When applying for a visa has there ever been a case of embassy asking for proof of right to be in the present country?

Does Turkey make the "structural steel frame" for the F-35 fighter?

How were Kurds involved (or not) in the invasion of Normandy?

What is the maximum amount of melee weapon attacks a character can make reliably every turn?

Have the US and Russia (or USSR before it) co-vetoed a UN resolution before today?

Why doesn't hot charcoal glow blue?

Can set-like objects obeying ZFC be constructed in Euclidean geometry?

How can I seal 8 inch round holes in my siding?

Is the phrase “You are requested” polite or rude?

I'm half of a hundred

Most optimal hallways with random gravity inside?

The Immortal Jellyfish

Making a pikuach nefesh phone call on Yom Kippur - mitsva or something to be avoided?

Why it is a big deal whether or not Adam Schiff talked to the whistleblower?

when to use がつ or げつ readings for 月?

Will I be allowed to enter the US after living there illegally then legally in the past?

What exactly is meant by "partial function" in functional programming?



Why a pair of pseudo-terminals?


What are pseudo terminals (pty/tty)?Why are there so many virtual terminal devices?What is the TTY major number of your Unix?Why install gcc again in chapter 6 linux from scratchDo the standard streams all operate on the same file (/dev/tty)?what relations are between my current controlling terminal and `/dev/tty`?How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








1

















My question is more about the conception and design of pty than how it works.
I read chapter 64 (pseudo-terminals) of "The Linux Programming Interface" book and I can't understand why we use a pair of pseudo-terminal (ptmx, pts) and not one. When we look at /dev/tty[1,6], the virtual terminal is emulated and use one file. Why not do the same thing for pseudo-terminal and design an emulated system using one file instead of two?










share|improve this question







New contributor



Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






























    1

















    My question is more about the conception and design of pty than how it works.
    I read chapter 64 (pseudo-terminals) of "The Linux Programming Interface" book and I can't understand why we use a pair of pseudo-terminal (ptmx, pts) and not one. When we look at /dev/tty[1,6], the virtual terminal is emulated and use one file. Why not do the same thing for pseudo-terminal and design an emulated system using one file instead of two?










    share|improve this question







    New contributor



    Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.


























      1












      1








      1








      My question is more about the conception and design of pty than how it works.
      I read chapter 64 (pseudo-terminals) of "The Linux Programming Interface" book and I can't understand why we use a pair of pseudo-terminal (ptmx, pts) and not one. When we look at /dev/tty[1,6], the virtual terminal is emulated and use one file. Why not do the same thing for pseudo-terminal and design an emulated system using one file instead of two?










      share|improve this question







      New contributor



      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      My question is more about the conception and design of pty than how it works.
      I read chapter 64 (pseudo-terminals) of "The Linux Programming Interface" book and I can't understand why we use a pair of pseudo-terminal (ptmx, pts) and not one. When we look at /dev/tty[1,6], the virtual terminal is emulated and use one file. Why not do the same thing for pseudo-terminal and design an emulated system using one file instead of two?







      linux pseudoterminal






      share|improve this question







      New contributor



      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor



      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 1 hour ago









      HisabHisab

      61 bronze badge




      61 bronze badge




      New contributor



      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Hisab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          0






          active

          oldest

          votes













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });







          Hisab is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded
















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f546430%2fwhy-a-pair-of-pseudo-terminals%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          Hisab is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded

















          Hisab is a new contributor. Be nice, and check out our Code of Conduct.













          Hisab is a new contributor. Be nice, and check out our Code of Conduct.












          Hisab is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f546430%2fwhy-a-pair-of-pseudo-terminals%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...