diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/stdlib/atexit.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libc/stdlib/atexit.c b/src/lib/libc/stdlib/atexit.c index 52f1cf3c5c..049da3261d 100644 --- a/src/lib/libc/stdlib/atexit.c +++ b/src/lib/libc/stdlib/atexit.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: atexit.c,v 1.16 2013/06/02 21:08:36 matthew Exp $ */ | 1 | /* $OpenBSD: atexit.c,v 1.17 2013/12/28 18:38:42 kettenis Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2002 Daniel Hartmeier | 3 | * Copyright (c) 2002 Daniel Hartmeier |
| 4 | * All rights reserved. | 4 | * All rights reserved. |
| @@ -102,15 +102,6 @@ unlock: | |||
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | /* | 104 | /* |
| 105 | * Register a function to be performed at exit. | ||
| 106 | */ | ||
| 107 | int | ||
| 108 | atexit(void (*func)(void)) | ||
| 109 | { | ||
| 110 | return (__cxa_atexit((void (*)(void *))func, NULL, NULL)); | ||
| 111 | } | ||
| 112 | |||
| 113 | /* | ||
| 114 | * Call all handlers registered with __cxa_atexit() for the shared | 105 | * Call all handlers registered with __cxa_atexit() for the shared |
| 115 | * object owning 'dso'. | 106 | * object owning 'dso'. |
| 116 | * Note: if 'dso' is NULL, then all remaining handlers are called. | 107 | * Note: if 'dso' is NULL, then all remaining handlers are called. |
