2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/stdlib/envlock.c: changed documented "__env_lock" and "__env_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. Also added include of envlock.h. * libc/stdlib/mlock.c: changed documented "__malloc_lock" and "__malloc_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock" prototypes (for getenv_r.c and setenv_r.c).
This commit is contained in:
parent
f5589e4118
commit
a334e5ef72
|
@ -1,3 +1,15 @@
|
||||||
|
2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
|
||||||
|
|
||||||
|
* libc/stdlib/envlock.c: changed documented "__env_lock" and
|
||||||
|
"__env_unlock" prototype from "void *" or "char *" to
|
||||||
|
"struct _reent *" to match real function. Also added include
|
||||||
|
of envlock.h.
|
||||||
|
* libc/stdlib/mlock.c: changed documented "__malloc_lock" and
|
||||||
|
"__malloc_unlock" prototype from "void *" or "char *" to
|
||||||
|
"struct _reent *" to match real function.
|
||||||
|
* libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock"
|
||||||
|
prototypes (for getenv_r.c and setenv_r.c).
|
||||||
|
|
||||||
2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
|
2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
|
||||||
|
|
||||||
* libc/unix/getut.c (utmpname): added _CONST to reflect common use
|
* libc/unix/getut.c (utmpname): added _CONST to reflect common use
|
||||||
|
|
|
@ -9,15 +9,15 @@ INDEX
|
||||||
|
|
||||||
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
||||||
#include "envlock.h"
|
#include "envlock.h"
|
||||||
void __env_lock (void *<[reent]>);
|
void __env_lock (struct _reent *<[reent]>);
|
||||||
void __env_unlock (void *<[reent]>);
|
void __env_unlock (struct _reent *<[reent]>);
|
||||||
|
|
||||||
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
||||||
void __env_lock(<[reent]>)
|
void __env_lock(<[reent]>)
|
||||||
char *<[reent]>;
|
struct _reent *<[reent]>;
|
||||||
|
|
||||||
void __env_unlock(<[reent]>)
|
void __env_unlock(<[reent]>)
|
||||||
char *<[reent]>;
|
struct _reent *<[reent]>;
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
The <<setenv>> family of routines call these functions when they need
|
The <<setenv>> family of routines call these functions when they need
|
||||||
|
@ -35,6 +35,9 @@ routines must be careful to avoid causing a thread to wait for a lock
|
||||||
that it already holds.
|
that it already holds.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "envlock.h"
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__env_lock (ptr)
|
__env_lock (ptr)
|
||||||
struct _reent *ptr;
|
struct _reent *ptr;
|
||||||
|
|
|
@ -9,4 +9,7 @@
|
||||||
#define ENV_LOCK __env_lock(reent_ptr)
|
#define ENV_LOCK __env_lock(reent_ptr)
|
||||||
#define ENV_UNLOCK __env_unlock(reent_ptr)
|
#define ENV_UNLOCK __env_unlock(reent_ptr)
|
||||||
|
|
||||||
|
void _EXFUN(__env_lock,(struct _reent *reent));
|
||||||
|
void _EXFUN(__env_unlock,(struct _reent *reent));
|
||||||
|
|
||||||
#endif /* _INCLUDE_ENVLOCK_H_ */
|
#endif /* _INCLUDE_ENVLOCK_H_ */
|
||||||
|
|
|
@ -9,15 +9,15 @@ INDEX
|
||||||
|
|
||||||
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
void __malloc_lock (void *<[reent]>);
|
void __malloc_lock (struct _reent *<[reent]>);
|
||||||
void __malloc_unlock (void *<[reent]>);
|
void __malloc_unlock (struct _reent *<[reent]>);
|
||||||
|
|
||||||
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
||||||
void __malloc_lock(<[reent]>)
|
void __malloc_lock(<[reent]>)
|
||||||
char *<[reent]>;
|
struct _reent *<[reent]>;
|
||||||
|
|
||||||
void __malloc_unlock(<[reent]>)
|
void __malloc_unlock(<[reent]>)
|
||||||
char *<[reent]>;
|
struct _reent *<[reent]>;
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
The <<malloc>> family of routines call these functions when they need
|
The <<malloc>> family of routines call these functions when they need
|
||||||
|
|
Loading…
Reference in New Issue