nss_tls.h (113798) | nss_tls.h (127625) |
---|---|
1/*- 2 * Copyright (c) 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by 6 * Jacques A. Vidrine, Safeport Network Services, and Network 7 * Associates Laboratories, the Security Research Division of Network 8 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2003 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by 6 * Jacques A. Vidrine, Safeport Network Services, and Network 7 * Associates Laboratories, the Security Research Division of Network 8 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/lib/libc/include/nss_tls.h 113798 2003-04-21 15:44:25Z nectar $ | 32 * $FreeBSD: head/lib/libc/include/nss_tls.h 127625 2004-03-30 15:56:15Z nectar $ |
33 * 34 * Macros which generate thread local storage handling code in NSS modules. 35 */ 36#ifndef _NSS_TLS_H_ 37#define _NSS_TLS_H_ 38 39#define NSS_TLS_HANDLING(name) \ 40static pthread_key_t name##_state_key; \ --- 29 unchanged lines hidden (view full) --- 70 rv = _pthread_setspecific(name##_state_key, *p); \ 71 if (rv != 0) { \ 72 free(*p); \ 73 *p = NULL; \ 74 } \ 75 return (rv); \ 76} \ 77/* allow the macro invocation to end with a semicolon */ \ | 33 * 34 * Macros which generate thread local storage handling code in NSS modules. 35 */ 36#ifndef _NSS_TLS_H_ 37#define _NSS_TLS_H_ 38 39#define NSS_TLS_HANDLING(name) \ 40static pthread_key_t name##_state_key; \ --- 29 unchanged lines hidden (view full) --- 70 rv = _pthread_setspecific(name##_state_key, *p); \ 71 if (rv != 0) { \ 72 free(*p); \ 73 *p = NULL; \ 74 } \ 75 return (rv); \ 76} \ 77/* allow the macro invocation to end with a semicolon */ \ |
78typedef int _##name##_bmVjdGFy | 78struct _clashproof_bmVjdGFy |
79 80#endif /* _NSS_TLS_H_ */ | 79 80#endif /* _NSS_TLS_H_ */ |