unistd.h (be04fec42638f30f50b5b55fd8e3634c0fb89928) | unistd.h (e55512504d0178983978d64d67eed1cc85826523) |
---|---|
1/* $NetBSD: unistd.h,v 1.7 2015/06/25 18:41:03 joerg Exp $ */ 2 3/*- 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 * 7 * Copyright (c) 2006 The NetBSD Foundation, Inc. 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34#ifndef _SSP_UNISTD_H_ 35#define _SSP_UNISTD_H_ 36 37#include <ssp/ssp.h> 38 39#if __SSP_FORTIFY_LEVEL > 0 40__BEGIN_DECLS 41 | 1/* $NetBSD: unistd.h,v 1.7 2015/06/25 18:41:03 joerg Exp $ */ 2 3/*- 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 * 7 * Copyright (c) 2006 The NetBSD Foundation, Inc. 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34#ifndef _SSP_UNISTD_H_ 35#define _SSP_UNISTD_H_ 36 37#include <ssp/ssp.h> 38 39#if __SSP_FORTIFY_LEVEL > 0 40__BEGIN_DECLS 41 |
42__ssp_redirect0(ssize_t, read, (int __fd, void *__buf, size_t __len), \ 43 (__fd, __buf, __len)); | 42#ifndef _FORTIFY_SOURCE_read 43#define _FORTIFY_SOURCE_read read 44#endif |
44 | 45 |
46__ssp_redirect0(ssize_t, _FORTIFY_SOURCE_read, (int __fd, void *__buf, 47 size_t __len), (__fd, __buf, __len)); 48 |
|
45__ssp_redirect(ssize_t, readlink, (const char *__restrict __path, \ 46 char *__restrict __buf, size_t __len), (__path, __buf, __len)); 47 48__ssp_redirect_raw(char *, getcwd, getcwd, (char *__buf, size_t __len), 49 (__buf, __len), __buf != 0, __ssp_bos); 50 51__END_DECLS 52 53#endif /* __SSP_FORTIFY_LEVEL > 0 */ 54#endif /* _SSP_UNISTD_H_ */ | 49__ssp_redirect(ssize_t, readlink, (const char *__restrict __path, \ 50 char *__restrict __buf, size_t __len), (__path, __buf, __len)); 51 52__ssp_redirect_raw(char *, getcwd, getcwd, (char *__buf, size_t __len), 53 (__buf, __len), __buf != 0, __ssp_bos); 54 55__END_DECLS 56 57#endif /* __SSP_FORTIFY_LEVEL > 0 */ 58#endif /* _SSP_UNISTD_H_ */ |