Line 17... |
Line 17... |
|
|
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
#define _GNU_SOURCE /* for strndup */
|
#define _GNU_SOURCE /* for strndup */
|
|
|
#include <sys/types.h> /* open() */
|
#include <sys/types.h> /* open() */
|
#include <sys/stat.h> /* open() */
|
#include <sys/stat.h> /* open() */
|
#include <fcntl.h> /* open() */
|
#include <fcntl.h> /* open() */
|
#include <malloc.h> /* calloc(), free() */
|
#if HAVE_MALLOC_H
|
|
#include <malloc.h> /* calloc, free */
|
|
#endif
|
#include <string.h> /* strndup(), strchr() */
|
#include <string.h> /* strndup(), strchr() */
|
#include <errno.h> /* errno */
|
#include <errno.h> /* errno */
|
#include <unistd.h> /* close() */
|
#include <unistd.h> /* close() */
|
|
|
#include "channel.h" /* struct channel_ops */
|
#include "channel.h" /* struct channel_ops */
|