diff options
| author | christos <christos@NetBSD.org> | 1997-10-08 00:33:40 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1997-10-08 00:33:40 +0000 |
| commit | eaa78382991b5462e3c8d254f281c86bad4408cf (patch) | |
| tree | 803a210f8ecdd1a5783b19ec0aebe6192578a8c5 /lib/libpthread/include | |
| parent | 91b654796786dd3de432ade2b91636306d76b3d5 (diff) | |
Add real prototypes
Diffstat (limited to 'lib/libpthread/include')
| -rw-r--r-- | lib/libpthread/include/fd.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/libpthread/include/fd.h b/lib/libpthread/include/fd.h index e6ab2475b18..9446f138333 100644 --- a/lib/libpthread/include/fd.h +++ b/lib/libpthread/include/fd.h @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: fd.h,v 1.3 1994/02/07 22:02:29 proven Exp $ $provenid: fd.h,v 1.17 1994/02/07 03:31:54 proven Exp $ + * $Id: fd.h,v 1.4 1997/10/08 00:33:40 christos Exp $ $provenid: fd.h,v 1.17 1994/02/07 03:31:54 proven Exp $ * * Description : Basic fd header. * @@ -55,21 +55,22 @@ enum fd_type { #define FD_WRITE 0x2 #define FD_RDWR (FD_READ | FD_WRITE) -struct fd_ops { - int (*write)(); - int (*read)(); - int (*close)(); - int (*fcntl)(); - int (*writev)(); - int (*readv)(); - int (*seek)(); -}; - +struct iovec; union fd_data { void *ptr; int i; }; +struct fd_ops { + ssize_t (*write) __P((union fd_data, int, const void *, size_t)); + ssize_t (*read) __P((union fd_data, int, void *, size_t)); + int (*close) __P((union fd_data, int )); + int (*fcntl) __P((union fd_data, int, int, ...)); + int (*writev) __P((union fd_data, int, const struct iovec *, int)); + int (*readv) __P((union fd_data, int, const struct iovec *, int)); + off_t (*seek) __P((union fd_data, int, off_t, int)); +}; + struct fd_table_entry { struct pthread_queue r_queue; struct pthread_queue w_queue; |
