christos
9a513d9643
make more descriptors that we open as close-on-exec
2014-09-18 13:58:20 +00:00
christos
1913c9411a
Recognize CR as end of line too. the telnet client passes that to us instead
...
of linefeed.
2014-06-16 16:29:30 +00:00
christos
8f44324e4d
make getpass and getpass_r print a newline like they did before.
2012-05-26 19:34:16 +00:00
christos
b7d2912934
test for both NUL and _POSIX_VDISABLE, because _POSIX_VDISABLE propagation
...
between different daemons and OS's does not seem reliable.
2012-05-02 14:36:07 +00:00
christos
3765cebf73
- If fd == NULL, do the dance with opening /dev/tty
...
- Add a flag to enter a newline when we are done.
2012-04-14 01:33:43 +00:00
christos
d6d7452b38
prefer ETIMEDOUT.
2012-04-13 14:42:18 +00:00
christos
77cac556d1
add timeout.
2012-04-13 14:39:34 +00:00
christos
98ba7d206f
- don't update the length of the buffer until the allocation succeeds
...
- print only printable characters otherwise print '?'
2012-04-13 14:16:27 +00:00
christos
4e156f338e
unconfuse lint; XXX: should really fix lint.
2012-04-13 02:20:50 +00:00
christos
311b90b920
add GETPASS_ECHO_STAR
2012-04-12 23:16:38 +00:00
christos
969c948d8b
add getpassfd() that gives us even more fine grain control on how to get
...
the password.
2012-04-12 22:07:44 +00:00
christos
10fa0b6411
raise signals for the tty characters that do.
2012-04-12 20:08:01 +00:00
christos
48c7acbcd7
Add a new getpass implementation that does not mess with signals, and
...
include getpass_r
2012-04-12 19:36:19 +00:00
christos
8bb176858f
block signals before playing with files. From Anon Ymous
2008-01-01 21:22:55 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem
b48252f365
* use _DIAGASSERT() to check pointer arguments against NULL and file
...
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1999-09-16 11:44:54 +00:00
perry
4146d58604
remove obsolete register declarations
1998-02-03 18:23:37 +00:00
jtc
43fa6fe319
If port provides __weak_alias(), provide an Standard C and POSIX pure
...
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
3e458a6238
Fix RCSID's
...
Fix gcc warning
1997-07-13 19:13:01 +00:00
jtc
9647f42d70
Signal mask was not restored correctly.
...
Fix from James Chacon <jmc@pobox.com> in PR #2442 .
1996-05-20 06:13:07 +00:00
christos
b2459dacce
Use the POSIX signal mask interface
1996-05-16 19:39:13 +00:00
jtc
edbbf562ba
<sys/termios.h> -> <termios.h>
1995-06-16 07:20:35 +00:00
jtc
88ba3f858c
Changed <sys/signal.h> to <signal.h>
1995-02-28 01:13:50 +00:00
cgd
b585e843ca
update from Lite, with local changes. fix Ids, etc.
1995-02-27 04:12:15 +00:00
jtc
672f7a6292
Use _PATH_TTY constant instead of "/dev/tty".
1994-01-04 18:27:08 +00:00
jtc
9c20f740a3
Declare rcsid strings so they are stored in text segment.
1993-08-26 00:43:03 +00:00
mycroft
f23f94cb77
Add even more RCS frobs.
1993-07-30 08:21:41 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00