PostgreSQL Source Code: src/port/explicit_bzero.c Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15#define __STDC_WANT_LIB_EXT1__ 1

16

17#include "c.h"

18

19#if HAVE_DECL_MEMSET_S

20

21void

23{

24 (void) memset_s(buf, len, 0, len);

25}

26

27#elif defined(WIN32)

28

29void

31{

32 (void) SecureZeroMemory(buf, len);

33}

34

35#else

36

37

38

39

40

41

42

43static void

45{

47}

48

50

51void

53{

55}

56

57#endif

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

void explicit_bzero(void *buf, size_t len)

static void bzero2(void *buf, size_t len)