PostgreSQL Source Code  git master
explicit_bzero.c File Reference
#include "c.h"
Include dependency graph for explicit_bzero.c:

Go to the source code of this file.

Functions

static void bzero2 (void *buf, size_t len)
 
void explicit_bzero (void *buf, size_t len)
 

Variables

static void(*volatile bzero_p )(void *, size_t) = bzero2
 

Function Documentation

◆ bzero2()

static void bzero2 ( void *  buf,
size_t  len 
)
static

Definition at line 42 of file explicit_bzero.c.

43 {
44  memset(buf, 0, len);
45 }
const void size_t len
static char * buf
Definition: pg_test_fsync.c:73

References buf, and len.

◆ explicit_bzero()

void explicit_bzero ( void *  buf,
size_t  len 
)

Definition at line 50 of file explicit_bzero.c.

51 {
52  bzero_p(buf, len);
53 }
static void(*volatile bzero_p)(void *, size_t)

References buf, bzero_p, and len.

Referenced by freePGconn(), passwordFromFile(), pg_cryptohash_create(), pg_cryptohash_free(), pg_hmac_create(), pg_hmac_free(), pqReleaseConnHosts(), and run_ssl_passphrase_command().

Variable Documentation

◆ bzero_p

void(*volatile bzero_p) (void *, size_t) ( void *  ,
size_t   
) = bzero2
static

Definition at line 47 of file explicit_bzero.c.

Referenced by explicit_bzero().