diff options
| author | thorpej <thorpej@NetBSD.org> | 2003-01-19 20:58:00 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2003-01-19 20:58:00 +0000 |
| commit | 9b29af3e07898e3ebc78c521296550c15e4e5099 (patch) | |
| tree | f74dd2fbfb2332b0efbfd2b48843d60a6182f851 /lib/libpthread/pthread_stack.c | |
| parent | 592409d356a86d9ce7ac5d962ce89bca9e368706 (diff) | |
Remove the dummy stack attr routines -- best to catch broken applications
and fix them to use the proper feature test instead (as has already been
done with the openldap package).
Diffstat (limited to 'lib/libpthread/pthread_stack.c')
| -rw-r--r-- | lib/libpthread/pthread_stack.c | 62 |
1 files changed, 1 insertions, 61 deletions
diff --git a/lib/libpthread/pthread_stack.c b/lib/libpthread/pthread_stack.c index eb0f8e5291a..f02f18abfaa 100644 --- a/lib/libpthread/pthread_stack.c +++ b/lib/libpthread/pthread_stack.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_stack.c,v 1.4 2003/01/19 16:03:50 christos Exp $ */ +/* $NetBSD: pthread_stack.c,v 1.5 2003/01/19 20:58:01 thorpej Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -149,63 +149,3 @@ pthread__stackid_setup(void *base, int size) return t; } - -int -pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *size) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC) - || size == NULL) - return EINVAL; - *size = (size_t)sysconf(_SC_PAGESIZE); - return 0; -} - -int -pthread_attr_setguardsize(pthread_attr_t *attr, size_t size) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC) - || size < (size_t)sysconf(_SC_PAGESIZE)) - return EINVAL; - /*XXX*/ - return 0; -} - -int -pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *size) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC) - || size == NULL) - return EINVAL; - *size = PT_STACKSIZE - 2 * (size_t)sysconf(_SC_PAGESIZE); - return 0; -} - -int -pthread_attr_setstacksize(pthread_attr_t *attr, size_t size) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC) - || size < PT_STACKSIZE - 2 * (size_t)sysconf(_SC_PAGESIZE)) - return EINVAL; - /*XXX*/ - return 0; -} - -int -/*ARGSUSED*/ -pthread_attr_getstackaddr(const pthread_attr_t *attr, void **base) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC)) - return EINVAL; - /*XXX*/ - return 0; -} - -int -/*ARGSUSED*/ -pthread_attr_setstackaddr(pthread_attr_t *attr, void *base) -{ - if ((attr == NULL) || (attr->pta_magic != PT_ATTR_MAGIC)) - return EINVAL; - /*XXX*/ - return 0; -} |
