4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Yaakov Selkowitz da4839ec18 cygwin: add Object Size Checking to sys/socket.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-11-30 04:06:48 -06:00

21 lines
516 B
C

#ifndef _SSP_SOCKET_H_
#define _SSP_SOCKET_H_
#include <ssp/ssp.h>
#if __SSP_FORTIFY_LEVEL > 0
__BEGIN_DECLS
__ssp_redirect0(ssize_t, recv, \
(int __fd, void *__buf, size_t __len, int __flags), \
(__fd, __buf, __len, __flags));
__ssp_redirect0(ssize_t, recvfrom, \
(int __fd, void *__buf, size_t __len, int __flags, struct sockaddr *__from, socklen_t *__fromlen), \
(__fd, __buf, __len, __flags, __from, __fromlen));
__END_DECLS
#endif /* __SSP_FORTIFY_LEVEL > 0 */
#endif /* _SSP_SOCKET_H_ */