blob: 50511b1ee99e81dfd170f84fc35fb2010673d299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef unix_h_INCLUDED
#define unix_h_INCLUDED
#include <sys/types.h>
#include <grp.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdio.h>
// takes filename, returns socket fd
// or -1 on failure.
int unix_setup(char sockname[]);
// reads a message from unix socket on fd,
// and sends it to irc on the channel chname.
int unix_handle(int fd, char chname[]);
#endif // unix_h_INCLUDED
|