Changeset d5a89a3 in mainline for uspace/lib/c/include
- Timestamp:
- 2019-02-11T22:31:04Z (7 years ago)
- Children:
- aaf9789c
- Parents:
- e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c/include
- Files:
-
- 2 added
- 190 edited
-
adt/checksum.h (modified) (1 diff)
-
adt/circ_buf.h (modified) (1 diff)
-
adt/fifo.h (modified) (1 diff)
-
adt/gcdlcm.h (modified) (1 diff)
-
adt/hash.h (modified) (1 diff)
-
adt/hash_table.h (modified) (1 diff)
-
adt/list.h (modified) (11 diffs)
-
adt/prodcons.h (modified) (1 diff)
-
align.h (modified) (1 diff)
-
arg_parse.h (modified) (1 diff)
-
as.h (modified) (1 diff)
-
assert.h (modified) (1 diff)
-
async.h (modified) (8 diffs)
-
barrier.h (modified) (2 diffs)
-
bd.h (modified) (1 diff)
-
bd_srv.h (modified) (1 diff)
-
bitops.h (modified) (1 diff)
-
bsearch.h (modified) (1 diff)
-
byteorder.h (modified) (1 diff)
-
cap.h (modified) (1 diff)
-
clipboard.h (modified) (1 diff)
-
config.h (modified) (1 diff)
-
context.h (modified) (1 diff)
-
corecfg.h (modified) (1 diff)
-
ctype.h (modified) (1 diff)
-
ddi.h (modified) (1 diff)
-
device/clock_dev.h (modified) (1 diff)
-
device/hw_res.h (modified) (1 diff)
-
device/hw_res_parsed.h (modified) (1 diff)
-
device/led_dev.h (modified) (1 diff)
-
device/pio_window.h (modified) (1 diff)
-
devman.h (modified) (1 diff)
-
dirent.h (modified) (2 diffs)
-
dlfcn.h (modified) (1 diff)
-
elf/elf.h (modified) (1 diff)
-
elf/elf_linux.h (modified) (1 diff)
-
entry_point.h (modified) (1 diff)
-
errno.h (modified) (1 diff)
-
fibril.h (modified) (3 diffs)
-
fibril_synch.h (modified) (5 diffs)
-
fourcc.h (modified) (1 diff)
-
gsort.h (modified) (1 diff)
-
ieee80211/ieee80211.h (modified) (1 diff)
-
imath.h (modified) (1 diff)
-
inet/addr.h (modified) (1 diff)
-
inet/dhcp.h (modified) (1 diff)
-
inet/dnsr.h (modified) (1 diff)
-
inet/endpoint.h (modified) (1 diff)
-
inet/host.h (modified) (1 diff)
-
inet/hostname.h (modified) (1 diff)
-
inet/hostport.h (modified) (1 diff)
-
inet/inet.h (modified) (1 diff)
-
inet/inetcfg.h (modified) (1 diff)
-
inet/inetping.h (modified) (1 diff)
-
inet/iplink.h (modified) (1 diff)
-
inet/iplink_srv.h (modified) (1 diff)
-
inet/tcp.h (modified) (1 diff)
-
inet/udp.h (modified) (1 diff)
-
io/chardev.h (modified) (1 diff)
-
io/chardev_srv.h (modified) (1 diff)
-
io/charfield.h (modified) (1 diff)
-
io/chargrid.h (modified) (1 diff)
-
io/color.h (modified) (1 diff)
-
io/con_srv.h (modified) (1 diff)
-
io/concaps.h (modified) (1 diff)
-
io/cons_event.h (modified) (1 diff)
-
io/console.h (modified) (1 diff)
-
io/input.h (modified) (1 diff)
-
io/kbd_event.h (modified) (1 diff)
-
io/keycode.h (modified) (1 diff)
-
io/kio.h (modified) (1 diff)
-
io/klog.h (modified) (1 diff)
-
io/label.h (modified) (1 diff)
-
io/log.h (modified) (1 diff)
-
io/logctl.h (modified) (1 diff)
-
io/mode.h (modified) (1 diff)
-
io/output.h (modified) (1 diff)
-
io/pixel.h (modified) (1 diff)
-
io/pixelmap.h (modified) (1 diff)
-
io/pos_event.h (modified) (1 diff)
-
io/printf_core.h (modified) (1 diff)
-
io/serial.h (modified) (1 diff)
-
io/style.h (modified) (1 diff)
-
io/table.h (modified) (1 diff)
-
io/verify.h (modified) (1 diff)
-
io/visualizer.h (modified) (1 diff)
-
io/window.h (modified) (1 diff)
-
ipc/adb.h (modified) (1 diff)
-
ipc/bd.h (modified) (1 diff)
-
ipc/chardev.h (modified) (1 diff)
-
ipc/clipboard.h (modified) (1 diff)
-
ipc/common.h (modified) (1 diff)
-
ipc/console.h (modified) (1 diff)
-
ipc/corecfg.h (modified) (1 diff)
-
ipc/dev_iface.h (modified) (1 diff)
-
ipc/devman.h (modified) (1 diff)
-
ipc/dhcp.h (modified) (1 diff)
-
ipc/dnsr.h (modified) (1 diff)
-
ipc/event.h (modified) (1 diff)
-
ipc/graph.h (modified) (1 diff)
-
ipc/inet.h (modified) (1 diff)
-
ipc/input.h (modified) (1 diff)
-
ipc/ipc.h (modified) (1 diff)
-
ipc/ipc_test.h (modified) (1 diff)
-
ipc/iplink.h (modified) (1 diff)
-
ipc/irc.h (modified) (1 diff)
-
ipc/irq.h (modified) (1 diff)
-
ipc/kbdev.h (modified) (1 diff)
-
ipc/loader.h (modified) (1 diff)
-
ipc/loc.h (modified) (1 diff)
-
ipc/logger.h (modified) (1 diff)
-
ipc/mouseev.h (modified) (1 diff)
-
ipc/ns.h (modified) (1 diff)
-
ipc/output.h (modified) (1 diff)
-
ipc/pci.h (modified) (1 diff)
-
ipc/serial_ctl.h (modified) (1 diff)
-
ipc/services.h (modified) (1 diff)
-
ipc/tcp.h (modified) (1 diff)
-
ipc/udp.h (modified) (1 diff)
-
ipc/vbd.h (modified) (1 diff)
-
ipc/vfs.h (modified) (1 diff)
-
ipc/vol.h (modified) (1 diff)
-
ipc/window.h (modified) (1 diff)
-
ipc_test.h (modified) (1 diff)
-
irc.h (modified) (1 diff)
-
l18n/langs.h (modified) (1 diff)
-
libc.h (modified) (1 diff)
-
loader/loader.h (modified) (1 diff)
-
loader/pcb.h (modified) (1 diff)
-
loc.h (modified) (1 diff)
-
macros.h (modified) (1 diff)
-
malloc.h (modified) (1 diff)
-
mem.h (modified) (1 diff)
-
nic/eth_phys.h (modified) (1 diff)
-
nic/nic.h (modified) (1 diff)
-
ns.h (modified) (1 diff)
-
offset.h (modified) (1 diff)
-
pci.h (modified) (1 diff)
-
perf.h (added)
-
qsort.h (modified) (1 diff)
-
refcount.h (modified) (1 diff)
-
rndgen.h (modified) (1 diff)
-
rtld/dynamic.h (modified) (1 diff)
-
rtld/elf_dyn.h (modified) (1 diff)
-
rtld/module.h (modified) (1 diff)
-
rtld/rtld.h (modified) (1 diff)
-
rtld/rtld_arch.h (modified) (1 diff)
-
rtld/rtld_debug.h (modified) (1 diff)
-
rtld/symbol.h (modified) (1 diff)
-
setjmp.h (modified) (2 diffs)
-
smc.h (modified) (1 diff)
-
stack.h (modified) (1 diff)
-
stacktrace.h (modified) (1 diff)
-
stats.h (modified) (1 diff)
-
stdio.h (modified) (2 diffs)
-
stdlib.h (modified) (1 diff)
-
str.h (modified) (5 diffs)
-
str_error.h (modified) (1 diff)
-
string.h (modified) (1 diff)
-
syscall.h (modified) (1 diff)
-
sysinfo.h (modified) (1 diff)
-
task.h (modified) (1 diff)
-
time.h (modified) (2 diffs)
-
tls.h (modified) (1 diff)
-
tmpfile.h (modified) (1 diff)
-
trace.h (modified) (1 diff)
-
types/casting.h (added)
-
types/common.h (modified) (1 diff)
-
types/inet.h (modified) (1 diff)
-
types/inet/host.h (modified) (1 diff)
-
types/inet/hostport.h (modified) (1 diff)
-
types/inetcfg.h (modified) (1 diff)
-
types/inetping.h (modified) (1 diff)
-
types/io/chardev.h (modified) (1 diff)
-
types/label.h (modified) (1 diff)
-
types/pci.h (modified) (1 diff)
-
types/rtld/module.h (modified) (1 diff)
-
types/rtld/rtld.h (modified) (1 diff)
-
types/task.h (modified) (1 diff)
-
types/uuid.h (modified) (1 diff)
-
types/vol.h (modified) (1 diff)
-
udebug.h (modified) (1 diff)
-
unaligned.h (modified) (1 diff)
-
uuid.h (modified) (1 diff)
-
vbd.h (modified) (1 diff)
-
vfs/canonify.h (modified) (1 diff)
-
vfs/inbox.h (modified) (1 diff)
-
vfs/vfs.h (modified) (1 diff)
-
vfs/vfs_mtab.h (modified) (1 diff)
-
vfs/vfs_sess.h (modified) (1 diff)
-
vol.h (modified) (1 diff)
-
wchar.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/checksum.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CHECKSUM_H_36 #define LIBC_CHECKSUM_H_35 #ifndef _LIBC_CHECKSUM_H_ 36 #define _LIBC_CHECKSUM_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/adt/circ_buf.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CIRC_BUF_H_36 #define LIBC_CIRC_BUF_H_35 #ifndef _LIBC_CIRC_BUF_H_ 36 #define _LIBC_CIRC_BUF_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/adt/fifo.h
re3272101 rd5a89a3 43 43 */ 44 44 45 #ifndef LIBC_FIFO_H_46 #define LIBC_FIFO_H_45 #ifndef _LIBC_FIFO_H_ 46 #define _LIBC_FIFO_H_ 47 47 48 48 #include <stdlib.h> -
uspace/lib/c/include/adt/gcdlcm.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_GCDLCM_H_36 #define LIBC_GCDLCM_H_35 #ifndef _LIBC_GCDLCM_H_ 36 #define _LIBC_GCDLCM_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/adt/hash.h
re3272101 rd5a89a3 32 32 /** @file 33 33 */ 34 #ifndef LIBC_ADT_HASH_H_35 #define LIBC_ADT_HASH_H_34 #ifndef _LIBC_ADT_HASH_H_ 35 #define _LIBC_ADT_HASH_H_ 36 36 37 37 #include <stdint.h> -
uspace/lib/c/include/adt/hash_table.h
re3272101 rd5a89a3 35 35 */ 36 36 37 #ifndef LIBC_HASH_TABLE_H_38 #define LIBC_HASH_TABLE_H_37 #ifndef _LIBC_HASH_TABLE_H_ 38 #define _LIBC_HASH_TABLE_H_ 39 39 40 40 #include <adt/list.h> -
uspace/lib/c/include/adt/list.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_LIST_H_37 #define LIBC_LIST_H_36 #ifndef _LIBC_LIST_H_ 37 #define _LIBC_LIST_H_ 38 38 39 39 #include <assert.h> … … 151 151 * 152 152 */ 153 NO_TRACE static inline void link_initialize(link_t *link)153 _NO_TRACE static inline void link_initialize(link_t *link) 154 154 { 155 155 link->prev = NULL; … … 164 164 * 165 165 */ 166 NO_TRACE static inline void list_initialize(list_t *list)166 _NO_TRACE static inline void list_initialize(list_t *list) 167 167 { 168 168 list->head.prev = &list->head; … … 200 200 * 201 201 */ 202 NO_TRACE static inline void list_prepend(link_t *link, list_t *list)202 _NO_TRACE static inline void list_prepend(link_t *link, list_t *list) 203 203 { 204 204 list_insert_after(link, &list->head); … … 213 213 * 214 214 */ 215 NO_TRACE static inline void list_append(link_t *link, list_t *list)215 _NO_TRACE static inline void list_append(link_t *link, list_t *list) 216 216 { 217 217 list_insert_before(link, &list->head); … … 226 226 * 227 227 */ 228 NO_TRACE static inline void list_remove(link_t *link)228 _NO_TRACE static inline void list_remove(link_t *link) 229 229 { 230 230 if ((link->prev != NULL) && (link->next != NULL)) { … … 243 243 * 244 244 */ 245 NO_TRACE static inline bool list_empty(const list_t *list)245 _NO_TRACE static inline bool list_empty(const list_t *list) 246 246 { 247 247 return (list->head.next == &list->head); … … 311 311 * 312 312 */ 313 NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)313 _NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2) 314 314 { 315 315 part1->prev->next = part2; … … 332 332 * 333 333 */ 334 NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)334 _NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2) 335 335 { 336 336 headless_list_split_or_concat(part1, part2); … … 347 347 * 348 348 */ 349 NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)349 _NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2) 350 350 { 351 351 headless_list_split_or_concat(part1, part2); … … 362 362 * 363 363 */ 364 NO_TRACE static inline void list_concat(list_t *list1, list_t *list2)364 _NO_TRACE static inline void list_concat(list_t *list1, list_t *list2) 365 365 { 366 366 list_splice(list2, list1->head.prev); -
uspace/lib/c/include/adt/prodcons.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_PRODCONS_H_36 #define LIBC_PRODCONS_H_35 #ifndef _LIBC_PRODCONS_H_ 36 #define _LIBC_PRODCONS_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/align.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ALIGN_H_36 #define LIBC_ALIGN_H_35 #ifndef _LIBC_ALIGN_H_ 36 #define _LIBC_ALIGN_H_ 37 37 38 38 /** Align to the nearest lower address which is a power of two. -
uspace/lib/c/include/arg_parse.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ARG_PARSE_H_36 #define LIBC_ARG_PARSE_H_35 #ifndef _LIBC_ARG_PARSE_H_ 36 #define _LIBC_ARG_PARSE_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/as.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_AS_H_36 #define LIBC_AS_H_35 #ifndef _LIBC_AS_H_ 36 #define _LIBC_AS_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/assert.h
re3272101 rd5a89a3 38 38 // This is in accordance with the C standard. 39 39 40 #ifndef LIBC_ASSERT_H_41 #define LIBC_ASSERT_H_40 #ifndef _LIBC_ASSERT_H_ 41 #define _LIBC_ASSERT_H_ 42 42 43 43 #ifndef __cplusplus 44 #define static_assert (expr) _Static_assert(expr, "")44 #define static_assert _Static_assert 45 45 #endif 46 46 -
uspace/lib/c/include/async.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #if ((defined( LIBC_IPC_H_)) && (!defined(LIBC_ASYNC_C_)))35 #if ((defined(_LIBC_IPC_H_)) && (!defined(_LIBC_ASYNC_C_))) 36 36 #error Do not intermix low-level IPC interface and async framework 37 37 #endif 38 38 39 #ifndef LIBC_ASYNC_H_40 #define LIBC_ASYNC_H_39 #ifndef _LIBC_ASYNC_H_ 40 #define _LIBC_ASYNC_H_ 41 41 42 42 #include <ipc/common.h> 43 #include <fibril.h>44 43 #include <time.h> 45 44 #include <stdbool.h> … … 109 108 extern __noreturn void async_manager(void); 110 109 111 #define async_get_call(data) \ 112 async_get_call_timeout(data, 0) 113 110 extern bool async_get_call(ipc_call_t *); 114 111 extern bool async_get_call_timeout(ipc_call_t *, usec_t); 115 112 116 /* 117 * User-friendly wrappers for async_send_fast() and async_send_slow(). The 118 * macros are in the form async_send_m(), where m denotes the number of payload 119 * arguments. Each macros chooses between the fast and the slow version based 120 * on m. 121 */ 122 123 #define async_send_0(exch, method, dataptr) \ 124 async_send_fast(exch, method, 0, 0, 0, 0, dataptr) 125 #define async_send_1(exch, method, arg1, dataptr) \ 126 async_send_fast(exch, method, arg1, 0, 0, 0, dataptr) 127 #define async_send_2(exch, method, arg1, arg2, dataptr) \ 128 async_send_fast(exch, method, arg1, arg2, 0, 0, dataptr) 129 #define async_send_3(exch, method, arg1, arg2, arg3, dataptr) \ 130 async_send_fast(exch, method, arg1, arg2, arg3, 0, dataptr) 131 #define async_send_4(exch, method, arg1, arg2, arg3, arg4, dataptr) \ 132 async_send_fast(exch, method, arg1, arg2, arg3, arg4, dataptr) 133 #define async_send_5(exch, method, arg1, arg2, arg3, arg4, arg5, dataptr) \ 134 async_send_slow(exch, method, arg1, arg2, arg3, arg4, arg5, dataptr) 135 136 extern aid_t async_send_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 113 extern aid_t async_send_0(async_exch_t *, sysarg_t, ipc_call_t *); 114 extern aid_t async_send_1(async_exch_t *, sysarg_t, sysarg_t, ipc_call_t *); 115 extern aid_t async_send_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 116 ipc_call_t *); 117 extern aid_t async_send_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 118 sysarg_t, ipc_call_t *); 119 extern aid_t async_send_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 137 120 sysarg_t, sysarg_t, ipc_call_t *); 138 extern aid_t async_send_ slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,121 extern aid_t async_send_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 139 122 sysarg_t, sysarg_t, sysarg_t, ipc_call_t *); 140 123 … … 199 182 */ 200 183 201 extern errno_t async_forward_fast(ipc_call_t *, async_exch_t *, sysarg_t, 184 extern errno_t async_forward_0(ipc_call_t *, async_exch_t *, sysarg_t, 185 unsigned int); 186 extern errno_t async_forward_1(ipc_call_t *, async_exch_t *, sysarg_t, 187 sysarg_t, unsigned int); 188 extern errno_t async_forward_2(ipc_call_t *, async_exch_t *, sysarg_t, 202 189 sysarg_t, sysarg_t, unsigned int); 203 extern errno_t async_forward_slow(ipc_call_t *, async_exch_t *, sysarg_t, 190 extern errno_t async_forward_3(ipc_call_t *, async_exch_t *, sysarg_t, 191 sysarg_t, sysarg_t, sysarg_t, unsigned int); 192 extern errno_t async_forward_4(ipc_call_t *, async_exch_t *, sysarg_t, 193 sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int); 194 extern errno_t async_forward_5(ipc_call_t *, async_exch_t *, sysarg_t, 204 195 sysarg_t, sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int); 205 196 206 197 /* 207 * User-friendly wrappers for async_req_fast() and async_req_slow(). The macros 208 * are in the form async_req_m_n(), where m is the number of payload arguments 209 * and n is the number of return arguments. The macros decide between the fast 210 * and slow verion based on m. 211 */ 212 213 #define async_req_0_0(exch, method) \ 214 async_req_fast(exch, method, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL) 215 #define async_req_0_1(exch, method, r1) \ 216 async_req_fast(exch, method, 0, 0, 0, 0, r1, NULL, NULL, NULL, NULL) 217 #define async_req_0_2(exch, method, r1, r2) \ 218 async_req_fast(exch, method, 0, 0, 0, 0, r1, r2, NULL, NULL, NULL) 219 #define async_req_0_3(exch, method, r1, r2, r3) \ 220 async_req_fast(exch, method, 0, 0, 0, 0, r1, r2, r3, NULL, NULL) 221 #define async_req_0_4(exch, method, r1, r2, r3, r4) \ 222 async_req_fast(exch, method, 0, 0, 0, 0, r1, r2, r3, r4, NULL) 223 #define async_req_0_5(exch, method, r1, r2, r3, r4, r5) \ 224 async_req_fast(exch, method, 0, 0, 0, 0, r1, r2, r3, r4, r5) 225 226 #define async_req_1_0(exch, method, arg1) \ 227 async_req_fast(exch, method, arg1, 0, 0, 0, NULL, NULL, NULL, NULL, \ 228 NULL) 229 #define async_req_1_1(exch, method, arg1, rc1) \ 230 async_req_fast(exch, method, arg1, 0, 0, 0, rc1, NULL, NULL, NULL, \ 231 NULL) 232 #define async_req_1_2(exch, method, arg1, rc1, rc2) \ 233 async_req_fast(exch, method, arg1, 0, 0, 0, rc1, rc2, NULL, NULL, \ 234 NULL) 235 #define async_req_1_3(exch, method, arg1, rc1, rc2, rc3) \ 236 async_req_fast(exch, method, arg1, 0, 0, 0, rc1, rc2, rc3, NULL, \ 237 NULL) 238 #define async_req_1_4(exch, method, arg1, rc1, rc2, rc3, rc4) \ 239 async_req_fast(exch, method, arg1, 0, 0, 0, rc1, rc2, rc3, rc4, \ 240 NULL) 241 #define async_req_1_5(exch, method, arg1, rc1, rc2, rc3, rc4, rc5) \ 242 async_req_fast(exch, method, arg1, 0, 0, 0, rc1, rc2, rc3, rc4, \ 243 rc5) 244 245 #define async_req_2_0(exch, method, arg1, arg2) \ 246 async_req_fast(exch, method, arg1, arg2, 0, 0, NULL, NULL, NULL, \ 247 NULL, NULL) 248 #define async_req_2_1(exch, method, arg1, arg2, rc1) \ 249 async_req_fast(exch, method, arg1, arg2, 0, 0, rc1, NULL, NULL, \ 250 NULL, NULL) 251 #define async_req_2_2(exch, method, arg1, arg2, rc1, rc2) \ 252 async_req_fast(exch, method, arg1, arg2, 0, 0, rc1, rc2, NULL, NULL, \ 253 NULL) 254 #define async_req_2_3(exch, method, arg1, arg2, rc1, rc2, rc3) \ 255 async_req_fast(exch, method, arg1, arg2, 0, 0, rc1, rc2, rc3, NULL, \ 256 NULL) 257 #define async_req_2_4(exch, method, arg1, arg2, rc1, rc2, rc3, rc4) \ 258 async_req_fast(exch, method, arg1, arg2, 0, 0, rc1, rc2, rc3, rc4, \ 259 NULL) 260 #define async_req_2_5(exch, method, arg1, arg2, rc1, rc2, rc3, rc4, rc5) \ 261 async_req_fast(exch, method, arg1, arg2, 0, 0, rc1, rc2, rc3, rc4, \ 262 rc5) 263 264 #define async_req_3_0(exch, method, arg1, arg2, arg3) \ 265 async_req_fast(exch, method, arg1, arg2, arg3, 0, NULL, NULL, NULL, \ 266 NULL, NULL) 267 #define async_req_3_1(exch, method, arg1, arg2, arg3, rc1) \ 268 async_req_fast(exch, method, arg1, arg2, arg3, 0, rc1, NULL, NULL, \ 269 NULL, NULL) 270 #define async_req_3_2(exch, method, arg1, arg2, arg3, rc1, rc2) \ 271 async_req_fast(exch, method, arg1, arg2, arg3, 0, rc1, rc2, NULL, \ 272 NULL, NULL) 273 #define async_req_3_3(exch, method, arg1, arg2, arg3, rc1, rc2, rc3) \ 274 async_req_fast(exch, method, arg1, arg2, arg3, 0, rc1, rc2, rc3, \ 275 NULL, NULL) 276 #define async_req_3_4(exch, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4) \ 277 async_req_fast(exch, method, arg1, arg2, arg3, 0, rc1, rc2, rc3, \ 278 rc4, NULL) 279 #define async_req_3_5(exch, method, arg1, arg2, arg3, rc1, rc2, rc3, rc4, \ 280 rc5) \ 281 async_req_fast(exch, method, arg1, arg2, arg3, 0, rc1, rc2, rc3, \ 282 rc4, rc5) 283 284 #define async_req_4_0(exch, method, arg1, arg2, arg3, arg4) \ 285 async_req_fast(exch, method, arg1, arg2, arg3, arg4, NULL, NULL, \ 286 NULL, NULL, NULL) 287 #define async_req_4_1(exch, method, arg1, arg2, arg3, arg4, rc1) \ 288 async_req_fast(exch, method, arg1, arg2, arg3, arg4, rc1, NULL, \ 289 NULL, NULL, NULL) 290 #define async_req_4_2(exch, method, arg1, arg2, arg3, arg4, rc1, rc2) \ 291 async_req_fast(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, NULL, \ 292 NULL, NULL) 293 #define async_req_4_3(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3) \ 294 async_req_fast(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \ 295 NULL, NULL) 296 #define async_req_4_4(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \ 297 rc4) \ 298 async_req_fast(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \ 299 rc4, NULL) 300 #define async_req_4_5(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \ 301 rc4, rc5) \ 302 async_req_fast(exch, method, arg1, arg2, arg3, arg4, rc1, rc2, rc3, \ 303 rc4, rc5) 304 305 #define async_req_5_0(exch, method, arg1, arg2, arg3, arg4, arg5) \ 306 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, NULL, \ 307 NULL, NULL, NULL, NULL) 308 #define async_req_5_1(exch, method, arg1, arg2, arg3, arg4, arg5, rc1) \ 309 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, \ 310 NULL, NULL, NULL, NULL) 311 #define async_req_5_2(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2) \ 312 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 313 NULL, NULL, NULL) 314 #define async_req_5_3(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 315 rc3) \ 316 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 317 rc3, NULL, NULL) 318 #define async_req_5_4(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 319 rc3, rc4) \ 320 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 321 rc3, rc4, NULL) 322 #define async_req_5_5(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 323 rc3, rc4, rc5) \ 324 async_req_slow(exch, method, arg1, arg2, arg3, arg4, arg5, rc1, rc2, \ 325 rc3, rc4, rc5) 326 327 extern errno_t async_req_fast(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 198 * User-friendly wrappers for async_req_*_*(). 199 * The functions are in the form async_req_m_n(), where m is the number of 200 * payload arguments and n is the number of return arguments. 201 */ 202 203 extern errno_t async_req_0_0(async_exch_t *, sysarg_t); 204 extern errno_t async_req_0_1(async_exch_t *, sysarg_t, sysarg_t *); 205 extern errno_t async_req_0_2(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *); 206 extern errno_t async_req_0_3(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *, 207 sysarg_t *); 208 extern errno_t async_req_0_4(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *, 209 sysarg_t *, sysarg_t *); 210 extern errno_t async_req_0_5(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *, 211 sysarg_t *, sysarg_t *, sysarg_t *); 212 extern errno_t async_req_1_0(async_exch_t *, sysarg_t, sysarg_t); 213 extern errno_t async_req_1_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *); 214 extern errno_t async_req_1_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *, 215 sysarg_t *); 216 extern errno_t async_req_1_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *, 217 sysarg_t *, sysarg_t *); 218 extern errno_t async_req_1_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *, 219 sysarg_t *, sysarg_t *, sysarg_t *); 220 extern errno_t async_req_1_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *, 221 sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 222 extern errno_t async_req_2_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t); 223 extern errno_t async_req_2_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 224 sysarg_t *); 225 extern errno_t async_req_2_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 226 sysarg_t *, sysarg_t *); 227 extern errno_t async_req_2_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 228 sysarg_t *, sysarg_t *, sysarg_t *); 229 extern errno_t async_req_2_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 230 sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 231 extern errno_t async_req_2_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 232 sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 233 extern errno_t async_req_3_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 234 sysarg_t); 235 extern errno_t async_req_3_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 236 sysarg_t, sysarg_t *); 237 extern errno_t async_req_3_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 238 sysarg_t, sysarg_t *, sysarg_t *); 239 extern errno_t async_req_3_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 240 sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *); 241 extern errno_t async_req_3_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 242 sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 243 extern errno_t async_req_3_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 244 sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 245 extern errno_t async_req_4_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 246 sysarg_t, sysarg_t); 247 extern errno_t async_req_4_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 248 sysarg_t, sysarg_t, sysarg_t *); 249 extern errno_t async_req_4_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 250 sysarg_t, sysarg_t, sysarg_t *, sysarg_t *); 251 extern errno_t async_req_4_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 252 sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *); 253 extern errno_t async_req_4_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 254 sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *); 255 extern errno_t async_req_4_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 328 256 sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *, 329 257 sysarg_t *); 330 extern errno_t async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 258 extern errno_t async_req_5_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 259 sysarg_t, sysarg_t, sysarg_t); 260 extern errno_t async_req_5_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 261 sysarg_t, sysarg_t, sysarg_t, sysarg_t *); 262 extern errno_t async_req_5_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 263 sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *); 264 extern errno_t async_req_5_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 265 sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *); 266 extern errno_t async_req_5_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 267 sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, 268 sysarg_t *); 269 extern errno_t async_req_5_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 331 270 sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, 332 271 sysarg_t *, sysarg_t *); … … 358 297 */ 359 298 360 #define async_share_in_start_0_0(exch, size, dst) \ 361 async_share_in_start(exch, size, 0, NULL, dst) 362 #define async_share_in_start_0_1(exch, size, flags, dst) \ 363 async_share_in_start(exch, size, 0, flags, dst) 364 #define async_share_in_start_1_0(exch, size, arg, dst) \ 365 async_share_in_start(exch, size, arg, NULL, dst) 366 #define async_share_in_start_1_1(exch, size, arg, flags, dst) \ 367 async_share_in_start(exch, size, arg, flags, dst) 368 369 extern errno_t async_share_in_start(async_exch_t *, size_t, sysarg_t, 299 extern errno_t async_share_in_start_0_0(async_exch_t *, size_t, void **); 300 extern errno_t async_share_in_start_0_1(async_exch_t *, size_t, 370 301 unsigned int *, void **); 302 extern errno_t async_share_in_start_1_0(async_exch_t *, size_t, sysarg_t, 303 void **); 304 extern errno_t async_share_in_start_1_1(async_exch_t *, size_t, sysarg_t, 305 unsigned int *, void **); 306 371 307 extern bool async_share_in_receive(ipc_call_t *, size_t *); 372 308 extern errno_t async_share_in_finalize(ipc_call_t *, void *, unsigned int); … … 376 312 extern errno_t async_share_out_finalize(ipc_call_t *, void **); 377 313 378 /* 379 * User-friendly wrappers for async_data_read_forward_fast(). 380 */ 381 382 #define async_data_read_forward_0_0(exch, method, answer) \ 383 async_data_read_forward_fast(exch, method, 0, 0, 0, 0, NULL) 384 #define async_data_read_forward_0_1(exch, method, answer) \ 385 async_data_read_forward_fast(exch, method, 0, 0, 0, 0, answer) 386 #define async_data_read_forward_1_0(exch, method, arg1, answer) \ 387 async_data_read_forward_fast(exch, method, arg1, 0, 0, 0, NULL) 388 #define async_data_read_forward_1_1(exch, method, arg1, answer) \ 389 async_data_read_forward_fast(exch, method, arg1, 0, 0, 0, answer) 390 #define async_data_read_forward_2_0(exch, method, arg1, arg2, answer) \ 391 async_data_read_forward_fast(exch, method, arg1, arg2, 0, 0, NULL) 392 #define async_data_read_forward_2_1(exch, method, arg1, arg2, answer) \ 393 async_data_read_forward_fast(exch, method, arg1, arg2, 0, 0, answer) 394 #define async_data_read_forward_3_0(exch, method, arg1, arg2, arg3, answer) \ 395 async_data_read_forward_fast(exch, method, arg1, arg2, arg3, 0, NULL) 396 #define async_data_read_forward_3_1(exch, method, arg1, arg2, arg3, answer) \ 397 async_data_read_forward_fast(exch, method, arg1, arg2, arg3, 0, \ 398 answer) 399 #define async_data_read_forward_4_0(exch, method, arg1, arg2, arg3, arg4, \ 400 answer) \ 401 async_data_read_forward_fast(exch, method, arg1, arg2, arg3, arg4, \ 402 NULL) 403 #define async_data_read_forward_4_1(exch, method, arg1, arg2, arg3, arg4, \ 404 answer) \ 405 async_data_read_forward_fast(exch, method, arg1, arg2, arg3, arg4, \ 406 answer) 314 extern errno_t async_data_read_forward_0_0(async_exch_t *, sysarg_t); 315 extern errno_t async_data_read_forward_1_0(async_exch_t *, sysarg_t, sysarg_t); 316 extern errno_t async_data_read_forward_2_0(async_exch_t *, sysarg_t, sysarg_t, 317 sysarg_t); 318 extern errno_t async_data_read_forward_3_0(async_exch_t *, sysarg_t, sysarg_t, 319 sysarg_t, sysarg_t); 320 extern errno_t async_data_read_forward_4_0(async_exch_t *, sysarg_t, sysarg_t, 321 sysarg_t, sysarg_t, sysarg_t); 322 323 extern errno_t async_data_read_forward_0_1(async_exch_t *, sysarg_t, 324 ipc_call_t *); 325 extern errno_t async_data_read_forward_1_1(async_exch_t *, sysarg_t, sysarg_t, 326 ipc_call_t *); 327 extern errno_t async_data_read_forward_2_1(async_exch_t *, sysarg_t, sysarg_t, 328 sysarg_t, ipc_call_t *); 329 extern errno_t async_data_read_forward_3_1(async_exch_t *, sysarg_t, sysarg_t, 330 sysarg_t, sysarg_t, ipc_call_t *); 331 extern errno_t async_data_read_forward_4_1(async_exch_t *, sysarg_t, sysarg_t, 332 sysarg_t, sysarg_t, sysarg_t, ipc_call_t *); 407 333 408 334 extern aid_t async_data_read(async_exch_t *, void *, size_t, ipc_call_t *); … … 411 337 extern errno_t async_data_read_finalize(ipc_call_t *, const void *, size_t); 412 338 413 extern errno_t async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t, 339 extern errno_t async_data_write_forward_0_0(async_exch_t *, sysarg_t); 340 extern errno_t async_data_write_forward_1_0(async_exch_t *, sysarg_t, sysarg_t); 341 extern errno_t async_data_write_forward_2_0(async_exch_t *, sysarg_t, sysarg_t, 342 sysarg_t); 343 extern errno_t async_data_write_forward_3_0(async_exch_t *, sysarg_t, sysarg_t, 344 sysarg_t, sysarg_t); 345 extern errno_t async_data_write_forward_4_0(async_exch_t *, sysarg_t, sysarg_t, 346 sysarg_t, sysarg_t, sysarg_t); 347 348 extern errno_t async_data_write_forward_0_1(async_exch_t *, sysarg_t, 349 ipc_call_t *); 350 extern errno_t async_data_write_forward_1_1(async_exch_t *, sysarg_t, sysarg_t, 351 ipc_call_t *); 352 extern errno_t async_data_write_forward_2_1(async_exch_t *, sysarg_t, sysarg_t, 353 sysarg_t, ipc_call_t *); 354 extern errno_t async_data_write_forward_3_1(async_exch_t *, sysarg_t, sysarg_t, 355 sysarg_t, sysarg_t, ipc_call_t *); 356 extern errno_t async_data_write_forward_4_1(async_exch_t *, sysarg_t, sysarg_t, 414 357 sysarg_t, sysarg_t, sysarg_t, ipc_call_t *); 415 416 /*417 * User-friendly wrappers for async_data_write_forward_fast().418 */419 420 #define async_data_write_forward_0_0(exch, method, answer) \421 async_data_write_forward_fast(exch, method, 0, 0, 0, 0, NULL)422 #define async_data_write_forward_0_1(exch, method, answer) \423 async_data_write_forward_fast(exch, method, 0, 0, 0, 0, answer)424 #define async_data_write_forward_1_0(exch, method, arg1, answer) \425 async_data_write_forward_fast(exch, method, arg1, 0, 0, 0, NULL)426 #define async_data_write_forward_1_1(exch, method, arg1, answer) \427 async_data_write_forward_fast(exch, method, arg1, 0, 0, 0, answer)428 #define async_data_write_forward_2_0(exch, method, arg1, arg2, answer) \429 async_data_write_forward_fast(exch, method, arg1, arg2, 0, 0, NULL)430 #define async_data_write_forward_2_1(exch, method, arg1, arg2, answer) \431 async_data_write_forward_fast(exch, method, arg1, arg2, 0, 0, answer)432 #define async_data_write_forward_3_0(exch, method, arg1, arg2, arg3, answer) \433 async_data_write_forward_fast(exch, method, arg1, arg2, arg3, 0, \434 NULL)435 #define async_data_write_forward_3_1(exch, method, arg1, arg2, arg3, answer) \436 async_data_write_forward_fast(exch, method, arg1, arg2, arg3, 0, \437 answer)438 #define async_data_write_forward_4_0(exch, method, arg1, arg2, arg3, arg4, \439 answer) \440 async_data_write_forward_fast(exch, method, arg1, arg2, arg3, arg4, \441 NULL)442 #define async_data_write_forward_4_1(exch, method, arg1, arg2, arg3, arg4, \443 answer) \444 async_data_write_forward_fast(exch, method, arg1, arg2, arg3, arg4, \445 answer)446 358 447 359 extern errno_t async_data_write_start(async_exch_t *, const void *, size_t); … … 452 364 const size_t, const size_t, size_t *); 453 365 extern void async_data_write_void(errno_t); 454 455 extern errno_t async_data_write_forward_fast(async_exch_t *, sysarg_t, sysarg_t,456 sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);457 366 458 367 extern async_sess_t *async_callback_receive(exch_mgmt_t); … … 473 382 474 383 errno_t async_spawn_notification_handler(void); 475 fid_t async_create_manager(void);476 384 477 385 #endif -
uspace/lib/c/include/barrier.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_COMPILER_BARRIER_H_36 #define LIBC_COMPILER_BARRIER_H_35 #ifndef _LIBC_COMPILER_BARRIER_H_ 36 #define _LIBC_COMPILER_BARRIER_H_ 37 37 38 38 #include <stdatomic.h> … … 61 61 #define ACCESS_ONCE(var) (*((volatile typeof(var)*)&(var))) 62 62 63 #endif /* LIBC_COMPILER_BARRIER_H_ */63 #endif /* _LIBC_COMPILER_BARRIER_H_ */ -
uspace/lib/c/include/bd.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_BD_H_36 #define LIBC_BD_H_35 #ifndef _LIBC_BD_H_ 36 #define _LIBC_BD_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/bd_srv.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_BD_SRV_H_36 #define LIBC_BD_SRV_H_35 #ifndef _LIBC_BD_SRV_H_ 36 #define _LIBC_BD_SRV_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/bitops.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_BITOPS_H_36 #define LIBC_BITOPS_H_35 #ifndef _LIBC_BITOPS_H_ 36 #define _LIBC_BITOPS_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/bsearch.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_BSEARCH_H_36 #define LIBC_BSEARCH_H_35 #ifndef _LIBC_BSEARCH_H_ 36 #define _LIBC_BSEARCH_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/byteorder.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_BYTEORDER_H_36 #define LIBC_BYTEORDER_H_35 #ifndef _LIBC_BYTEORDER_H_ 36 #define _LIBC_BYTEORDER_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/cap.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_CAP_H_37 #define LIBC_CAP_H_36 #ifndef _LIBC_CAP_H_ 37 #define _LIBC_CAP_H_ 38 38 39 39 #include <adt/list.h> -
uspace/lib/c/include/clipboard.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CLIPBOARD_H_36 #define LIBC_CLIPBOARD_H_35 #ifndef _LIBC_CLIPBOARD_H_ 36 #define _LIBC_CLIPBOARD_H_ 37 37 38 38 extern errno_t clipboard_put_str(const char *); -
uspace/lib/c/include/config.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CONFIG_H_36 #define LIBC_CONFIG_H_35 #ifndef _LIBC_CONFIG_H_ 36 #define _LIBC_CONFIG_H_ 37 37 38 38 #include <stdbool.h> -
uspace/lib/c/include/context.h
re3272101 rd5a89a3 27 27 */ 28 28 29 #ifndef LIBC_CONTEXT_H_30 #define LIBC_CONTEXT_H_29 #ifndef _LIBC_CONTEXT_H_ 30 #define _LIBC_CONTEXT_H_ 31 31 32 32 #include <_bits/size_t.h> 33 33 #include <libarch/fibril_context.h> 34 35 typedef __context_t context_t; 34 36 35 37 /* Context initialization data. */ -
uspace/lib/c/include/corecfg.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CORECFG_H_36 #define LIBC_CORECFG_H_35 #ifndef _LIBC_CORECFG_H_ 36 #define _LIBC_CORECFG_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/ctype.h
re3272101 rd5a89a3 27 27 */ 28 28 29 /** @addtogroup libc 30 * @{ 31 */ 32 /** @file 33 */ 29 #ifndef _LIBC_CTYPE_H_ 30 #define _LIBC_CTYPE_H_ 34 31 35 #ifndef LIBC_CTYPE_H_ 36 #define LIBC_CTYPE_H_ 37 38 static inline int islower(int c) 39 { 40 return ((c >= 'a') && (c <= 'z')); 41 } 42 43 static inline int isupper(int c) 44 { 45 return ((c >= 'A') && (c <= 'Z')); 46 } 47 48 static inline int isalpha(int c) 49 { 50 return (islower(c) || isupper(c)); 51 } 52 53 static inline int isdigit(int c) 54 { 55 return ((c >= '0') && (c <= '9')); 56 } 57 58 static inline int isalnum(int c) 59 { 60 return (isalpha(c) || isdigit(c)); 61 } 62 63 static inline int isblank(int c) 64 { 65 return c == ' ' || c == '\t'; 66 } 67 68 static inline int iscntrl(int c) 69 { 70 return (c >= 0 && c < 0x20) || c == 0x7E; 71 } 72 73 static inline int isprint(int c) 74 { 75 return c >= 0 && c < 0x80 && !iscntrl(c); 76 } 77 78 static inline int isgraph(int c) 79 { 80 return isprint(c) && c != ' '; 81 } 82 83 static inline int isspace(int c) 84 { 85 switch (c) { 86 case ' ': 87 case '\n': 88 case '\t': 89 case '\f': 90 case '\r': 91 case '\v': 92 return 1; 93 break; 94 default: 95 return 0; 96 } 97 } 98 99 static inline int ispunct(int c) 100 { 101 return !isspace(c) && !isalnum(c) && isprint(c); 102 } 103 104 static inline int isxdigit(int c) 105 { 106 return isdigit(c) || 107 (c >= 'a' && c <= 'f') || 108 (c >= 'A' && c <= 'F'); 109 } 110 111 static inline int tolower(int c) 112 { 113 if (isupper(c)) 114 return (c + ('a' - 'A')); 115 else 116 return c; 117 } 118 119 static inline int toupper(int c) 120 { 121 if (islower(c)) 122 return (c + ('A' - 'a')); 123 else 124 return c; 125 } 32 int islower(int); 33 int isupper(int); 34 int isalpha(int); 35 int isdigit(int); 36 int isalnum(int); 37 int isblank(int); 38 int iscntrl(int); 39 int isprint(int); 40 int isgraph(int); 41 int isspace(int); 42 int ispunct(int); 43 int isxdigit(int); 44 int tolower(int); 45 int toupper(int); 126 46 127 47 #endif 128 129 /** @}130 */ -
uspace/lib/c/include/ddi.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DDI_H_36 #define LIBC_DDI_H_35 #ifndef _LIBC_DDI_H_ 36 #define _LIBC_DDI_H_ 37 37 38 38 #include <stdbool.h> -
uspace/lib/c/include/device/clock_dev.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DEVICE_CLOCK_DEV_H_36 #define LIBC_DEVICE_CLOCK_DEV_H_35 #ifndef _LIBC_DEVICE_CLOCK_DEV_H_ 36 #define _LIBC_DEVICE_CLOCK_DEV_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/device/hw_res.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DEVICE_HW_RES_H_36 #define LIBC_DEVICE_HW_RES_H_35 #ifndef _LIBC_DEVICE_HW_RES_H_ 36 #define _LIBC_DEVICE_HW_RES_H_ 37 37 38 38 #include <ipc/dev_iface.h> -
uspace/lib/c/include/device/hw_res_parsed.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DEVICE_HW_RES_PARSED_H_36 #define LIBC_DEVICE_HW_RES_PARSED_H_35 #ifndef _LIBC_DEVICE_HW_RES_PARSED_H_ 36 #define _LIBC_DEVICE_HW_RES_PARSED_H_ 37 37 38 38 #include <device/hw_res.h> -
uspace/lib/c/include/device/led_dev.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DEVICE_LED_DEV_H_36 #define LIBC_DEVICE_LED_DEV_H_35 #ifndef _LIBC_DEVICE_LED_DEV_H_ 36 #define _LIBC_DEVICE_LED_DEV_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/device/pio_window.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DEVICE_PIO_WINDOW_H_36 #define LIBC_DEVICE_PIO_WINDOW_H_35 #ifndef _LIBC_DEVICE_PIO_WINDOW_H_ 36 #define _LIBC_DEVICE_PIO_WINDOW_H_ 37 37 38 38 #include <ipc/dev_iface.h> -
uspace/lib/c/include/devman.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_DEVMAN_H_37 #define LIBC_DEVMAN_H_36 #ifndef _LIBC_DEVMAN_H_ 37 #define _LIBC_DEVMAN_H_ 38 38 39 39 #include <ipc/devman.h> -
uspace/lib/c/include/dirent.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_DIRENT_H_36 #define LIBC_DIRENT_H_35 #ifndef _LIBC_DIRENT_H_ 36 #define _LIBC_DIRENT_H_ 37 37 38 38 #define NAME_MAX 256 39 40 #include <offset.h>41 39 42 40 struct dirent { … … 44 42 }; 45 43 46 typedef struct { 47 int fd; 48 struct dirent res; 49 aoff64_t pos; 50 } DIR; 44 typedef struct __dirstream DIR; 51 45 52 46 extern DIR *opendir(const char *); -
uspace/lib/c/include/dlfcn.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_DLFCN_H_37 #define LIBC_DLFCN_H_36 #ifndef _LIBC_DLFCN_H_ 37 #define _LIBC_DLFCN_H_ 38 38 39 39 void *dlopen(const char *, int); -
uspace/lib/c/include/elf/elf.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ELF_H_36 #define LIBC_ELF_H_35 #ifndef _LIBC_ELF_H_ 36 #define _LIBC_ELF_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/elf/elf_linux.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ELF_LINUX_H_36 #define LIBC_ELF_LINUX_H_35 #ifndef _LIBC_ELF_LINUX_H_ 36 #define _LIBC_ELF_LINUX_H_ 37 37 38 38 #include <elf/elf.h> -
uspace/lib/c/include/entry_point.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ENTRY_POINT_H_36 #define LIBC_ENTRY_POINT_H_35 #ifndef _LIBC_ENTRY_POINT_H_ 36 #define _LIBC_ENTRY_POINT_H_ 37 37 38 38 /* Defined in arch/ARCH/src/entryjmp.[c|s] */ -
uspace/lib/c/include/errno.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_ERRNO_H_36 #define LIBC_ERRNO_H_35 #ifndef _LIBC_ERRNO_H_ 36 #define _LIBC_ERRNO_H_ 37 37 38 38 #include <_bits/errno.h> -
uspace/lib/c/include/fibril.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_FIBRIL_H_36 #define LIBC_FIBRIL_H_35 #ifndef _LIBC_FIBRIL_H_ 36 #define _LIBC_FIBRIL_H_ 37 37 38 38 #include <types/common.h> 39 39 #include <time.h> 40 40 #include <_bits/__noreturn.h> 41 #include <ipc/common.h>42 41 43 42 typedef struct fibril fibril_t; … … 49 48 typedef fibril_t *fid_t; 50 49 50 #ifndef __cplusplus 51 51 /** Fibril-local variable specifier */ 52 52 #define fibril_local __thread 53 54 #define FIBRIL_DFLT_STK_SIZE 0 53 #endif 55 54 56 55 extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t); 56 extern fid_t fibril_create(errno_t (*)(void *), void *); 57 57 extern void fibril_destroy(fid_t); 58 58 extern void fibril_add_ready(fid_t); … … 68 68 extern void fibril_detach(fid_t fid); 69 69 70 static inline fid_t fibril_create(errno_t (*func)(void *), void *arg)71 {72 return fibril_create_generic(func, arg, FIBRIL_DFLT_STK_SIZE);73 }74 75 70 extern void fibril_start(fid_t); 76 71 extern __noreturn void fibril_exit(long); -
uspace/lib/c/include/fibril_synch.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_FIBRIL_SYNCH_H_36 #define LIBC_FIBRIL_SYNCH_H_35 #ifndef _LIBC_FIBRIL_SYNCH_H_ 36 #define _LIBC_FIBRIL_SYNCH_H_ 37 37 38 38 #include <fibril.h> 39 39 #include <adt/list.h> 40 #include <tls.h>41 40 #include <time.h> 42 41 #include <stdbool.h> … … 54 53 }, \ 55 54 .counter = 1, \ 56 .waiters = { \ 57 .head = { \ 58 .prev = &(name).waiters.head, \ 59 .next = &(name).waiters.head, \ 60 } \ 61 } \ 55 .waiters = LIST_INITIALIZER((name).waiters), \ 62 56 } 63 57 … … 79 73 .readers = 0, \ 80 74 .writers = 0, \ 81 .waiters = { \ 82 .head = { \ 83 .prev = &(name).waiters.head, \ 84 .next = &(name).waiters.head, \ 85 } \ 86 } \ 75 .waiters = LIST_INITIALIZER((name).waiters), \ 87 76 } 88 77 … … 96 85 #define FIBRIL_CONDVAR_INITIALIZER(name) \ 97 86 { \ 98 .waiters = { \ 99 .head = { \ 100 .next = &(name).waiters.head, \ 101 .prev = &(name).waiters.head, \ 102 } \ 103 } \ 87 .waiters = LIST_INITIALIZER((name).waiters), \ 104 88 } 105 89 … … 153 137 { \ 154 138 .count = (cnt), \ 155 .waiters = { \ 156 .head = { \ 157 .next = &(name).waiters.head, \ 158 .prev = &(name).waiters.head, \ 159 } \ 160 } \ 139 .waiters = LIST_INITIALIZER((name).waiters), \ 161 140 } 162 141 -
uspace/lib/c/include/fourcc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_FOURCC_H_36 #define LIBC_FOURCC_H_35 #ifndef _LIBC_FOURCC_H_ 36 #define _LIBC_FOURCC_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/gsort.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_SORT_H_36 #define LIBC_SORT_H_35 #ifndef _LIBC_SORT_H_ 36 #define _LIBC_SORT_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/ieee80211/ieee80211.h
re3272101 rd5a89a3 35 35 */ 36 36 37 #ifndef LIBC_IEEE80211_H_38 #define LIBC_IEEE80211_H_37 #ifndef _LIBC_IEEE80211_H_ 38 #define _LIBC_IEEE80211_H_ 39 39 40 40 #include <adt/list.h> -
uspace/lib/c/include/imath.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IMATH_H_37 #define LIBC_IMATH_H_36 #ifndef _LIBC_IMATH_H_ 37 #define _LIBC_IMATH_H_ 38 38 39 39 #include <stdint.h> -
uspace/lib/c/include/inet/addr.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_ADDR_H_36 #define LIBC_INET_ADDR_H_35 #ifndef _LIBC_INET_ADDR_H_ 36 #define _LIBC_INET_ADDR_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/inet/dhcp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_DHCP_H_36 #define LIBC_INET_DHCP_H_35 #ifndef _LIBC_INET_DHCP_H_ 36 #define _LIBC_INET_DHCP_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/inet/dnsr.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_DNSR_H_36 #define LIBC_INET_DNSR_H_35 #ifndef _LIBC_INET_DNSR_H_ 36 #define _LIBC_INET_DNSR_H_ 37 37 38 38 #include <inet/inet.h> -
uspace/lib/c/include/inet/endpoint.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_ENDPOINT_H_36 #define LIBC_INET_ENDPOINT_H_35 #ifndef _LIBC_INET_ENDPOINT_H_ 36 #define _LIBC_INET_ENDPOINT_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/inet/host.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_HOST_H_36 #define LIBC_INET_HOST_H_35 #ifndef _LIBC_INET_HOST_H_ 36 #define _LIBC_INET_HOST_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/inet/hostname.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_HOSTNAME_H_36 #define LIBC_INET_HOSTNAME_H_35 #ifndef _LIBC_INET_HOSTNAME_H_ 36 #define _LIBC_INET_HOSTNAME_H_ 37 37 38 38 extern errno_t inet_hostname_parse(const char *, char **, char **); -
uspace/lib/c/include/inet/hostport.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_HOSTPORT_H_36 #define LIBC_INET_HOSTPORT_H_35 #ifndef _LIBC_INET_HOSTPORT_H_ 36 #define _LIBC_INET_HOSTPORT_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/inet/inet.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_INET_H_36 #define LIBC_INET_INET_H_35 #ifndef _LIBC_INET_INET_H_ 36 #define _LIBC_INET_INET_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/inet/inetcfg.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_INETCFG_H_36 #define LIBC_INET_INETCFG_H_35 #ifndef _LIBC_INET_INETCFG_H_ 36 #define _LIBC_INET_INETCFG_H_ 37 37 38 38 #include <inet/inet.h> -
uspace/lib/c/include/inet/inetping.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_INETPING_H_36 #define LIBC_INET_INETPING_H_35 #ifndef _LIBC_INET_INETPING_H_ 36 #define _LIBC_INET_INETPING_H_ 37 37 38 38 #include <inet/inet.h> -
uspace/lib/c/include/inet/iplink.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_IPLINK_H_36 #define LIBC_INET_IPLINK_H_35 #ifndef _LIBC_INET_IPLINK_H_ 36 #define _LIBC_INET_IPLINK_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/inet/iplink_srv.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_IPLINK_SRV_H_36 #define LIBC_INET_IPLINK_SRV_H_35 #ifndef _LIBC_INET_IPLINK_SRV_H_ 36 #define _LIBC_INET_IPLINK_SRV_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/inet/tcp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_TCP_H_36 #define LIBC_INET_TCP_H_35 #ifndef _LIBC_INET_TCP_H_ 36 #define _LIBC_INET_TCP_H_ 37 37 38 38 #include <fibril_synch.h> -
uspace/lib/c/include/inet/udp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_INET_UDP_H_36 #define LIBC_INET_UDP_H_35 #ifndef _LIBC_INET_UDP_H_ 36 #define _LIBC_INET_UDP_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/io/chardev.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IO_CHARDEV_H_34 #define LIBC_IO_CHARDEV_H_33 #ifndef _LIBC_IO_CHARDEV_H_ 34 #define _LIBC_IO_CHARDEV_H_ 35 35 36 36 #include <async.h> -
uspace/lib/c/include/io/chardev_srv.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_CHARDEV_SRV_H_36 #define LIBC_IO_CHARDEV_SRV_H_35 #ifndef _LIBC_IO_CHARDEV_SRV_H_ 36 #define _LIBC_IO_CHARDEV_SRV_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/io/charfield.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IO_CHARFIELD_H_37 #define LIBC_IO_CHARFIELD_H_36 #ifndef _LIBC_IO_CHARFIELD_H_ 37 #define _LIBC_IO_CHARFIELD_H_ 38 38 39 39 #include <stdbool.h> -
uspace/lib/c/include/io/chargrid.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IO_CHARGRID_H_37 #define LIBC_IO_CHARGRID_H_36 #ifndef _LIBC_IO_CHARGRID_H_ 37 #define _LIBC_IO_CHARGRID_H_ 38 38 39 39 #include <io/charfield.h> -
uspace/lib/c/include/io/color.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_COLOR_H_36 #define LIBC_IO_COLOR_H_35 #ifndef _LIBC_IO_COLOR_H_ 36 #define _LIBC_IO_COLOR_H_ 37 37 38 38 typedef enum { -
uspace/lib/c/include/io/con_srv.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_CON_SRV_H_36 #define LIBC_CON_SRV_H_35 #ifndef _LIBC_CON_SRV_H_ 36 #define _LIBC_CON_SRV_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/io/concaps.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_CONCAPS_H_36 #define LIBC_IO_CONCAPS_H_35 #ifndef _LIBC_IO_CONCAPS_H_ 36 #define _LIBC_IO_CONCAPS_H_ 37 37 38 38 typedef enum { -
uspace/lib/c/include/io/cons_event.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_CONS_EVENT_H_36 #define LIBC_IO_CONS_EVENT_H_35 #ifndef _LIBC_IO_CONS_EVENT_H_ 36 #define _LIBC_IO_CONS_EVENT_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/io/console.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_CONSOLE_H_36 #define LIBC_IO_CONSOLE_H_35 #ifndef _LIBC_IO_CONSOLE_H_ 36 #define _LIBC_IO_CONSOLE_H_ 37 37 38 38 #include <time.h> -
uspace/lib/c/include/io/input.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_INPUT_H_36 #define LIBC_IO_INPUT_H_35 #ifndef _LIBC_IO_INPUT_H_ 36 #define _LIBC_IO_INPUT_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/io/kbd_event.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_KBD_EVENT_H_36 #define LIBC_IO_KBD_EVENT_H_35 #ifndef _LIBC_IO_KBD_EVENT_H_ 36 #define _LIBC_IO_KBD_EVENT_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/io/keycode.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_KEYCODE_H_36 #define LIBC_IO_KEYCODE_H_35 #ifndef _LIBC_IO_KEYCODE_H_ 36 #define _LIBC_IO_KEYCODE_H_ 37 37 38 38 /** Keycode definitions. -
uspace/lib/c/include/io/kio.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_KIO_H_36 #define LIBC_IO_KIO_H_35 #ifndef _LIBC_IO_KIO_H_ 36 #define _LIBC_IO_KIO_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/io/klog.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_KLOG_H_36 #define LIBC_IO_KLOG_H_35 #ifndef _LIBC_IO_KLOG_H_ 36 #define _LIBC_IO_KLOG_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/io/label.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_LABEL_H_36 #define LIBC_IO_LABEL_H_35 #ifndef _LIBC_IO_LABEL_H_ 36 #define _LIBC_IO_LABEL_H_ 37 37 38 38 #include <types/label.h> -
uspace/lib/c/include/io/log.h
re3272101 rd5a89a3 32 32 */ 33 33 34 #ifndef LIBC_IO_LOG_H_35 #define LIBC_IO_LOG_H_34 #ifndef _LIBC_IO_LOG_H_ 35 #define _LIBC_IO_LOG_H_ 36 36 37 37 #include <stdarg.h> -
uspace/lib/c/include/io/logctl.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IO_LOGCTL_H_34 #define LIBC_IO_LOGCTL_H_33 #ifndef _LIBC_IO_LOGCTL_H_ 34 #define _LIBC_IO_LOGCTL_H_ 35 35 36 36 #include <io/log.h> -
uspace/lib/c/include/io/mode.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IO_MODE_H_37 #define LIBC_IO_MODE_H_36 #ifndef _LIBC_IO_MODE_H_ 37 #define _LIBC_IO_MODE_H_ 38 38 39 39 #include <abi/fb/visuals.h> -
uspace/lib/c/include/io/output.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_OUTPUT_H_36 #define LIBC_IO_OUTPUT_H_35 #ifndef _LIBC_IO_OUTPUT_H_ 36 #define _LIBC_IO_OUTPUT_H_ 37 37 38 38 #include <ipc/output.h> -
uspace/lib/c/include/io/pixel.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IO_PIXEL_H_37 #define LIBC_IO_PIXEL_H_36 #ifndef _LIBC_IO_PIXEL_H_ 37 #define _LIBC_IO_PIXEL_H_ 38 38 39 39 #include <stdint.h> -
uspace/lib/c/include/io/pixelmap.h
re3272101 rd5a89a3 35 35 */ 36 36 37 #ifndef LIBC_IO_PIXELMAP_H_38 #define LIBC_IO_PIXELMAP_H_37 #ifndef _LIBC_IO_PIXELMAP_H_ 38 #define _LIBC_IO_PIXELMAP_H_ 39 39 40 40 #include <types/common.h> -
uspace/lib/c/include/io/pos_event.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IO_POS_EVENT_H_37 #define LIBC_IO_POS_EVENT_H_36 #ifndef _LIBC_IO_POS_EVENT_H_ 37 #define _LIBC_IO_POS_EVENT_H_ 38 38 39 39 #include <types/common.h> -
uspace/lib/c/include/io/printf_core.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_PRINTF_CORE_H_36 #define LIBC_PRINTF_CORE_H_35 #ifndef _LIBC_PRINTF_CORE_H_ 36 #define _LIBC_PRINTF_CORE_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/io/serial.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_SERIAL_H_36 #define LIBC_IO_SERIAL_H_35 #ifndef _LIBC_IO_SERIAL_H_ 36 #define _LIBC_IO_SERIAL_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/io/style.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_STYLE_H_36 #define LIBC_IO_STYLE_H_35 #ifndef _LIBC_IO_STYLE_H_ 36 #define _LIBC_IO_STYLE_H_ 37 37 38 38 typedef enum { -
uspace/lib/c/include/io/table.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_TABLE_H_36 #define LIBC_IO_TABLE_H_35 #ifndef _LIBC_IO_TABLE_H_ 36 #define _LIBC_IO_TABLE_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/io/verify.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_VERIFY_H_36 #define LIBC_IO_VERIFY_H_35 #ifndef _LIBC_IO_VERIFY_H_ 36 #define _LIBC_IO_VERIFY_H_ 37 37 38 38 #ifdef __clang__ -
uspace/lib/c/include/io/visualizer.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_VISUALIZER_H_36 #define LIBC_IO_VISUALIZER_H_35 #ifndef _LIBC_IO_VISUALIZER_H_ 36 #define _LIBC_IO_VISUALIZER_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/io/window.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IO_WINDOW_H_36 #define LIBC_IO_WINDOW_H_35 #ifndef _LIBC_IO_WINDOW_H_ 36 #define _LIBC_IO_WINDOW_H_ 37 37 38 38 #include <stdbool.h> -
uspace/lib/c/include/ipc/adb.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IPC_ADB_H_37 #define LIBC_IPC_ADB_H_36 #ifndef _LIBC_IPC_ADB_H_ 37 #define _LIBC_IPC_ADB_H_ 38 38 39 39 #include <ipc/common.h> -
uspace/lib/c/include/ipc/bd.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_BD_H_36 #define LIBC_IPC_BD_H_35 #ifndef _LIBC_IPC_BD_H_ 36 #define _LIBC_IPC_BD_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/chardev.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IPC_CHARDEV_H_37 #define LIBC_IPC_CHARDEV_H_36 #ifndef _LIBC_IPC_CHARDEV_H_ 37 #define _LIBC_IPC_CHARDEV_H_ 38 38 39 39 #include <ipc/common.h> -
uspace/lib/c/include/ipc/clipboard.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_CLIPBOARD_H_36 #define LIBC_IPC_CLIPBOARD_H_35 #ifndef _LIBC_IPC_CLIPBOARD_H_ 36 #define _LIBC_IPC_CLIPBOARD_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/common.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_COMMON_H_36 #define LIBC_IPC_COMMON_H_35 #ifndef _LIBC_IPC_COMMON_H_ 36 #define _LIBC_IPC_COMMON_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/ipc/console.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_CONSOLE_H_36 #define LIBC_IPC_CONSOLE_H_35 #ifndef _LIBC_IPC_CONSOLE_H_ 36 #define _LIBC_IPC_CONSOLE_H_ 37 37 38 38 #include <ipc/vfs.h> -
uspace/lib/c/include/ipc/corecfg.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_CORECFG_H_34 #define LIBC_IPC_CORECFG_H_33 #ifndef _LIBC_IPC_CORECFG_H_ 34 #define _LIBC_IPC_CORECFG_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/dev_iface.h
re3272101 rd5a89a3 27 27 */ 28 28 29 #ifndef LIBC_IPC_DEV_IFACE_H_30 #define LIBC_IPC_DEV_IFACE_H_29 #ifndef _LIBC_IPC_DEV_IFACE_H_ 30 #define _LIBC_IPC_DEV_IFACE_H_ 31 31 32 32 #include <stdlib.h> -
uspace/lib/c/include/ipc/devman.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_DEVMAN_H_34 #define LIBC_IPC_DEVMAN_H_33 #ifndef _LIBC_IPC_DEVMAN_H_ 34 #define _LIBC_IPC_DEVMAN_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/dhcp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_DHCP_H_36 #define LIBC_IPC_DHCP_H_35 #ifndef _LIBC_IPC_DHCP_H_ 36 #define _LIBC_IPC_DHCP_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/dnsr.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_DNSR_H_34 #define LIBC_IPC_DNSR_H_33 #ifndef _LIBC_IPC_DNSR_H_ 34 #define _LIBC_IPC_DNSR_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/event.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_EVENT_H_36 #define LIBC_IPC_EVENT_H_35 #ifndef _LIBC_IPC_EVENT_H_ 36 #define _LIBC_IPC_EVENT_H_ 37 37 38 38 #include <abi/ipc/event.h> -
uspace/lib/c/include/ipc/graph.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_GRAPH_H_36 #define LIBC_IPC_GRAPH_H_35 #ifndef _LIBC_IPC_GRAPH_H_ 36 #define _LIBC_IPC_GRAPH_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/inet.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_INET_H_36 #define LIBC_IPC_INET_H_35 #ifndef _LIBC_IPC_INET_H_ 36 #define _LIBC_IPC_INET_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/input.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_INPUT_H_36 #define LIBC_IPC_INPUT_H_35 #ifndef _LIBC_IPC_INPUT_H_ 36 #define _LIBC_IPC_INPUT_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/ipc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #if ((defined( LIBC_ASYNC_H_)) && (!defined(LIBC_ASYNC_C_)))35 #if ((defined(_LIBC_ASYNC_H_)) && (!defined(_LIBC_ASYNC_C_))) 36 36 #error Do not intermix low-level IPC interface and async framework 37 37 #endif 38 38 39 #ifndef LIBC_IPC_H_40 #define LIBC_IPC_H_39 #ifndef _LIBC_IPC_H_ 40 #define _LIBC_IPC_H_ 41 41 42 42 #include <ipc/common.h> -
uspace/lib/c/include/ipc/ipc_test.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_IPC_TEST_H_36 #define LIBC_IPC_IPC_TEST_H_35 #ifndef _LIBC_IPC_IPC_TEST_H_ 36 #define _LIBC_IPC_IPC_TEST_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/iplink.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_IPLINK_H_36 #define LIBC_IPC_IPLINK_H_35 #ifndef _LIBC_IPC_IPLINK_H_ 36 #define _LIBC_IPC_IPLINK_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/irc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_IRC_H_36 #define LIBC_IPC_IRC_H_35 #ifndef _LIBC_IPC_IRC_H_ 36 #define _LIBC_IPC_IRC_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/irq.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_IRQ_H_36 #define LIBC_IPC_IRQ_H_35 #ifndef _LIBC_IPC_IRQ_H_ 36 #define _LIBC_IPC_IRQ_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/ipc/kbdev.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_KBDEV_H_36 #define LIBC_IPC_KBDEV_H_35 #ifndef _LIBC_IPC_KBDEV_H_ 36 #define _LIBC_IPC_KBDEV_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/loader.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_LOADER_H_36 #define LIBC_IPC_LOADER_H_35 #ifndef _LIBC_IPC_LOADER_H_ 36 #define _LIBC_IPC_LOADER_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/loc.h
re3272101 rd5a89a3 32 32 */ 33 33 34 #ifndef LIBC_IPC_LOC_H_35 #define LIBC_IPC_LOC_H_34 #ifndef _LIBC_IPC_LOC_H_ 35 #define _LIBC_IPC_LOC_H_ 36 36 37 37 #include <ipc/common.h> -
uspace/lib/c/include/ipc/logger.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_LOGGER_H_34 #define LIBC_IPC_LOGGER_H_33 #ifndef _LIBC_IPC_LOGGER_H_ 34 #define _LIBC_IPC_LOGGER_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/mouseev.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_IPC_MOUSEEV_H_37 #define LIBC_IPC_MOUSEEV_H_36 #ifndef _LIBC_IPC_MOUSEEV_H_ 37 #define _LIBC_IPC_MOUSEEV_H_ 38 38 39 39 #include <ipc/common.h> -
uspace/lib/c/include/ipc/ns.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_NS_H_36 #define LIBC_IPC_NS_H_35 #ifndef _LIBC_IPC_NS_H_ 36 #define _LIBC_IPC_NS_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/output.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_OUTPUT_H_36 #define LIBC_IPC_OUTPUT_H_35 #ifndef _LIBC_IPC_OUTPUT_H_ 36 #define _LIBC_IPC_OUTPUT_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/pci.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_PCI_H_36 #define LIBC_IPC_PCI_H_35 #ifndef _LIBC_IPC_PCI_H_ 36 #define _LIBC_IPC_PCI_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/serial_ctl.h
re3272101 rd5a89a3 27 27 */ 28 28 29 #ifndef LIBC_IPC_SERIAL_CTL_H_30 #define LIBC_IPC_SERIAL_CTL_H_29 #ifndef _LIBC_IPC_SERIAL_CTL_H_ 30 #define _LIBC_IPC_SERIAL_CTL_H_ 31 31 32 32 #include <ipc/chardev.h> -
uspace/lib/c/include/ipc/services.h
re3272101 rd5a89a3 35 35 */ 36 36 37 #ifndef LIBC_SERVICES_H_38 #define LIBC_SERVICES_H_37 #ifndef _LIBC_SERVICES_H_ 38 #define _LIBC_SERVICES_H_ 39 39 40 40 #include <abi/fourcc.h> -
uspace/lib/c/include/ipc/tcp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_TCP_H_36 #define LIBC_IPC_TCP_H_35 #ifndef _LIBC_IPC_TCP_H_ 36 #define _LIBC_IPC_TCP_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/udp.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_UDP_H_36 #define LIBC_IPC_UDP_H_35 #ifndef _LIBC_IPC_UDP_H_ 36 #define _LIBC_IPC_UDP_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/vbd.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_VBD_H_34 #define LIBC_IPC_VBD_H_33 #ifndef _LIBC_IPC_VBD_H_ 34 #define _LIBC_IPC_VBD_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/vfs.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_VFS_H_36 #define LIBC_IPC_VFS_H_35 #ifndef _LIBC_IPC_VFS_H_ 36 #define _LIBC_IPC_VFS_H_ 37 37 38 38 #include <ipc/common.h> -
uspace/lib/c/include/ipc/vol.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_IPC_VOL_H_34 #define LIBC_IPC_VOL_H_33 #ifndef _LIBC_IPC_VOL_H_ 34 #define _LIBC_IPC_VOL_H_ 35 35 36 36 #include <ipc/common.h> -
uspace/lib/c/include/ipc/window.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_WINDOW_H_36 #define LIBC_IPC_WINDOW_H_35 #ifndef _LIBC_IPC_WINDOW_H_ 36 #define _LIBC_IPC_WINDOW_H_ 37 37 38 38 #include <ipc/vfs.h> -
uspace/lib/c/include/ipc_test.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IPC_TEST_H_36 #define LIBC_IPC_TEST_H_35 #ifndef _LIBC_IPC_TEST_H_ 36 #define _LIBC_IPC_TEST_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/irc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_IRC_H_36 #define LIBC_IRC_H_35 #ifndef _LIBC_IRC_H_ 36 #define _LIBC_IRC_H_ 37 37 38 38 extern errno_t irc_enable_interrupt(int); -
uspace/lib/c/include/l18n/langs.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_L18N_LANGS_H_37 #define LIBC_L18N_LANGS_H_36 #ifndef _LIBC_L18N_LANGS_H_ 37 #define _LIBC_L18N_LANGS_H_ 38 38 39 39 /** Windows locale IDs. -
uspace/lib/c/include/libc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_LIBC_H_36 #define LIBC_LIBC_H_35 #ifndef _LIBC_LIBC_H_ 36 #define _LIBC_LIBC_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/loader/loader.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_LOADER_H_37 #define LIBC_LOADER_H_36 #ifndef _LIBC_LOADER_H_ 37 #define _LIBC_LOADER_H_ 38 38 39 39 #include <abi/proc/task.h> -
uspace/lib/c/include/loader/pcb.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_PCB_H_37 #define LIBC_PCB_H_36 #ifndef _LIBC_PCB_H_ 37 #define _LIBC_PCB_H_ 38 38 39 39 #include <tls.h> -
uspace/lib/c/include/loc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_LOC_H_36 #define LIBC_LOC_H_35 #ifndef _LIBC_LOC_H_ 36 #define _LIBC_LOC_H_ 37 37 38 38 #include <ipc/loc.h> -
uspace/lib/c/include/macros.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_MACROS_H_36 #define LIBC_MACROS_H_35 #ifndef _LIBC_MACROS_H_ 36 #define _LIBC_MACROS_H_ 37 37 38 38 #define min(a, b) ((a) < (b) ? (a) : (b)) -
uspace/lib/c/include/malloc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_MALLOC_H_36 #define LIBC_MALLOC_H_35 #ifndef _LIBC_MALLOC_H_ 36 #define _LIBC_MALLOC_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/mem.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_MEM_H_37 #define LIBC_MEM_H_36 #ifndef _LIBC_MEM_H_ 37 #define _LIBC_MEM_H_ 38 38 39 39 #include <stddef.h> 40 #include <cc.h>41 40 42 41 extern void *memset(void *, int, size_t) 43 __attribute__((nonnull(1))) 44 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 42 __attribute__((nonnull(1))); 45 43 extern void *memcpy(void *, const void *, size_t) 46 __attribute__((nonnull(1, 2))) 47 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 44 __attribute__((nonnull(1, 2))); 48 45 extern void *memmove(void *, const void *, size_t) 49 46 __attribute__((nonnull(1, 2))); -
uspace/lib/c/include/nic/eth_phys.h
re3272101 rd5a89a3 28 28 */ 29 29 30 #ifndef LIBC_NIC_ETH_PHYS_H_31 #define LIBC_NIC_ETH_PHYS_H_30 #ifndef _LIBC_NIC_ETH_PHYS_H_ 31 #define _LIBC_NIC_ETH_PHYS_H_ 32 32 33 33 #include <stdint.h> -
uspace/lib/c/include/nic/nic.h
re3272101 rd5a89a3 36 36 */ 37 37 38 #ifndef LIBC_NIC_H_39 #define LIBC_NIC_H_38 #ifndef _LIBC_NIC_H_ 39 #define _LIBC_NIC_H_ 40 40 41 41 #include <nic/eth_phys.h> -
uspace/lib/c/include/ns.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_NS_H_36 #define LIBC_NS_H_35 #ifndef _LIBC_NS_H_ 36 #define _LIBC_NS_H_ 37 37 38 38 #include <ipc/services.h> -
uspace/lib/c/include/offset.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_OFFSET_H_36 #define LIBC_OFFSET_H_35 #ifndef _LIBC_OFFSET_H_ 36 #define _LIBC_OFFSET_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/pci.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_PCI_H_36 #define LIBC_PCI_H_35 #ifndef _LIBC_PCI_H_ 36 #define _LIBC_PCI_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/qsort.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_QSORT_H_36 #define LIBC_QSORT_H_35 #ifndef _LIBC_QSORT_H_ 36 #define _LIBC_QSORT_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/refcount.h
re3272101 rd5a89a3 37 37 */ 38 38 39 #ifndef LIBC_REFCOUNT_H_40 #define LIBC_REFCOUNT_H_39 #ifndef _LIBC_REFCOUNT_H_ 40 #define _LIBC_REFCOUNT_H_ 41 41 42 42 #include <assert.h> -
uspace/lib/c/include/rndgen.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RNDGEN_H_36 #define LIBC_RNDGEN_H_35 #ifndef _LIBC_RNDGEN_H_ 36 #define _LIBC_RNDGEN_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/rtld/dynamic.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_DYNAMIC_H_36 #define LIBC_RTLD_DYNAMIC_H_35 #ifndef _LIBC_RTLD_DYNAMIC_H_ 36 #define _LIBC_RTLD_DYNAMIC_H_ 37 37 38 38 #include <stdbool.h> -
uspace/lib/c/include/rtld/elf_dyn.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_ELF_DYN_H_36 #define LIBC_RTLD_ELF_DYN_H_35 #ifndef _LIBC_RTLD_ELF_DYN_H_ 36 #define _LIBC_RTLD_ELF_DYN_H_ 37 37 38 38 #include <elf/elf.h> -
uspace/lib/c/include/rtld/module.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_MODULE_H_36 #define LIBC_RTLD_MODULE_H_35 #ifndef _LIBC_RTLD_MODULE_H_ 36 #define _LIBC_RTLD_MODULE_H_ 37 37 38 38 #include <rtld/dynamic.h> -
uspace/lib/c/include/rtld/rtld.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_H_36 #define LIBC_RTLD_H_35 #ifndef _LIBC_RTLD_H_ 36 #define _LIBC_RTLD_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/rtld/rtld_arch.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_RTLD_ARCH_H_36 #define LIBC_RTLD_RTLD_ARCH_H_35 #ifndef _LIBC_RTLD_RTLD_ARCH_H_ 36 #define _LIBC_RTLD_RTLD_ARCH_H_ 37 37 38 38 #include <rtld/rtld.h> -
uspace/lib/c/include/rtld/rtld_debug.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_RTLD_DEBUG_H_36 #define LIBC_RTLD_RTLD_DEBUG_H_35 #ifndef _LIBC_RTLD_RTLD_DEBUG_H_ 36 #define _LIBC_RTLD_RTLD_DEBUG_H_ 37 37 38 38 #include <stdio.h> -
uspace/lib/c/include/rtld/symbol.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_RTLD_SYMBOL_H_36 #define LIBC_RTLD_SYMBOL_H_35 #ifndef _LIBC_RTLD_SYMBOL_H_ 36 #define _LIBC_RTLD_SYMBOL_H_ 37 37 38 38 #include <elf/elf.h> -
uspace/lib/c/include/setjmp.h
re3272101 rd5a89a3 31 31 */ 32 32 33 #ifndef LIBC_SETJMP_H_34 #define LIBC_SETJMP_H_33 #ifndef _LIBC_SETJMP_H_ 34 #define _LIBC_SETJMP_H_ 35 35 36 36 #ifdef __cplusplus … … 41 41 #include <_bits/__noreturn.h> 42 42 43 typedef context_t jmp_buf[1];43 typedef __context_t jmp_buf[1]; 44 44 45 extern int __ setjmp(jmp_buf) __attribute__((returns_twice));46 extern __noreturn void __ longjmp(jmp_buf, int);45 extern int __context_save(__context_t *) __attribute__((returns_twice)); 46 extern __noreturn void __context_restore(__context_t *, int); 47 47 48 #define setjmp __ setjmp48 #define setjmp __context_save 49 49 extern __noreturn void longjmp(jmp_buf, int); 50 50 -
uspace/lib/c/include/smc.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_SMC_H_36 #define LIBC_SMC_H_35 #ifndef _LIBC_SMC_H_ 36 #define _LIBC_SMC_H_ 37 37 38 #include <errno.h> 38 39 #include <stddef.h> 39 40 -
uspace/lib/c/include/stack.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_STACK_H_36 #define LIBC_STACK_H_35 #ifndef _LIBC_STACK_H_ 36 #define _LIBC_STACK_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/stacktrace.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_STACKTRACE_H_37 #define LIBC_STACKTRACE_H_36 #ifndef _LIBC_STACKTRACE_H_ 37 #define _LIBC_STACKTRACE_H_ 38 38 39 39 #include <errno.h> -
uspace/lib/c/include/stats.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_STATS_H_36 #define LIBC_STATS_H_35 #ifndef _LIBC_STATS_H_ 36 #define _LIBC_STATS_H_ 37 37 38 38 #include <task.h> -
uspace/lib/c/include/stdio.h
re3272101 rd5a89a3 34 34 */ 35 35 36 #ifndef LIBC_STDIO_H_37 #define LIBC_STDIO_H_36 #ifndef _LIBC_STDIO_H_ 37 #define _LIBC_STDIO_H_ 38 38 39 39 #ifdef __cplusplus … … 204 204 }; 205 205 206 extern int vprintf_ size(const char *, va_list);207 extern int printf_ size(const char *, ...)206 extern int vprintf_length(const char *, va_list); 207 extern int printf_length(const char *, ...) 208 208 _HELENOS_PRINTF_ATTRIBUTE(1, 2); 209 209 extern FILE *fdopen(int, const char *); -
uspace/lib/c/include/stdlib.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_STDLIB_H_36 #define LIBC_STDLIB_H_35 #ifndef _LIBC_STDLIB_H_ 36 #define _LIBC_STDLIB_H_ 37 37 38 38 #ifdef __cplusplus -
uspace/lib/c/include/str.h
re3272101 rd5a89a3 1 1 /* 2 * Copyright (c) 2001-2004 Jakub Jermar 2 3 * Copyright (c) 2005 Martin Decky 3 4 * Copyright (c) 2011 Oleg Romanenko … … 34 35 */ 35 36 36 #ifndef LIBC_STR_H_37 #define LIBC_STR_H_37 #ifndef _LIBC_STR_H_ 38 #define _LIBC_STR_H_ 38 39 39 40 #ifdef __cplusplus … … 42 43 43 44 #include <errno.h> 44 #include < mem.h>45 #include <stdbool.h> 45 46 #include <stddef.h> 46 47 #include <stdint.h> 47 #include <stdbool.h>48 48 49 #define U_SPECIAL '?' 49 #include <mem.h> 50 51 /* Common Unicode characters */ 52 #define U_SPECIAL '?' 50 53 51 54 /** No size limit constant */ … … 63 66 extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); 64 67 extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz); 65 extern errno_t chr_encode( constwchar_t ch, char *str, size_t *offset, size_t sz);68 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz); 66 69 67 70 extern size_t str_size(const char *str); … … 116 119 extern bool wstr_remove(wchar_t *str, size_t pos); 117 120 118 extern char *str_dup(const char * );119 extern char *str_ndup(const char * , size_t max_size);121 extern char *str_dup(const char *src); 122 extern char *str_ndup(const char *src, size_t n); 120 123 121 124 extern char *str_tok(char *, const char *, char **); -
uspace/lib/c/include/str_error.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_STRERROR_H_36 #define LIBC_STRERROR_H_35 #ifndef _LIBC_STRERROR_H_ 36 #define _LIBC_STRERROR_H_ 37 37 38 38 #include <errno.h> -
uspace/lib/c/include/string.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_STRING_H_36 #define LIBC_STRING_H_35 #ifndef _LIBC_STRING_H_ 36 #define _LIBC_STRING_H_ 37 37 38 38 #if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H) && \ -
uspace/lib/c/include/syscall.h
re3272101 rd5a89a3 37 37 */ 38 38 39 #ifndef LIBC_SYSCALL_H_40 #define LIBC_SYSCALL_H_39 #ifndef _LIBC_SYSCALL_H_ 40 #define _LIBC_SYSCALL_H_ 41 41 42 42 #ifndef LIBARCH_SYSCALL_GENERIC -
uspace/lib/c/include/sysinfo.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_SYSINFO_H_36 #define LIBC_SYSINFO_H_35 #ifndef _LIBC_SYSINFO_H_ 36 #define _LIBC_SYSINFO_H_ 37 37 38 38 #include <types/common.h> -
uspace/lib/c/include/task.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TASK_H_36 #define LIBC_TASK_H_35 #ifndef _LIBC_TASK_H_ 36 #define _LIBC_TASK_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/time.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TIME_H_36 #define LIBC_TIME_H_35 #ifndef _LIBC_TIME_H_ 36 #define _LIBC_TIME_H_ 37 37 38 38 #ifdef __cplusplus … … 64 64 struct tm { 65 65 int tm_sec; 66 #ifdef _HELENOS_SOURCE 67 int tm_nsec; 68 #endif 66 int tm_nsec; /**< Nonstandard extension, nanoseconds since last second. */ 69 67 int tm_min; 70 68 int tm_hour; -
uspace/lib/c/include/tls.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TLS_H_36 #define LIBC_TLS_H_35 #ifndef _LIBC_TLS_H_ 36 #define _LIBC_TLS_H_ 37 37 38 38 #include <libarch/tls.h> -
uspace/lib/c/include/tmpfile.h
re3272101 rd5a89a3 27 27 */ 28 28 29 #ifndef LIBC_TMPFILE_H_30 #define LIBC_TMPFILE_H_29 #ifndef _LIBC_TMPFILE_H_ 30 #define _LIBC_TMPFILE_H_ 31 31 32 32 #include <stdbool.h> -
uspace/lib/c/include/trace.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TRACE_H_36 #define LIBC_TRACE_H_35 #ifndef _LIBC_TRACE_H_ 36 #define _LIBC_TRACE_H_ 37 37 38 #define NO_TRACE __attribute__((no_instrument_function))38 #define _NO_TRACE __attribute__((no_instrument_function)) 39 39 40 40 #endif -
uspace/lib/c/include/types/common.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_COMMON_H_36 #define LIBC_TYPES_COMMON_H_35 #ifndef _LIBC_TYPES_COMMON_H_ 36 #define _LIBC_TYPES_COMMON_H_ 37 37 38 38 #if __SIZEOF_POINTER__ == 4 -
uspace/lib/c/include/types/inet.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_INET_H_36 #define LIBC_TYPES_INET_H_35 #ifndef _LIBC_TYPES_INET_H_ 36 #define _LIBC_TYPES_INET_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/types/inet/host.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_INET_HOST_H_36 #define LIBC_TYPES_INET_HOST_H_35 #ifndef _LIBC_TYPES_INET_HOST_H_ 36 #define _LIBC_TYPES_INET_HOST_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/types/inet/hostport.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_INET_HOSTPORT_H_36 #define LIBC_TYPES_INET_HOSTPORT_H_35 #ifndef _LIBC_TYPES_INET_HOSTPORT_H_ 36 #define _LIBC_TYPES_INET_HOSTPORT_H_ 37 37 38 38 #include <inet/addr.h> -
uspace/lib/c/include/types/inetcfg.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_INETCFG_H_36 #define LIBC_TYPES_INETCFG_H_35 #ifndef _LIBC_TYPES_INETCFG_H_ 36 #define _LIBC_TYPES_INETCFG_H_ 37 37 38 38 #include <inet/inet.h> -
uspace/lib/c/include/types/inetping.h
re3272101 rd5a89a3 35 35 */ 36 36 37 #ifndef LIBC_TYPES_INETPING_H_38 #define LIBC_TYPES_INETPING_H_37 #ifndef _LIBC_TYPES_INETPING_H_ 38 #define _LIBC_TYPES_INETPING_H_ 39 39 40 40 #include <inet/addr.h> -
uspace/lib/c/include/types/io/chardev.h
re3272101 rd5a89a3 30 30 */ 31 31 32 #ifndef LIBC_TYPES_IO_CHARDEV_H_33 #define LIBC_TYPES_IO_CHARDEV_H_32 #ifndef _LIBC_TYPES_IO_CHARDEV_H_ 33 #define _LIBC_TYPES_IO_CHARDEV_H_ 34 34 35 35 /** Chardev read/write operation flags */ -
uspace/lib/c/include/types/label.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_LABEL_H_36 #define LIBC_TYPES_LABEL_H_35 #ifndef _LIBC_TYPES_LABEL_H_ 36 #define _LIBC_TYPES_LABEL_H_ 37 37 38 38 #include <types/uuid.h> -
uspace/lib/c/include/types/pci.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_PCI_H_36 #define LIBC_TYPES_PCI_H_35 #ifndef _LIBC_TYPES_PCI_H_ 36 #define _LIBC_TYPES_PCI_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/types/rtld/module.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_RTLD_MODULE_H_36 #define LIBC_TYPES_RTLD_MODULE_H_35 #ifndef _LIBC_TYPES_RTLD_MODULE_H_ 36 #define _LIBC_TYPES_RTLD_MODULE_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/types/rtld/rtld.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_RTLD_RTLD_H_36 #define LIBC_TYPES_RTLD_RTLD_H_35 #ifndef _LIBC_TYPES_RTLD_RTLD_H_ 36 #define _LIBC_TYPES_RTLD_RTLD_H_ 37 37 38 38 #include <adt/list.h> -
uspace/lib/c/include/types/task.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_TASK_H_36 #define LIBC_TYPES_TASK_H_35 #ifndef _LIBC_TYPES_TASK_H_ 36 #define _LIBC_TYPES_TASK_H_ 37 37 38 38 typedef enum { -
uspace/lib/c/include/types/uuid.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_UUID_H_36 #define LIBC_TYPES_UUID_H_35 #ifndef _LIBC_TYPES_UUID_H_ 36 #define _LIBC_TYPES_UUID_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/types/vol.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_TYPES_VOL_H_36 #define LIBC_TYPES_VOL_H_35 #ifndef _LIBC_TYPES_VOL_H_ 36 #define _LIBC_TYPES_VOL_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/udebug.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_UDEBUG_H_36 #define LIBC_UDEBUG_H_35 #ifndef _LIBC_UDEBUG_H_ 36 #define _LIBC_UDEBUG_H_ 37 37 38 38 #include <abi/udebug.h> -
uspace/lib/c/include/unaligned.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_UNALIGNED_H_36 #define LIBC_UNALIGNED_H_35 #ifndef _LIBC_UNALIGNED_H_ 36 #define _LIBC_UNALIGNED_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/uuid.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_UUID_H_36 #define LIBC_UUID_H_35 #ifndef _LIBC_UUID_H_ 36 #define _LIBC_UUID_H_ 37 37 38 38 #include <stdint.h> -
uspace/lib/c/include/vbd.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VBD_H_36 #define LIBC_VBD_H_35 #ifndef _LIBC_VBD_H_ 36 #define _LIBC_VBD_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/vfs/canonify.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VFS_CANONIFY_H_36 #define LIBC_VFS_CANONIFY_H_35 #ifndef _LIBC_VFS_CANONIFY_H_ 36 #define _LIBC_VFS_CANONIFY_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/vfs/inbox.h
re3272101 rd5a89a3 36 36 */ 37 37 38 #ifndef LIBC_VFS_INBOX_H_39 #define LIBC_VFS_INBOX_H_38 #ifndef _LIBC_VFS_INBOX_H_ 39 #define _LIBC_VFS_INBOX_H_ 40 40 41 41 enum { -
uspace/lib/c/include/vfs/vfs.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VFS_H_36 #define LIBC_VFS_H_35 #ifndef _LIBC_VFS_H_ 36 #define _LIBC_VFS_H_ 37 37 38 38 #include <stddef.h> -
uspace/lib/c/include/vfs/vfs_mtab.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VFS_MTAB_H_36 #define LIBC_VFS_MTAB_H_35 #ifndef _LIBC_VFS_MTAB_H_ 36 #define _LIBC_VFS_MTAB_H_ 37 37 38 38 #include <ipc/vfs.h> -
uspace/lib/c/include/vfs/vfs_sess.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VFS_SESS_H_36 #define LIBC_VFS_SESS_H_35 #ifndef _LIBC_VFS_SESS_H_ 36 #define _LIBC_VFS_SESS_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/vol.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_VOL_H_36 #define LIBC_VOL_H_35 #ifndef _LIBC_VOL_H_ 36 #define _LIBC_VOL_H_ 37 37 38 38 #include <async.h> -
uspace/lib/c/include/wchar.h
re3272101 rd5a89a3 38 38 */ 39 39 40 #ifndef LIBC_WCHAR_H_41 #define LIBC_WCHAR_H_40 #ifndef _LIBC_WCHAR_H_ 41 #define _LIBC_WCHAR_H_ 42 42 43 43 #include <_bits/size_t.h>
Note:
See TracChangeset
for help on using the changeset viewer.
