diff options
Diffstat (limited to 'src/lib/libc/stdlib/atexit.h')
| -rw-r--r-- | src/lib/libc/stdlib/atexit.h | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/atexit.h b/src/lib/libc/stdlib/atexit.h index d9bfed852f..f2fa7bd83f 100644 --- a/src/lib/libc/stdlib/atexit.h +++ b/src/lib/libc/stdlib/atexit.h  | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: atexit.h,v 1.11 2017/12/05 13:45:31 kettenis Exp $ */ | 1 | /* $OpenBSD: atexit.h,v 1.12 2017/12/16 20:06:56 guenther Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * Copyright (c) 2002 Daniel Hartmeier | 4 | * Copyright (c) 2002 Daniel Hartmeier | 
| @@ -41,6 +41,13 @@ struct atexit { | |||
| 41 | } fns[1]; /* the table itself */ | 41 | } fns[1]; /* the table itself */ | 
| 42 | }; | 42 | }; | 
| 43 | 43 | ||
| 44 | /* a chain of these are hung off each thread's TIB's tib_atexit member */ | ||
| 45 | struct thread_atexit_fn { | ||
| 46 | void (*func)(void *); | ||
| 47 | void *arg; | ||
| 48 | struct thread_atexit_fn *next; | ||
| 49 | }; | ||
| 50 | |||
| 44 | __BEGIN_HIDDEN_DECLS | 51 | __BEGIN_HIDDEN_DECLS | 
| 45 | extern struct atexit *__atexit; /* points to head of LIFO stack */ | 52 | extern struct atexit *__atexit; /* points to head of LIFO stack */ | 
| 46 | __END_HIDDEN_DECLS | 53 | __END_HIDDEN_DECLS | 
