#include <unistd.h>
#include <strings.h>
-static const int TRUE = 1;
static char *filebase;
static int
len = strlen(filebase) + 5;
- while (TRUE) {
+ for (;;) {
idx = pickidx();
(void) snprintf(buf, len, "%s.%03d", filebase, idx);
ret = rename(filebase, buf);
len = strlen(filebase) + 5;
- while (TRUE) {
+ for (;;) {
idx = pickidx();
(void) snprintf(buf, len, "%s.%03d", filebase, idx);
ret = remove(buf);
int *fd = (int *)a;
int ret;
- while (TRUE) {
+ for (;;) {
if (*fd != -1)
(void) close (*fd);
(void) pthread_create(&tid, NULL, cleaner, NULL);
(void) pthread_create(&tid, NULL, writer, (void *) &fd);
- while (TRUE) {
+ for (;;) {
int ret;
struct stat st;