/seL4-refos-master/libs/libmuslc/src/thread/ |
H A D | pthread_rwlock_tryrdlock.c | 5 int val, cnt; local 8 cnt = val & 0x7fffffff; 9 if (cnt == 0x7fffffff) return EBUSY; 10 if (cnt == 0x7ffffffe) return EAGAIN;
|
H A D | pthread_rwlock_unlock.c | 5 int val, cnt, waiters, new, priv = rw->_rw_shared^128; local 9 cnt = val & 0x7fffffff; 11 new = (cnt == 0x7fffffff || cnt == 1) ? 0 : val-1; 15 __wake(&rw->_rw_lock, cnt, priv);
|
H A D | pthread_cond_destroy.c | 6 int cnt; local 10 while ((cnt = c->_c_waiters) & 0x7fffffff) 11 __wait(&c->_c_waiters, 0, cnt, 0);
|
/seL4-refos-master/libs/libmuslc/src/stdio/ |
H A D | __stdio_read.c | 10 ssize_t cnt; local 12 cnt = syscall(SYS_readv, f->fd, iov, 2); 13 if (cnt <= 0) { 14 f->flags |= F_EOF ^ ((F_ERR^F_EOF) & cnt); 15 return cnt; 17 if (cnt <= iov[0].iov_len) return cnt; 18 cnt -= iov[0].iov_len; 20 f->rend = f->buf + cnt;
|
H A D | __stdio_write.c | 13 ssize_t cnt; local 15 cnt = syscall(SYS_writev, f->fd, iov, iovcnt); 16 if (cnt == rem) { 21 if (cnt < 0) { 26 rem -= cnt; 27 if (cnt > iov[0].iov_len) { 28 cnt -= iov[0].iov_len; 31 iov[0].iov_base = (char *)iov[0].iov_base + cnt; 32 iov[0].iov_len -= cnt;
|
/seL4-refos-master/libs/libmuslc/src/linux/ |
H A D | vmsplice.c | 5 ssize_t vmsplice(int fd, const struct iovec *iov, size_t cnt, unsigned flags) argument 7 return syscall(SYS_vmsplice, fd, iov, cnt, flags);
|
H A D | epoll.c | 25 int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs) argument 27 int r = __syscall(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8); 29 if (r==-ENOSYS && !sigs) r = __syscall(SYS_epoll_wait, fd, ev, cnt, to); 34 int epoll_wait(int fd, struct epoll_event *ev, int cnt, int to) argument 36 return epoll_pwait(fd, ev, cnt, to, 0);
|
/seL4-refos-master/libs/libmuslc/src/sched/ |
H A D | sched_cpucount.c | 6 size_t i, j, cnt=0; local 9 if (p[i] & (1<<j)) cnt++; 10 return cnt;
|
/seL4-refos-master/libs/libmuslc/src/network/ |
H A D | lookup_serv.c | 14 int cnt = 0; local 55 buf[cnt].port = port; 56 buf[cnt].socktype = SOCK_STREAM; 57 buf[cnt++].proto = IPPROTO_TCP; 60 buf[cnt].port = port; 61 buf[cnt].socktype = SOCK_DGRAM; 62 buf[cnt++].proto = IPPROTO_UDP; 64 return cnt; 82 while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { 100 buf[cnt] [all...] |
H A D | lookup_name.c | 27 int cnt = 0; local 31 buf[cnt++] = (struct address){ .family = AF_INET }; 33 buf[cnt++] = (struct address){ .family = AF_INET6 }; 36 buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; 38 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; 40 return cnt; 52 int cnt = 0, badfam = 0; local 63 while (fgets(line, sizeof line, f) && cnt < MAXADDRS) { 74 switch (name_from_numeric(buf+cnt, line, family)) { 76 cnt 98 int cnt; member in struct:dpc_ctx 203 int cnt = name_from_dns(buf, canon, canon, family, &conf); local 288 int cnt = 0, i, j; local [all...] |
H A D | gethostbyname2_r.c | 17 int i, cnt; local 21 cnt = __lookup_name(addrs, canon, name, af, AI_CANONNAME); 22 if (cnt<0) switch (cnt) { 46 need += (cnt + 1) * (sizeof(char *) + h->h_length); 57 buf += (cnt+1)*sizeof(char *); 59 for (i=0; i<cnt; i++) {
|
H A D | getservbyname_r.c | 16 int cnt, proto, align; local 31 cnt = __lookup_serv(servs, name, proto, 0, 0); 32 if (cnt<0) switch (cnt) {
|
/seL4-refos-master/libs/libmuslc/src/dirent/ |
H A D | scandir.c | 15 size_t cnt=0, len=0; local 22 if (cnt >= len) { 29 names[cnt] = malloc(de->d_reclen); 30 if (!names[cnt]) break; 31 memcpy(names[cnt++], de, de->d_reclen); 37 if (names) while (cnt-->0) free(names[cnt]); 43 if (cmp) qsort(names, cnt, sizeof *names, (int (*)(const void *, const void *))cmp); 45 return cnt;
|
/seL4-refos-master/libs/libmuslc/src/aio/ |
H A D | lio_listio.c | 10 int cnt; member in struct:lio_state 17 int cnt = st->cnt; local 21 for (i=0; i<cnt; i++) { 29 if (i==cnt) { 36 if (aio_suspend((void *)cbs, cnt, 0)) 70 int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, struct sigevent *restrict sev) argument 75 if (cnt < 0) { 81 if (!(st = malloc(sizeof *st + cnt*sizeof *cbs))) { 85 st->cnt [all...] |
H A D | aio_suspend.c | 10 int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec *ts) argument 20 if (cnt<0) { 25 for (i=0; i<cnt; i++) if (cbs[i]) { 41 for (i=0; i<cnt; i++) 60 for (i=0; i<cnt; i++)
|
/seL4-refos-master/libs/libmuslc/src/multibyte/ |
H A D | mbsnrtowcs.c | 5 size_t l, cnt=0, n2; local 21 cnt = l; 29 cnt += l; 35 cnt = l; 49 cnt++; 52 return cnt;
|
H A D | wcsnrtombs.c | 5 size_t l, cnt=0, n2; local 17 cnt = l; 25 cnt += l; 31 else cnt = l; 37 cnt += l; 40 return cnt;
|
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | track.c | 42 register int cnt, ndist; local 44 cnt = utcnt; 45 for(tc = &utrack[utpnt]; cnt--; ){ 53 cnt -= ndist; 54 if(cnt <= 0)
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | track.c | 42 register int cnt, ndist; local 44 cnt = utcnt; 45 for(tc = &utrack[utpnt]; cnt--; ){ 53 cnt -= ndist; 54 if(cnt <= 0)
|
/seL4-refos-master/libs/libmuslc/src/stdlib/ |
H A D | strtod.c | 15 off_t cnt = shcnt(&f); local 16 if (p) *p = cnt ? (char *)s + cnt : (char *)s;
|
H A D | wcstod.c | 46 size_t cnt = shcnt(&f); local 47 *p = cnt ? t + cnt : (wchar_t *)s;
|
/seL4-refos-master/libs/libmuslc/src/misc/ |
H A D | getopt_long.c | 44 int i, cnt = optind-resumed; local 45 for (i=0; i<cnt; i++) 47 optind = skipped + cnt; 60 int i, cnt, match; local 62 for (cnt=i=0; longopts[i].name; i++) { 70 cnt = 1; 73 cnt++; 75 if (cnt==1) { 111 __getopt_msg(argv[0], cnt ?
|
H A D | mntent.c | 24 int cnt, n[8], use_internal = (linebuf == SENTINEL); local 42 cnt = sscanf(linebuf, " %n%*s%n %n%*s%n %n%*s%n %n%*s%n %d %d", 45 } while (cnt < 2 || linebuf[n[0]] == '#');
|
/seL4-refos-master/projects/util_libs/libethdrivers/src/plat/am335x/ |
H A D | cpsw.c | 450 unsigned int cnt; local 452 for (cnt = 0; cnt < ALE_ENTRY_WORDS; cnt++) { 453 HWREG(baseAddr + CPSW_ALE_TBLW(cnt)) = *(aleEntryPtr + cnt); 472 unsigned int cnt; local 476 for (cnt = 0; cnt < ALE_ENTRY_WORDS; cnt 706 unsigned int cnt; local [all...] |
/seL4-refos-master/libs/libmuslc/src/regex/ |
H A D | glob.c | 161 size_t cnt, i; local 188 for (cnt=0, tail=head.next; tail; tail=tail->next, cnt++); 189 if (!cnt) { 194 cnt++; 200 char **pathv = realloc(g->gl_pathv, (offs + g->gl_pathc + cnt + 1) * sizeof(char *)); 208 g->gl_pathv = malloc((offs + cnt + 1) * sizeof(char *)); 216 for (i=0, tail=head.next; i<cnt; tail=tail->next, i++) 219 g->gl_pathc += cnt; 222 qsort(g->gl_pathv+offs, cnt, sizeo [all...] |