summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/readpassphrase.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r294691:sobomax2016-01-301-8/+16
| | | | | | Fix readpassphrase(3) when it's called with stdin being closed. Approved by: re (delphij)
* MFC r287292:kib2015-09-051-18/+19
| | | | | | | | | | Switch libc from using _sig{procmask,action,suspend} symbols, which are aliases for the syscall stubs and are plt-interposed, to the libc-private aliases of internally interposed sigprocmask() etc. MFC r287300: Use libthr interposed functions instead of syscalls, in posix_spawn()' child.
* MFC r268642:pfg2014-07-211-4/+4
| | | | | | | | | | | | | | | | | | | | libc/gen: small updates to code originating at OpenBSD arc4random.c - CVS rev. 1.22 Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. - CVS rev. 1.23 Spacing readpassphrase.c -CVS rev. v 1.24 most obvious unsigned char casts for ctype Obtained from: OpenBSD
* libc: Use O_CLOEXEC for various internal file descriptors.jilles2012-09-291-1/+1
| | | | | | | | | This fixes a race condition where another thread may fork() before CLOEXEC is set, unintentionally passing the descriptor to the child process. This commit only adds O_CLOEXEC flags to open() or openat() calls where no fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still leaves a race window so it should be fixed later.
* Sync with OpenBSD, primarily better signal and terminal handling.delphij2010-11-131-63/+79
| | | | | Obtained from: OpenBSD MFC after: 2 weeks
* Fix build. I commented out getpass() in readpassphrase.c because thegreen2002-03-091-3/+3
| | | | | | | | | implementation did not match our manpage description (i.e., it could return NULL). I mistakenly thought we were still using getpass.c because, for some reason, CVS never removed it from the tree. Pointy hat received from: alfred Kick in the groin to: CVS
* Update readpassphrase(3)to the latest revisions. Changes are mainly duegreen2002-03-081-25/+67
| | | | | | | to return value constraints now changing as well as more intelligent handling of signals. Obtained from: OpenBSD
* fix compilation (include -> #include)fjoe2001-11-211-1/+1
|
* Should also include namespace.hgreen2001-11-211-1/+3
| | | | Submitted by: ru
* Change certain syscalls from x to _x.green2001-11-211-7/+7
| | | | Prodded by: bde
* Introduce readpassphrase(3), a superset of getpass(3). Thisgreen2001-11-201-0/+134
comes originally from Todd Miller. Obtained from: OpenBSD
OpenPOWER on IntegriCloud