home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 4037 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.3 KB

  1. Xref: sparky comp.unix.programmer:4037 comp.unix.sysv386:12693
  2. Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!galileo.cc.rochester.edu!ee.rochester.edu!moscom!jmp
  3. From: jmp@moscom.UUCP (Joe Palumbos)
  4. Newsgroups: comp.unix.programmer,comp.unix.sysv386
  5. Subject: Re: I/O of login shell
  6. Message-ID: <3849@moscom.UUCP>
  7. Date: 31 Jul 92 13:24:48 GMT
  8. References: <1992Jul29.220116.1634@wariat.org>
  9. Distribution: usa
  10. Organization: Moscom Corp., Pittsford, NY
  11. Lines: 32
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. erica@wariat.org (Lady of the BitMode) writes:
  15. : Hi.
  16. : I'm running SVR4. First a very very brief to help along the way.
  17. : When a person logins into a unix system the system must first:
  18. : 1) spawn a getty from teriminal
  19. : 2)  getty runs login
  20. : 3) then getty exec users specified shell, [...]
  21. : 4) user gets 3 basic file handles:
  22. :    stdout 0, stdin 1, stderr 2.
  23. : [.....]
  24. : PS: I'm gonna go try the above. I know it's not going tobe a trivial task! :(
  25. : Thankyou:
  26. : Erica C. Ramsey
  27.  
  28. Lady Erica,
  29.  
  30. This looks like it should work; but you have your stdin & stdout fd's 
  31. mixed up.  If you look in unistd.h, you'll see defines for these:
  32.  
  33.     #define   STDIN_FILENO   0
  34.     #define   STDOUT_FILENO  1
  35.     #define   STDERR_FILENO  2
  36.  
  37. Good luck.
  38. -- 
  39. Joe Palumbos    jmp@moscom.com        {rit,tropix,ur-valhalla}!moscom!jmp
  40.