In all cases this is just a change from two volatile int to one.
off_t tell;
int buf_pos;
int buf_end;
- volatile int lock[2];
+ volatile int lock[1];
char buf[2048];
};
static void (*funcs[COUNT])(void);
static int count;
-static volatile int lock[2];
+static volatile int lock[1];
void __funcs_on_quick_exit()
{
} builtin, *head;
static int slot;
-static volatile int lock[2];
+static volatile int lock[1];
void __funcs_on_exit()
{
int unblock_cancel;
volatile int timer_id;
locale_t locale;
- volatile int killlock[2];
- volatile int exitlock[2];
+ volatile int killlock[1];
+ volatile int exitlock[1];
volatile int startlock[2];
unsigned long sigmask[_NSIG/8/sizeof(long)];
char *dlerror_buf;
char *bindtextdomain(const char *domainname, const char *dirname)
{
- static volatile int lock[2];
+ static volatile int lock[1];
struct binding *p, *q;
if (!domainname) return 0;
const struct __locale_map *__get_locale(int cat, const char *val)
{
- static volatile int lock[2];
+ static volatile int lock[1];
static void *volatile loc_head;
const struct __locale_map *p;
struct __locale_map *new = 0;
char *setlocale(int cat, const char *name)
{
- static volatile int lock[2];
+ static volatile int lock[1];
if ((unsigned)cat > LC_ALL) return 0;
static void *__simple_malloc(size_t n)
{
static char *cur, *end;
- static volatile int lock[2];
+ static volatile int lock[1];
size_t align=1, pad;
void *p;
#include <fcntl.h>
#include "libc.h"
-static volatile int lock[2];
+static volatile int lock[1];
static char log_ident[32];
static int log_opt;
static int log_facility = LOG_USER;
static int i = 3;
static int j = 0;
static uint32_t *x = init+1;
-static volatile int lock[2];
+static volatile int lock[1];
static uint32_t lcg31(uint32_t x) {
return (1103515245*x + 12345) & 0x7fffffff;
#include "libc.h"
static FILE *ofl_head;
-static volatile int ofl_lock[2];
+static volatile int ofl_lock[1];
FILE **__ofl_lock()
{
struct atfork_funcs *prev, *next;
} *funcs;
-static volatile int lock[2];
+static volatile int lock[1];
void __fork_handler(int who)
{
sem_t *sem;
int refcnt;
} *semtab;
-static volatile int lock[2];
+static volatile int lock[1];
#define FLAGS (O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK)
sem_t target_sem, caller_sem;
} *volatile head;
-static volatile int synccall_lock[2];
+static volatile int synccall_lock[1];
static volatile int target_tid;
static void (*callback)(void *), *context;
static volatile int dummy = 0;
static char *old_tz = old_tz_buf;
static size_t old_tz_size = sizeof old_tz_buf;
-static volatile int lock[2];
+static volatile int lock[1];
static int getint(const char **p)
{