00001 /************************************************************************
00002 * File: writen.h
00003 * Purpose: Provides a header file for the writen function from
00004 * the book Advanced Programming in the UNIX Environment by Richard Stevens.
00005 * The writen function calls the write function repeatedly until n bytes
00006 * have been written to the file descriptor.
00007 *************************************************************************/
00008
00009
00010
00011 #ifndef WRITEN_H
00012 #define WRITEN_H
00013
00014
00015 #ifdef __cplusplus
00016 extern "C"
00017 {
00018 #endif
00019
00020 #include <stddef.h> /* size_t */
00021
00022 int writen (int fd, const void *vptr, int n, double timeout);
00023
00024 #ifdef __cplusplus
00025 };
00026 #endif
00027
00028
00029 #endif /* WRITEN_H */
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001