mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
96d7319afb
commit
80a07932e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60382
|
@ -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 *,
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue