jcs's openbsd hax
openbsd
at jcs 39 lines 1.6 kB view raw
1/* $OpenBSD: rthread_cb.h,v 1.4 2024/08/18 02:25:51 guenther Exp $ */ 2/* 3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19struct __sFILE; 20 21__BEGIN_HIDDEN_DECLS 22void _thread_flockfile(struct __sFILE *); 23int _thread_ftrylockfile(struct __sFILE *); 24void _thread_funlockfile(struct __sFILE *); 25void _thread_malloc_lock(int); 26void _thread_malloc_unlock(int); 27void _thread_atexit_lock(void); 28void _thread_atexit_unlock(void); 29void _thread_atfork_lock(void); 30void _thread_atfork_unlock(void); 31void _thread_arc4_lock(void); 32void _thread_arc4_unlock(void); 33void _thread_mutex_lock(void **); 34void _thread_mutex_unlock(void **); 35void _thread_mutex_destroy(void **); 36void _thread_tag_lock(void **); 37void _thread_tag_unlock(void **); 38void *_thread_tag_storage(void **, void *, size_t, void (*)(void*), void *); 39__END_HIDDEN_DECLS