1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
.\" Copyright (c) 2000 Andries Brouwer (aeb@cwi.nl)
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Japanese Version Copyright (c) 1997 Hiroaki Nagoya
.\" all rights reserved.
.\" Translated Mon Sep 21 20:47:50 JST 1998 by Hiroaki Nagoya <nagoya@is.titech.ac.jp>
.\" Updated&Modified Fri 9 Feb 2001 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.TH GETPASS 3 2000-12-05 "Linux" "Linux Programmer's Manual"
.SH ̾
getpass \- ѥɤ
.SH
.B #include <unistd.h>
.sp
.B "char *getpass( const char *" prompt );
.SH
δؿ obsolete Ǥ롣Ѥʤȡ
.PP
.BR getpass ()
ؿ
.I /dev/tty
(ץü) ץʸ
.I prompt
Ϥ롣 echo դˤ (֥ѥɡ)
ɤ߹ߡüξ֤ᤷơƤ
.I /dev/tty
롣
.SH ֤
.BR getpass ()
ؿϤ줿ѥ
(κǽ
.B PASS_MAX
ХȤޤ) ޤ줿
ƥåʥХåեؤΥݥ֤
βԤϴޤޤʤʸ NULL Х ('\\0') ǽü롣
ΥХåեϡʹߤδؿǾ뤫⤷ʤ
顼ȡüξ֤
.I errno
ŬڤͤꤷơNULL ֤
.SH 顼
δؿϰʲΤ褦ʾ˼Ԥ롣
.TP
.B ENXIO
ץüäƤʤ
.SH ե
.I /dev/tty
.\" .SH
.\" .BR getpass ()
.\" ؿ Version 7 AT&T UNIX о줷
.SH
SUSv2 ˤ¸ߤ뤬̾ (LEGACY) ȰդƤ롣
POSIX.1-2001 Ǻ줿
.SH
libc4 libc5 Ǥϡ
.I prompt
.I /dev/tty
ˤǤϤʤ
.I stderr
˽Ϥ줿ˡ
.I /dev/tty
ץǤʤϡѥɤ
.I stdin
ɤ߹ޤ줿
ƥåʥХåեĹ 128 ХȤäΤǡ
ѥɤκǽ 127 ʸ֤줿
ѥɤɤǤˤϡʥȯ
.RB ( SIGINT ,
.BR SIGQUIT ,
.BR SIGSTOP ,
.BR SIGTSTOP )
̵ˤ졢
줾бʸ (̾ Ctrl-C, Ctrl-\e, Ctrl-Z, Ctrl-Y)
ϤΤޤޥѥɤΰȤϤ줿
libc 5.4.19 ϹԽ̵ˤ졢
äƥХåڡʤɤѥɤΰȤߤʤ褦ˤʤä
.PP
glibc2 Ǥϡ
.I /dev/tty
ץǤʤ
.I prompt
.I stderr
˽Ф졢ѥɤ
.I stdin
ɤ߹ޤ줿
ѥɤĹˤ¤Ϥʤ
Խ̵ˤϤʤä
.PP
SUSv2 ˤС
.B PASS_MAX
ͤ 8 ʲξϡͤ
.I <limits.h>
ƤʤФʤʤ
ξǤ⤳ͤ
.I sysconf(_SC_PASS_MAX)
ˤäƼǤ롣
POSIX.2
.BR PASS_MAX ,
.B _SC_PASS_MAX
ȴؿ
.BR getpass ()
겼
libc4 libc5 Ǥϡ
.B PASS_MAX
.B _SC_PASS_MAX
ϰ٤⥵ݡȤ줿ȤϤʤ
glibc2
.B _SC_PASS_MAX
դ
.B BUFSIZE
(㤨 8192) ֤
.SH Х
δؿƤӽФץϡ
Ǥ¤Υѥɤõ (ꥢ)
ꥢƥȤΥѥɤ
ΥץΥɥ쥹֤Ǹʤ褦ˤ٤Ǥ롣
.SH Ϣ
.BR crypt (3)
|