Move arc4random declarations to <bsd/stdlib.h>

This is were they are located on the BSDs.
This commit is contained in:
Guillem Jover 2009-12-11 23:12:26 +01:00
parent 4d17a18db5
commit 3c9182b85e
3 changed files with 6 additions and 8 deletions

View File

@ -39,7 +39,6 @@
#include <bsd/string.h>
#include <bsd/err.h>
#include <bsd/getopt.h>
#include <bsd/random.h>
#include <bsd/md5.h>
#include <time.h>

View File

@ -27,14 +27,9 @@
#ifndef LIBBSD_RANDOM_H
#define LIBBSD_RANDOM_H
#include <sys/cdefs.h>
#include <sys/types.h>
#warning "This header is deprecated, use the one in bsd/stdlib.h instead."
__BEGIN_DECLS
u_int32_t arc4random();
void arc4random_stir();
void arc4random_addrandom(u_char *dat, int datlen);
__END_DECLS
#include <bsd/stdlib.h>
#endif

View File

@ -38,6 +38,10 @@
#include <libutil.h>
__BEGIN_DECLS
u_int32_t arc4random();
void arc4random_stir();
void arc4random_addrandom(u_char *dat, int datlen);
int dehumanize_number(const char *str, int64_t *size);
const char *fmtcheck (const char *, const char *);