home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / getpass.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. GETPASS(3)                 UNIX Programmer's Manual                 GETPASS(3)
  3.  
  4. NNAAMMEE
  5.      ggeettppaassss - get a password
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ppwwdd..hh>>
  9.      ##iinncclluuddee <<uunniissttdd..hh>>
  10.  
  11.      _c_h_a_r _*
  12.      ggeettppaassss(_c_o_n_s_t _c_h_a_r _*_p_r_o_m_p_t)
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      The ggeettppaassss() function displays a prompt to, and reads in a password
  16.      from, _/_d_e_v_/_t_t_y. If this file is not accessible, ggeettppaassss displays the
  17.      prompt on the standard error output and reads from the standard input.
  18.  
  19.      The password may be up to _PASSWORD_LEN (currently 128) characters in
  20.      length.  Any additional characters and the terminating newline character
  21.      are discarded.
  22.  
  23.      GGeettppaassss turns off character echoing while reading the password.
  24.  
  25. RREETTUURRNN VVAALLUUEESS
  26.      GGeettppaassss returns a pointer to the null terminated password.
  27.  
  28. FFIILLEESS
  29.      /dev/tty
  30.  
  31. SSEEEE AALLSSOO
  32.      crypt(3)
  33.  
  34. HHIISSTTOORRYY
  35.      A ggeettppaassss function appeared in Version 7 AT&T UNIX.
  36.  
  37. BBUUGGSS
  38.      The ggeettppaassss function leaves its result in an internal static object and
  39.      returns a pointer to that object.  Subsequent calls to ggeettppaassss will modi­
  40.      fy the same object.
  41.  
  42.      The calling process should zero the password as soon as possible to avoid
  43.      leaving the cleartext password visible in the process's address space.
  44.  
  45. BSD Experimental                 May 21, 1991                                1
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.