diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/net/af_unix.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r-- | include/net/af_unix.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 86b0e1ea1..06970ac67 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -7,8 +7,29 @@ extern void unix_notinflight(struct file *fp); typedef struct sock unix_socket; extern void unix_gc(void); -extern unix_socket *unix_socket_list; +#define UNIX_HASH_SIZE 16 -#define UNIX_MAX_FD 8 +extern unix_socket *unix_socket_table[UNIX_HASH_SIZE+1]; + +#define forall_unix_sockets(i, s) for (i=0; i<=UNIX_HASH_SIZE; i++) \ + for (s=unix_socket_table[i]; s; s=s->next) + +struct unix_address +{ + atomic_t refcnt; + int len; + unsigned hash; + struct sockaddr_un name[0]; +}; + +struct unix_skb_parms +{ + struct ucred creds; /* Skb credentials */ + struct scm_fp_list *fp; /* Passed files */ + unsigned attr; /* Special attributes */ +}; + +#define UNIXCB(skb) (*(struct unix_skb_parms*)&((skb)->cb)) +#define UNIXCREDS(skb) (&UNIXCB((skb)).creds) #endif |