NCBI C++ ToolKit
Macros | Functions | Variables
readpassphrase.c File Reference
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <fcntl.h>
#include <replacements/readpassphrase.h>
#include <termios.h>
+ Include dependency graph for readpassphrase.c:

Go to the source code of this file.

Go to the SVN repository for this file.


#define _PATH_TTY   "/dev/tty"
#define _T_FLUSH   (TCSAFLUSH)


static void handler (int)
char * tds_readpassphrase (const char *prompt, char *buf, size_t bufsiz, int flags)


static volatile sig_atomic_t signo

Macro Definition Documentation


#define _PATH_TTY   "/dev/tty"

Definition at line 78 of file readpassphrase.c.


#define _T_FLUSH   (TCSAFLUSH)

Definition at line 84 of file readpassphrase.c.

Function Documentation

◆ handler()

static void handler ( int  s)

Definition at line 226 of file readpassphrase.c.

References signo.

Referenced by tds_readpassphrase().

◆ tds_readpassphrase()

char* tds_readpassphrase ( const char *  prompt,
char *  buf,
size_t  bufsiz,
int  flags 

Variable Documentation

◆ signo

volatile sig_atomic_t signo

Definition at line 92 of file readpassphrase.c.

Referenced by handler(), and tds_readpassphrase().

Modified on Mon Mar 04 05:13:12 2024 by rev. 669887