Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 46) sorted by relevance

12

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dpico-onexit.c43 void *arg; member
50 _on_exit(int kind, union on_exit_func func, void *arg) in _on_exit() argument
58 on_exits[o].arg = arg; in _on_exit()
69 on_exit (void (*func)(int, void *),void *arg) in on_exit() argument
72 return _on_exit(PICO_ONEXIT_ONEXIT, func_u, arg); in on_exit()
83 void *arg = 0; in __call_exitprocs() local
90 arg = on_exits[i].arg; in __call_exitprocs()
100 func.on_exit(code, arg); in __call_exitprocs()
106 func.cxa_atexit(arg); in __call_exitprocs()
Don_exit.c61 void *arg) in on_exit() argument
63 return __register_exitproc (__et_onexit, (void (*)(void)) fn, arg, NULL); in on_exit()
Dpico-cxa-atexit.c41 __cxa_atexit (void (*func) (void *), void *arg, void *d) in __cxa_atexit() argument
45 return _on_exit(PICO_ONEXIT_CXA_ATEXIT, func_u, arg); in __cxa_atexit()
Dcxa_atexit.c51 void *arg, in __cxa_atexit() argument
63 return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d); in __cxa_atexit()
/picolibc-3.7.0-3.6.0/semihost/
Dsys_elapsed.c44 } arg; in sys_semihost_elapsed() local
45 sys_semihost(SYS_ELAPSED, (uintptr_t) &arg); in sys_semihost_elapsed()
46 return (uint64_t) arg.field1; in sys_semihost_elapsed()
51 } arg; in sys_semihost_elapsed() local
52 sys_semihost(SYS_ELAPSED, (uintptr_t) &arg); in sys_semihost_elapsed()
53 return (((uint64_t) arg.field2) << 32) | ((uint32_t) arg.field1); in sys_semihost_elapsed()
Dsys_heapinfo.c46 } arg = { 0 }; in sys_semihost_heapinfo() local
47 (void) sys_semihost(SYS_HEAPINFO, (uintptr_t) &arg); in sys_semihost_heapinfo()
48 block->heap_base = (void *) (uintptr_t) arg.field1; in sys_semihost_heapinfo()
49 block->heap_limit = (void *) (uintptr_t) arg.field2; in sys_semihost_heapinfo()
50 block->stack_base = (void *) (uintptr_t) arg.field3; in sys_semihost_heapinfo()
51 block->stack_limit = (void *) (uintptr_t) arg.field4; in sys_semihost_heapinfo()
Dsys_get_cmdline.c45 } arg = { in sys_semihost_get_cmdline() local
49 uintptr_t ret = sys_semihost(SYS_GET_CMDLINE, (uintptr_t) &arg); in sys_semihost_get_cmdline()
51 if (arg.field1 != (sh_param_t) (uintptr_t) buf) in sys_semihost_get_cmdline()
52 strcpy(buf, (void *) (uintptr_t) arg.field1); in sys_semihost_get_cmdline()
Dsys_close.c43 } arg = { in sys_semihost_close() local
46 return (int) sys_semihost(SYS_CLOSE, (uintptr_t) &arg); in sys_semihost_close()
Dsys_istty.c43 } arg = { in sys_semihost_istty() local
46 return (int) sys_semihost(SYS_ISTTY, (uintptr_t) &arg); in sys_semihost_istty()
Dsys_iserror.c43 } arg = { in sys_semihost_iserror() local
46 return (int) sys_semihost(SYS_ISERROR, (uintptr_t) &arg); in sys_semihost_iserror()
Dsys_flen.c43 } arg = { in sys_semihost_flen() local
47 return (uintptr_t) sys_semihost(SYS_FLEN, (uintptr_t) &arg); in sys_semihost_flen()
Dsys_seek.c44 } arg = { in sys_semihost_seek() local
48 return (int) sys_semihost(SYS_SEEK, (uintptr_t) &arg); in sys_semihost_seek()
Dsys_system.c45 } arg = { in sys_semihost_system() local
49 return (int) sys_semihost(SYS_SYSTEM, (uintptr_t) &arg); in sys_semihost_system()
Dsys_remove.c45 } arg = { in sys_semihost_remove() local
50 return (int) sys_semihost(SYS_REMOVE, (uintptr_t) &arg); in sys_semihost_remove()
Dsys_exit_extended.c45 } arg = { in sys_semihost_exit_extended() local
49 (void) sys_semihost(SYS_EXIT_EXTENDED, (uintptr_t) &arg); in sys_semihost_exit_extended()
Dsys_open.c46 } arg = { in sys_semihost_open() local
52 return (int) sys_semihost(SYS_OPEN, (uintptr_t) &arg); in sys_semihost_open()
Dsys_tmpnam.c45 } arg = { in sys_semihost_tmpnam() local
51 return (int) sys_semihost(SYS_TMPNAM, (uintptr_t) &arg); in sys_semihost_tmpnam()
Dsys_exit.c46 } arg = { in sys_semihost_exit() local
50 (void) sys_semihost(SYS_EXIT, (uintptr_t) &arg); in sys_semihost_exit()
Dsys_read.c45 } arg = { in sys_semihost_read() local
51 return sys_semihost(SYS_READ, (uintptr_t) &arg); in sys_semihost_read()
Dsys_write.c45 } arg = { in sys_semihost_write() local
51 return sys_semihost(SYS_WRITE, (uintptr_t) &arg); in sys_semihost_write()
Dsys_rename.c47 } arg = { in sys_semihost_rename() local
54 return (int) sys_semihost(SYS_RENAME, (uintptr_t) &arg); in sys_semihost_rename()
Dlseek.c66 } arg = { in lseek() local
71 uintptr_t ret = sys_semihost(SYS_SEEK, (uintptr_t) &arg); in lseek()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dposix_memalign_ea.c52 memalign_ea_t arg; in posix_memalign_ea() local
61 arg.memptr = (unsigned int) memptr; in posix_memalign_ea()
62 arg.align = (unsigned long long) align; in posix_memalign_ea()
63 arg.size = (unsigned long long) size; in posix_memalign_ea()
65 &arg); in posix_memalign_ea()
Dperror.c49 c99_perror_t arg; in perror() local
51 arg.str = s; in perror()
52 arg.arg_errno = errno; in perror()
53 __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg); in perror()
Dfgetpos.c50 c99_fgetpos_t arg; in fgetpos() local
54 arg.fp = fp->_fp; in fgetpos()
55 arg.pos = pos; in fgetpos()
57 return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FGETPOS, &arg); in fgetpos()

12