/seL4-refos-master/libs/libmuslc/src/linux/ |
H A D | pivot_root.c | 3 int pivot_root(const char *new, const char *old) argument 5 return syscall(SYS_pivot_root, new, old);
|
H A D | timerfd.c | 9 int timerfd_settime(int fd, int flags, const struct itimerspec *new, struct itimerspec *old) argument 11 return syscall(SYS_timerfd_settime, fd, flags, new, old);
|
/seL4-refos-master/libs/libmuslc/src/thread/ |
H A D | pthread_setcanceltype.c | 3 int pthread_setcanceltype(int new, int *old) argument 6 if (new > 1U) return EINVAL; 8 self->cancelasync = new; 9 if (new) pthread_testcancel();
|
H A D | pthread_setcancelstate.c | 3 int __pthread_setcancelstate(int new, int *old) argument 5 if (new > 2U) return EINVAL; 8 self->canceldisable = new;
|
H A D | pthread_rwlock_unlock.c | 5 int val, cnt, waiters, new, priv = rw->_rw_shared^128; local 11 new = (cnt == 0x7fffffff || cnt == 1) ? 0 : val-1; 12 } while (a_cas(&rw->_rw_lock, val, new) != val); 14 if (!new && (waiters || val<0))
|
H A D | pthread_atfork.c | 35 struct atfork_funcs *new = malloc(sizeof *new); local 36 if (!new) return -1; 39 new->next = funcs; 40 new->prev = 0; 41 new->prepare = prepare; 42 new->parent = parent; 43 new->child = child; 44 if (funcs) funcs->prev = new; 45 funcs = new; [all...] |
H A D | sem_trywait.c | 8 int new = val-1-(val==1 && sem->__val[1]); local 9 if (a_cas(sem->__val, val, new)==val) return 0;
|
/seL4-refos-master/libs/libmuslc/src/time/ |
H A D | mktime.c | 6 struct tm new; local 10 __secs_to_zone(t, 1, &new.tm_isdst, &new.__tm_gmtoff, &opp, &new.__tm_zone); 12 if (tm->tm_isdst>=0 && new.tm_isdst!=tm->tm_isdst) 13 t -= opp - new.__tm_gmtoff; 15 t -= new.__tm_gmtoff; 18 __secs_to_zone(t, 0, &new.tm_isdst, &new.__tm_gmtoff, &opp, &new [all...] |
H A D | timegm.c | 9 struct tm new; local 11 if (__secs_to_tm(t, &new) < 0) { 15 *tm = new;
|
/seL4-refos-master/libs/libmuslc/src/locale/ |
H A D | duplocale.c | 8 locale_t new = malloc(sizeof *new); local 9 if (!new) return 0; 11 *new = *old; 12 return new;
|
H A D | uselocale.c | 5 locale_t __uselocale(locale_t new) argument 11 if (new) self->locale = new == LC_GLOBAL_LOCALE ? global : new;
|
H A D | locale_map.c | 32 struct __locale_map *new = 0; local 82 new = malloc(sizeof *new); 83 if (!new) { 87 new->map = map; 88 new->map_size = map_size; 89 memcpy(new->name, val, n); 90 new->name[n] = 0; 91 new->next = loc_head; 92 loc_head = new; [all...] |
/seL4-refos-master/libs/libmuslc/src/stdio/ |
H A D | rename.c | 5 int rename(const char *old, const char *new) argument 8 return syscall(SYS_rename, old, new); 10 return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
|
/seL4-refos-master/libs/libmuslc/src/unistd/ |
H A D | link.c | 5 int link(const char *existing, const char *new) argument 8 return syscall(SYS_link, existing, new); 10 return syscall(SYS_linkat, AT_FDCWD, existing, AT_FDCWD, new, 0);
|
H A D | symlink.c | 5 int symlink(const char *existing, const char *new) argument 8 return syscall(SYS_symlink, existing, new); 10 return syscall(SYS_symlinkat, existing, AT_FDCWD, new);
|
H A D | renameat.c | 4 int renameat(int oldfd, const char *old, int newfd, const char *new) argument 6 return syscall(SYS_renameat, oldfd, old, newfd, new);
|
H A D | symlinkat.c | 4 int symlinkat(const char *existing, int fd, const char *new) argument 6 return syscall(SYS_symlinkat, existing, fd, new);
|
H A D | dup3.c | 8 int __dup3(int old, int new, int flags) argument 12 if (old==new) return __syscall_ret(-EINVAL); 14 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); 17 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); 18 if (flags & O_CLOEXEC) __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); 20 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY);
|
H A D | linkat.c | 4 int linkat(int fd1, const char *existing, int fd2, const char *new, int flag) argument 6 return syscall(SYS_linkat, fd1, existing, fd2, new, flag);
|
H A D | dup2.c | 6 int dup2(int old, int new) argument 10 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); 12 if (old==new) { 16 while ((r=__syscall(SYS_dup3, old, new, 0))==-EBUSY);
|
/seL4-refos-master/libs/libmuslc/src/mq/ |
H A D | mq_setattr.c | 4 int mq_setattr(mqd_t mqd, const struct mq_attr *restrict new, struct mq_attr *restrict old) argument 6 return syscall(SYS_mq_getsetattr, mqd, new, old);
|
/seL4-refos-master/libs/libmuslc/src/signal/ |
H A D | setitimer.c | 4 int setitimer(int which, const struct itimerval *restrict new, struct itimerval *restrict old) argument 6 return syscall(SYS_setitimer, which, new, old);
|
/seL4-refos-master/libs/libmuslc/src/malloc/ |
H A D | memalign.c | 12 unsigned char *mem, *new, *end; local 34 new = (void *)((uintptr_t)mem + align-1 & -align); 35 if (new == mem) return mem; 40 ((size_t *)new)[-2] = ((size_t *)mem)[-2] + (new-mem); 41 ((size_t *)new)[-1] = ((size_t *)mem)[-1] - (new-mem); 42 return new; 48 ((size_t *)mem)[-1] = header&7 | new-mem; 49 ((size_t *)new)[ [all...] |
H A D | lite_malloc.c | 30 char *new = __expand_heap(&m); local 31 if (!new) { 35 if (new != end) { 36 cur = new; 40 end = new + m;
|
/seL4-refos-master/libs/libmuslc/arch/microblaze/ |
H A D | atomic_arch.h | 40 register int new, tmp; 49 : "=&r"(new), "=&r"(tmp) 52 return new-v;
|