impl.h (xinetd-2.3.15) | : | impl.h (xinetd-2.3.15.4.tar.xz) | ||
---|---|---|---|---|
/* | /* | |||
* (c) Copyright 1992, 1993 by Panagiotis Tsirigotis | * (c) Copyright 1992, 1993 by Panagiotis Tsirigotis | |||
* All rights reserved. The file named COPYRIGHT specifies the terms | * All rights reserved. The file named COPYRIGHT specifies the terms | |||
* and conditions for redistribution. | * and conditions for redistribution. | |||
*/ | */ | |||
/* | /* | |||
* $Id: impl.h,v 1.3 2007-09-20 17:01:52 bbraun Exp $ | * $Id$ | |||
*/ | */ | |||
#ifndef SIO_BUFFER_SIZE | #ifndef SIO_BUFFER_SIZE | |||
#include "sioconf.h" | #include "sioconf.h" | |||
#include "sio.h" | #include "sio.h" | |||
#ifdef HAVE_MMAP | #ifdef HAVE_MMAP | |||
#include <sys/types.h> | #include <sys/types.h> | |||
skipping to change at line 147 | skipping to change at line 147 | |||
/* | /* | |||
* Internal functions that are visible | * Internal functions that are visible | |||
*/ | */ | |||
int __sio_writef( __sio_od_t *odp, int fd ) ; | int __sio_writef( __sio_od_t *odp, int fd ) ; | |||
ssize_t __sio_extend_buffer( __sio_id_t *idp, int fd, size_t b_left ) ; | ssize_t __sio_extend_buffer( __sio_id_t *idp, int fd, size_t b_left ) ; | |||
int __sio_init( __sio_descriptor_t *dp, int fd, enum __sio_stream stream_type ); | int __sio_init( __sio_descriptor_t *dp, int fd, enum __sio_stream stream_type ); | |||
ssize_t __sio_more( __sio_id_t *idp, int fd ) ; | ssize_t __sio_more( __sio_id_t *idp, int fd ) ; | |||
sio_status_e __sio_switch( __sio_id_t *idp, int fd ) ; | sio_status_e __sio_switch( __sio_id_t *idp, int fd ) ; | |||
#ifdef HAVE_MEMCPY | ||||
#include <memory.h> | #include <memory.h> | |||
#define sio_memcopy( from, to, nbytes ) (void) memcpy( to, from, nbytes ) | #define sio_memcopy( from, to, nbytes ) (void) memcpy( to, from, nbytes ) | |||
#define sio_memscan( from, nbytes, ch ) memchr( from, ch, nbytes ) | #define sio_memscan( from, nbytes, ch ) memchr( from, ch, nbytes ) | |||
#else | ||||
#define sio_memcopy( from, to, nbytes ) (void) bcopy( from, to, nbytes ) | ||||
#endif | ||||
#ifndef sio_memcopy | ||||
#define sio_memcopy __sio_memcopy | ||||
#define NEED_MEMCOPY | ||||
void __sio_memcopy() ; | ||||
#endif | ||||
#ifndef sio_memscan | ||||
char *sio_memscan() ; | ||||
#endif | ||||
#endif /* SIO_BUFFER_SIZE */ | #endif /* SIO_BUFFER_SIZE */ | |||
End of changes. 3 change blocks. | ||||
15 lines changed or deleted | 1 lines changed or added |