+2002-12-16 Art Haas <ahaas@airmail.net>
+
+ * io/ftw.c: Convert GCC extension initializer syntax to C99.
+
2002-12-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
/* File tree walker functions.
- Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
+ Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
static inline int
find_object (struct ftw_data *data, struct STAT *st)
{
- struct known_object obj = { dev: st->st_dev, ino: st->st_ino };
+ struct known_object obj = { .dev = st->st_dev, .ino = st->st_ino };
return __tfind (&obj, &data->known_objects, object_compare) != NULL;
}
case SETALL:
{
struct semid_ds ds;
- union semun un = { buf: &ds };
+ union semun un = { .buf = &ds };
unsigned int length = ~0;
/* It's unfortunate that we need to make a recursive
case -1: exit(-1);
case 0:
{
- struct timespec ts ={tv_sec:(long int)new->it_value.tv_sec,tv_nsec:0};
+ struct timespec ts ={.tv_sec = (long int)new->it_value.tv_sec, .tv_nsec = 0};
__libc_nanosleep(&ts,&ts);
__kill(getppid(), SIGALRM);
exit(0);
__sleep (seconds)
unsigned int seconds;
{
- struct timespec ts ={tv_sec:(long int)seconds,tv_nsec:0};
+ struct timespec ts ={.tv_sec = (long int)seconds, .tv_nsec = 0};
__libc_nanosleep(&ts,&ts);
return 0;
}
usleep (useconds)
useconds_t useconds;
{
- struct timespec ts ={tv_sec:0,tv_nsec:(long int)useconds * 1000};
+ struct timespec ts ={.tv_sec = 0, .tv_nsec = (long int)useconds * 1000};
__libc_nanosleep(&ts,&ts);
return 0;
}