ai 42 maint/gnulib/lib/argv-iter.c struct argv_iterator *ai = malloc (sizeof *ai); ai 43 maint/gnulib/lib/argv-iter.c if (!ai) ai 45 maint/gnulib/lib/argv-iter.c ai->fp = NULL; ai 46 maint/gnulib/lib/argv-iter.c ai->arg_list = argv; ai 47 maint/gnulib/lib/argv-iter.c ai->p = argv; ai 48 maint/gnulib/lib/argv-iter.c return ai; ai 56 maint/gnulib/lib/argv-iter.c struct argv_iterator *ai = malloc (sizeof *ai); ai 57 maint/gnulib/lib/argv-iter.c if (!ai) ai 59 maint/gnulib/lib/argv-iter.c ai->fp = fp; ai 60 maint/gnulib/lib/argv-iter.c ai->tok = NULL; ai 61 maint/gnulib/lib/argv-iter.c ai->buf_len = 0; ai 63 maint/gnulib/lib/argv-iter.c ai->item_idx = 0; ai 64 maint/gnulib/lib/argv-iter.c ai->arg_list = NULL; ai 65 maint/gnulib/lib/argv-iter.c return ai; ai 69 maint/gnulib/lib/argv-iter.c argv_iter (struct argv_iterator *ai, enum argv_iter_err *err) ai 71 maint/gnulib/lib/argv-iter.c if (ai->fp) ai 73 maint/gnulib/lib/argv-iter.c ssize_t len = getdelim (&ai->tok, &ai->buf_len, '\0', ai->fp); ai 76 maint/gnulib/lib/argv-iter.c *err = feof (ai->fp) ? AI_ERR_EOF : AI_ERR_READ; ai 81 maint/gnulib/lib/argv-iter.c ai->item_idx++; ai 82 maint/gnulib/lib/argv-iter.c return ai->tok; ai 86 maint/gnulib/lib/argv-iter.c if (*(ai->p) == NULL) ai 94 maint/gnulib/lib/argv-iter.c return *(ai->p++); ai 100 maint/gnulib/lib/argv-iter.c argv_iter_n_args (struct argv_iterator const *ai) ai 102 maint/gnulib/lib/argv-iter.c return ai->fp ? ai->item_idx : ai->p - ai->arg_list; ai 106 maint/gnulib/lib/argv-iter.c argv_iter_free (struct argv_iterator *ai) ai 108 maint/gnulib/lib/argv-iter.c if (ai->fp) ai 109 maint/gnulib/lib/argv-iter.c free (ai->tok); ai 110 maint/gnulib/lib/argv-iter.c free (ai); ai 72 maint/gnulib/lib/getaddrinfo.c freeaddrinfo (struct addrinfo *ai) ai 75 maint/gnulib/lib/getaddrinfo.c freeaddrinfo (ai); ai 394 maint/gnulib/lib/getaddrinfo.c freeaddrinfo (struct addrinfo *ai) ai 400 maint/gnulib/lib/getaddrinfo.c freeaddrinfo_ptr (ai); ai 405 maint/gnulib/lib/getaddrinfo.c while (ai) ai 409 maint/gnulib/lib/getaddrinfo.c cur = ai; ai 410 maint/gnulib/lib/getaddrinfo.c ai = ai->ai_next; ai 206 maint/gnulib/lib/netdb.in.h _GL_FUNCDECL_RPL (freeaddrinfo, void, (struct addrinfo *ai) ai 208 maint/gnulib/lib/netdb.in.h _GL_CXXALIAS_RPL (freeaddrinfo, void, (struct addrinfo *ai)); ai 211 maint/gnulib/lib/netdb.in.h _GL_FUNCDECL_SYS (freeaddrinfo, void, (struct addrinfo *ai) ai 214 maint/gnulib/lib/netdb.in.h _GL_CXXALIAS_SYS (freeaddrinfo, void, (struct addrinfo *ai)); ai 54 maint/gnulib/tests/atomic-int-gnulib.h init_atomic_int (struct atomic_int *ai) ai 58 maint/gnulib/tests/atomic-int-gnulib.h get_atomic_int_value (struct atomic_int *ai) ai 60 maint/gnulib/tests/atomic-int-gnulib.h return ai->value; ai 63 maint/gnulib/tests/atomic-int-gnulib.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 65 maint/gnulib/tests/atomic-int-gnulib.h ai->value = new_value; ai 74 maint/gnulib/tests/atomic-int-gnulib.h #define atomic_int_semaphore(ai) (&(ai)->semaphore) ai 76 maint/gnulib/tests/atomic-int-gnulib.h init_atomic_int (struct atomic_int *ai) ai 78 maint/gnulib/tests/atomic-int-gnulib.h sem_init (&ai->semaphore, 0, 0); ai 85 maint/gnulib/tests/atomic-int-gnulib.h #define atomic_int_semaphore(ai) ((ai)->semaphore) ai 87 maint/gnulib/tests/atomic-int-gnulib.h init_atomic_int (struct atomic_int *ai) ai 100 maint/gnulib/tests/atomic-int-gnulib.h (unsigned long) getpid (), ai, count); ai 121 maint/gnulib/tests/atomic-int-gnulib.h ai->semaphore = s; ai 125 maint/gnulib/tests/atomic-int-gnulib.h get_atomic_int_value (struct atomic_int *ai) ai 127 maint/gnulib/tests/atomic-int-gnulib.h if (sem_trywait (atomic_int_semaphore (ai)) == 0) ai 129 maint/gnulib/tests/atomic-int-gnulib.h if (sem_post (atomic_int_semaphore (ai))) ai 139 maint/gnulib/tests/atomic-int-gnulib.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 145 maint/gnulib/tests/atomic-int-gnulib.h if (sem_post (atomic_int_semaphore (ai))) ai 154 maint/gnulib/tests/atomic-int-gnulib.h init_atomic_int (struct atomic_int *ai) ai 156 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_init (ai->lock); ai 159 maint/gnulib/tests/atomic-int-gnulib.h get_atomic_int_value (struct atomic_int *ai) ai 161 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_lock (ai->lock); ai 162 maint/gnulib/tests/atomic-int-gnulib.h int ret = ai->value; ai 163 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_unlock (ai->lock); ai 167 maint/gnulib/tests/atomic-int-gnulib.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 169 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_lock (ai->lock); ai 170 maint/gnulib/tests/atomic-int-gnulib.h ai->value = new_value; ai 171 maint/gnulib/tests/atomic-int-gnulib.h gl_lock_unlock (ai->lock); ai 54 maint/gnulib/tests/atomic-int-isoc.h init_atomic_int (struct atomic_int *ai) ai 58 maint/gnulib/tests/atomic-int-isoc.h get_atomic_int_value (struct atomic_int *ai) ai 60 maint/gnulib/tests/atomic-int-isoc.h return ai->value; ai 63 maint/gnulib/tests/atomic-int-isoc.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 65 maint/gnulib/tests/atomic-int-isoc.h ai->value = new_value; ai 74 maint/gnulib/tests/atomic-int-isoc.h #define atomic_int_semaphore(ai) (&(ai)->semaphore) ai 76 maint/gnulib/tests/atomic-int-isoc.h init_atomic_int (struct atomic_int *ai) ai 78 maint/gnulib/tests/atomic-int-isoc.h sem_init (&ai->semaphore, 0, 0); ai 85 maint/gnulib/tests/atomic-int-isoc.h #define atomic_int_semaphore(ai) ((ai)->semaphore) ai 87 maint/gnulib/tests/atomic-int-isoc.h init_atomic_int (struct atomic_int *ai) ai 100 maint/gnulib/tests/atomic-int-isoc.h (unsigned long) getpid (), ai, count); ai 121 maint/gnulib/tests/atomic-int-isoc.h ai->semaphore = s; ai 125 maint/gnulib/tests/atomic-int-isoc.h get_atomic_int_value (struct atomic_int *ai) ai 127 maint/gnulib/tests/atomic-int-isoc.h if (sem_trywait (atomic_int_semaphore (ai)) == 0) ai 129 maint/gnulib/tests/atomic-int-isoc.h if (sem_post (atomic_int_semaphore (ai))) ai 139 maint/gnulib/tests/atomic-int-isoc.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 145 maint/gnulib/tests/atomic-int-isoc.h if (sem_post (atomic_int_semaphore (ai))) ai 154 maint/gnulib/tests/atomic-int-isoc.h init_atomic_int (struct atomic_int *ai) ai 156 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_init (&ai->lock, mtx_plain) == thrd_success); ai 159 maint/gnulib/tests/atomic-int-isoc.h get_atomic_int_value (struct atomic_int *ai) ai 161 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_lock (&ai->lock) == thrd_success); ai 162 maint/gnulib/tests/atomic-int-isoc.h int ret = ai->value; ai 163 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_unlock (&ai->lock) == thrd_success); ai 167 maint/gnulib/tests/atomic-int-isoc.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 169 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_lock (&ai->lock) == thrd_success); ai 170 maint/gnulib/tests/atomic-int-isoc.h ai->value = new_value; ai 171 maint/gnulib/tests/atomic-int-isoc.h ASSERT (mtx_unlock (&ai->lock) == thrd_success); ai 54 maint/gnulib/tests/atomic-int-posix.h init_atomic_int (struct atomic_int *ai) ai 58 maint/gnulib/tests/atomic-int-posix.h get_atomic_int_value (struct atomic_int *ai) ai 60 maint/gnulib/tests/atomic-int-posix.h return ai->value; ai 63 maint/gnulib/tests/atomic-int-posix.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 65 maint/gnulib/tests/atomic-int-posix.h ai->value = new_value; ai 74 maint/gnulib/tests/atomic-int-posix.h #define atomic_int_semaphore(ai) (&(ai)->semaphore) ai 76 maint/gnulib/tests/atomic-int-posix.h init_atomic_int (struct atomic_int *ai) ai 78 maint/gnulib/tests/atomic-int-posix.h sem_init (&ai->semaphore, 0, 0); ai 85 maint/gnulib/tests/atomic-int-posix.h #define atomic_int_semaphore(ai) ((ai)->semaphore) ai 87 maint/gnulib/tests/atomic-int-posix.h init_atomic_int (struct atomic_int *ai) ai 100 maint/gnulib/tests/atomic-int-posix.h (unsigned long) getpid (), ai, count); ai 121 maint/gnulib/tests/atomic-int-posix.h ai->semaphore = s; ai 125 maint/gnulib/tests/atomic-int-posix.h get_atomic_int_value (struct atomic_int *ai) ai 127 maint/gnulib/tests/atomic-int-posix.h if (sem_trywait (atomic_int_semaphore (ai)) == 0) ai 129 maint/gnulib/tests/atomic-int-posix.h if (sem_post (atomic_int_semaphore (ai))) ai 139 maint/gnulib/tests/atomic-int-posix.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 145 maint/gnulib/tests/atomic-int-posix.h if (sem_post (atomic_int_semaphore (ai))) ai 154 maint/gnulib/tests/atomic-int-posix.h init_atomic_int (struct atomic_int *ai) ai 160 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_init (&ai->lock, &attr) == 0); ai 164 maint/gnulib/tests/atomic-int-posix.h get_atomic_int_value (struct atomic_int *ai) ai 166 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_lock (&ai->lock) == 0); ai 167 maint/gnulib/tests/atomic-int-posix.h int ret = ai->value; ai 168 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_unlock (&ai->lock) == 0); ai 172 maint/gnulib/tests/atomic-int-posix.h set_atomic_int_value (struct atomic_int *ai, int new_value) ai 174 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_lock (&ai->lock) == 0); ai 175 maint/gnulib/tests/atomic-int-posix.h ai->value = new_value; ai 176 maint/gnulib/tests/atomic-int-posix.h ASSERT (pthread_mutex_unlock (&ai->lock) == 0); ai 67 maint/gnulib/tests/test-argv-iter.c struct argv_iterator *ai; ai 73 maint/gnulib/tests/test-argv-iter.c ai = argv_iter_init_stream (fp); ai 78 maint/gnulib/tests/test-argv-iter.c ai = argv_iter_init_argv (av[i]); ai 80 maint/gnulib/tests/test-argv-iter.c ASSERT (ai); ai 85 maint/gnulib/tests/test-argv-iter.c char *s = argv_iter (ai, &ai_err); ai 99 maint/gnulib/tests/test-argv-iter.c ASSERT (argv_iter_n_args (ai) == i); ai 100 maint/gnulib/tests/test-argv-iter.c argv_iter_free (ai); ai 68 maint/gnulib/tests/test-getaddrinfo.c struct addrinfo *ai0, *ai; ai 122 maint/gnulib/tests/test-getaddrinfo.c for (ai = ai0; ai; ai = ai->ai_next) ai 124 maint/gnulib/tests/test-getaddrinfo.c void *ai_addr = ai->ai_addr; ai 126 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\tflags %x\n", ai->ai_flags + 0u); ai 127 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\tfamily %x\n", ai->ai_family + 0u); ai 128 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\tsocktype %x\n", ai->ai_socktype + 0u); ai 129 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\tprotocol %x\n", ai->ai_protocol + 0u); ai 130 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\taddrlen %lu: ", (unsigned long) ai->ai_addrlen); ai 132 maint/gnulib/tests/test-getaddrinfo.c inet_ntop (ai->ai_family, ai 135 maint/gnulib/tests/test-getaddrinfo.c if (ai->ai_canonname) ai 136 maint/gnulib/tests/test-getaddrinfo.c dbgprintf ("\tFound %s...\n", ai->ai_canonname); ai 142 maint/gnulib/tests/test-getaddrinfo.c res = getnameinfo (ai->ai_addr, ai->ai_addrlen,