/usr/include/ircd-hybrid-8/s_bsd.h is in hybrid-dev 1:8.2.22+dfsg.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /*
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
*
* Copyright (c) 1997-2017 ircd-hybrid development team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
/*! \file s_bsd.h
* \brief A header for the network subsystem.
* \version $Id: s_bsd.h 7925 2016-12-31 13:57:24Z michael $
*/
#ifndef INCLUDED_s_bsd_h
#define INCLUDED_s_bsd_h
#include "fdlist.h"
/* Type of IO */
enum
{
COMM_SELECT_READ = 1,
COMM_SELECT_WRITE = 2
};
/* How long can comm_select() wait for network events [milliseconds] */
enum { SELECT_DELAY = 500 };
struct Client;
struct Listener;
extern void add_connection(struct Listener *, struct irc_ssaddr *, int);
extern void close_connection(struct Client *);
extern void report_error(int, const char *, const char *, int);
extern int get_sockerr(int);
extern int ignoreErrno(int);
extern void comm_settimeout(fde_t *, uintmax_t, void (*)(fde_t *, void *), void *);
extern void comm_setflush(fde_t *, uintmax_t, void (*)(fde_t *, void *), void *);
extern void comm_checktimeouts(void *);
extern void comm_connect_tcp(fde_t *, const char *, unsigned short, struct sockaddr *, int,
void (struct _fde *, int, void *), void *, int, uintmax_t);
extern const char *comm_errstr(int);
extern int comm_open(fde_t *, int, int, int, const char *);
extern int comm_accept(struct Listener *, struct irc_ssaddr *);
/* These must be defined in the network IO loop code of your choice */
extern void netio_init(void);
extern void comm_setselect(fde_t *, unsigned int, void (*)(fde_t *, void *), void *, uintmax_t);
extern void comm_select(void);
extern void remove_ipv6_mapping(struct irc_ssaddr *);
#endif /* INCLUDED_s_bsd_h */
|