mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
a334e5ef72
* 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).
16 lines
366 B
C
16 lines
366 B
C
/* envlock.h -- header file for env routines. */
|
|
|
|
#ifndef _INCLUDE_ENVLOCK_H_
|
|
#define _INCLUDE_ENVLOCK_H_
|
|
|
|
#include <_ansi.h>
|
|
#include <sys/reent.h>
|
|
|
|
#define ENV_LOCK __env_lock(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_ */
|