* include/sys/uio.h: Include <sys/cdefs.h>. Use __BEGIN_DECL and

__END_DECL.
        Add declarations for `readv' and `writev'.
This commit is contained in:
Corinna Vinschen 2000-12-05 16:08:48 +00:00
parent 96963a1423
commit fdb352765e
2 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,9 @@
Tue Dec 5 17:06:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/sys/uio.h: Include <sys/cdefs.h>. Use __BEGIN_DECL and
__END_DECL.
Add declarations for `readv' and `writev'.
Mon Dec 4 20:49:00 2000 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in: Change `-nostartfiles' to `-nostdlib' to avoid

View File

@ -1,15 +1,15 @@
#ifndef _UIO_H_
#define _UIO_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* For size_t */
#include <stddef.h>
/* For ssize_t */
#include <sys/types.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
/*
* Define the uio buffers used for writev, readv.
*/
@ -19,7 +19,9 @@ struct iovec {
int iov_len;
};
#ifdef __cplusplus
};
#endif /* __cplusplus */
extern int readv __P ((int filedes, const struct iovec *vector, size_t count));
extern int writev __P ((int filedes, const struct iovec *vector, size_t count));
__END_DECLS
#endif /* _UIO_H_ */