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.

Macros

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

Functions

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

Variables

static volatile sig_atomic_t signo
 

Macro Definition Documentation

◆ _PATH_TTY

#define _PATH_TTY   "/dev/tty"

Definition at line 78 of file readpassphrase.c.

◆ _T_FLUSH

#define _T_FLUSH   (TCSAFLUSH)

Definition at line 84 of file readpassphrase.c.

Function Documentation

◆ handler()

static void handler ( int  s)
static

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
static

Definition at line 92 of file readpassphrase.c.

Referenced by handler(), and tds_readpassphrase().

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