Fixed missing consts for function parameters, so that the code matches

the man page and POSIX.1.  Fixed nearby misformatting.  Fixed a missing
prototype.
This commit is contained in:
Bruce Evans 2000-05-11 15:57:17 +00:00
parent 96d7319afb
commit 80a07932e7
10 changed files with 25 additions and 12 deletions

View File

@ -190,9 +190,12 @@ enum pthread_mutextype {
*/
__BEGIN_DECLS
int pthread_attr_destroy __P((pthread_attr_t *));
int pthread_attr_getstacksize __P((pthread_attr_t *, size_t *));
int pthread_attr_getstackaddr __P((pthread_attr_t *, void **));
int pthread_attr_getdetachstate __P((pthread_attr_t *, int *));
int pthread_attr_getstacksize __P((const pthread_attr_t *,
size_t *));
int pthread_attr_getstackaddr __P((const pthread_attr_t *,
void **));
int pthread_attr_getdetachstate __P((const pthread_attr_t *,
int *));
int pthread_attr_init __P((pthread_attr_t *));
int pthread_attr_setstacksize __P((pthread_attr_t *, size_t));
int pthread_attr_setstackaddr __P((pthread_attr_t *, void *));
@ -231,6 +234,7 @@ int pthread_key_delete __P((pthread_key_t));
int pthread_kill __P((pthread_t, int));
int pthread_mutexattr_init __P((pthread_mutexattr_t *));
int pthread_mutexattr_destroy __P((pthread_mutexattr_t *));
int pthread_mutexattr_gettype __P((pthread_mutexattr_t *, int *));
int pthread_mutexattr_settype __P((pthread_mutexattr_t *, int));
int pthread_mutex_destroy __P((pthread_mutex_t *));
int pthread_mutex_init __P((pthread_mutex_t *,

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
int
pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr)
int
pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize)
int
pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
int
pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr)
int
pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize)
int
pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
int
pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr)
int
pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
{
int ret;

View File

@ -36,7 +36,8 @@
#include <pthread.h>
#include "pthread_private.h"
int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize)
int
pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
{
int ret;