File: includes.h

package info (click to toggle)
pdns-recursor 5.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 11,116 kB
  • sloc: cpp: 109,672; javascript: 20,651; python: 5,657; sh: 5,114; makefile: 782; ansic: 582; xml: 37
file content (29 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "config.h"

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>

#include <errno.h>
#include <unistd.h>

#define seed_from_prngd(a, b) -1

#ifndef HAVE_ARC4RANDOM
uint32_t arc4random(void);
#endif
#ifndef HAVE_ARC4RANDOM_BUF
void arc4random_buf(void *buf, size_t nbytes);
#endif
#ifndef HAVE_ARC4RANDOM_UNIFORM
uint32_t arc4random_uniform(uint32_t upper_bound);
#endif
#ifndef HAVE_EXPLICIT_BZERO
void explicit_bzero(void *, size_t len);
#endif

int _ssh_compat_getentropy(void *, size_t);

#define DEF_WEAK(x)