getpass.c (128266) | getpass.c (175261) |
---|---|
1/* Copyright (C) 1992,93,94,95,96,97,98,99,2000, 2001 Free Software Foundation, Inc. 2 This file is part of the GNU C Library. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2, or (at your option) 7 any later version. 8 --- 23 unchanged lines hidden (view full) --- 32 done in software; there is no need to change the state of the terminal 33 hardware. */ 34 35#ifndef TCSASOFT 36# define TCSASOFT 0 37#endif 38 39char * | 1/* Copyright (C) 1992,93,94,95,96,97,98,99,2000, 2001 Free Software Foundation, Inc. 2 This file is part of the GNU C Library. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2, or (at your option) 7 any later version. 8 --- 23 unchanged lines hidden (view full) --- 32 done in software; there is no need to change the state of the terminal 33 hardware. */ 34 35#ifndef TCSASOFT 36# define TCSASOFT 0 37#endif 38 39char * |
40#if __STDC__ |
|
40getpass (const char *prompt) | 41getpass (const char *prompt) |
42#else 43getpass (prompt) 44 const char *prompt; 45#endif |
|
41{ 42 FILE *in, *out; 43 struct termios s, t; 44 int tty_changed; 45 static char *buf; 46 static size_t bufsize; 47 ssize_t nread; 48 --- 58 unchanged lines hidden --- | 46{ 47 FILE *in, *out; 48 struct termios s, t; 49 int tty_changed; 50 static char *buf; 51 static size_t bufsize; 52 ssize_t nread; 53 --- 58 unchanged lines hidden --- |