view src/lib/fdpass.h @ 100:867ec80dbf42 HEAD

Custom flags are now shown in FLAGS and PERMANENTFLAGS lists after SELECT. It also warns if there's for some reason a duplicate index number in custom flags file.
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Aug 2002 22:21:51 +0300
parents 3b1985cbc908
children 4a7ab9e94f25
line wrap: on
line source

#ifndef __FDPASS_H
#define __FDPASS_H

/* Returns number of bytes sent, -1 if error. */
int fd_send(int handle, int send_fd, const void *data, int size);

/* Returns number of bytes read, or -1 if error. fd is set only
   if return value is larger than 0. */
int fd_read(int handle, void *data, int size, int *fd);

#endif