mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-20 22:01:56 +00:00
[PATCH] rename net_random to random32
Make net_random() more widely available by calling it random32 akpm: hopefully this will permit the removal of carta_random32. That needs confirmation from Stephane - this code looks somewhat more computationally expensive, and has a different (ie: callee-stateful) interface. [akpm@osdl.org: lots of build fixes, cleanups] Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net> Cc: Stephane Eranian <eranian@hpl.hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0187f879ee
commit
aaa248f6c9
6 changed files with 150 additions and 122 deletions
|
@ -19,6 +19,7 @@
|
|||
#define _LINUX_NET_H
|
||||
|
||||
#include <linux/wait.h>
|
||||
#include <linux/random.h>
|
||||
#include <asm/socket.h>
|
||||
|
||||
struct poll_table_struct;
|
||||
|
@ -193,9 +194,9 @@ extern int sock_map_fd(struct socket *sock);
|
|||
extern struct socket *sockfd_lookup(int fd, int *err);
|
||||
#define sockfd_put(sock) fput(sock->file)
|
||||
extern int net_ratelimit(void);
|
||||
extern unsigned long net_random(void);
|
||||
extern void net_srandom(unsigned long);
|
||||
extern void net_random_init(void);
|
||||
|
||||
#define net_random() random32()
|
||||
#define net_srandom(seed) srandom32(seed)
|
||||
|
||||
extern int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
|
||||
struct kvec *vec, size_t num, size_t len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue