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 }
static char * buf
Definition: pg_test_fsync.c:68

◆ explicit_bzero()

void explicit_bzero ( void *  buf,
size_t  len 
)

Definition at line 50 of file explicit_bzero.c.

References bzero_p.

Referenced by freePGconn(), passwordFromFile(), and run_ssl_passphrase_command().

51 {
52  bzero_p(buf, len);
53 }
static char * buf
Definition: pg_test_fsync.c:68
static void(*volatile bzero_p)(void *, size_t)

Variable Documentation

◆ bzero_p

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

Definition at line 47 of file explicit_bzero.c.

Referenced by explicit_bzero().