Changeset 95c675b in mainline for uspace/lib/c/include
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (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:
-
- 3 added
- 45 edited
- 5 moved
-
adt/hash.h (modified) (1 diff)
-
adt/list.h (modified) (16 diffs)
-
as.h (modified) (1 diff)
-
async.h (modified) (3 diffs)
-
atomicdflt.h (modified) (1 diff)
-
bd.h (modified) (1 diff)
-
bd_srv.h (modified) (1 diff)
-
cap.h (modified) (2 diffs)
-
corecfg.h (modified) (1 diff)
-
device/hw_res.h (modified) (2 diffs)
-
dirent.h (modified) (1 diff)
-
elf/elf.h (modified) (1 diff)
-
fibril.h (modified) (1 diff)
-
fibril_synch.h (modified) (1 diff)
-
fourcc.h (moved) (moved from uspace/lib/c/include/err.h ) (2 diffs)
-
gsort.h (moved) (moved from uspace/lib/c/include/sort.h ) (1 diff)
-
inet/dhcp.h (modified) (1 diff)
-
inet/udp.h (modified) (1 diff)
-
io/chardev.h (modified) (1 diff)
-
io/chargrid.h (modified) (1 diff)
-
io/log.h (modified) (1 diff)
-
io/pixelmap.h (modified) (1 diff)
-
io/pos_event.h (modified) (1 diff)
-
io/table.h (added)
-
ipc/dev_iface.h (modified) (1 diff)
-
ipc/event.h (modified) (1 diff)
-
ipc/irc.h (modified) (1 diff)
-
ipc/irq.h (modified) (1 diff)
-
ipc/ns.h (modified) (1 diff)
-
ipc/services.h (modified) (1 diff)
-
ipc/udp.h (modified) (1 diff)
-
ipc/vol.h (modified) (2 diffs)
-
irc.h (modified) (1 diff)
-
ns.h (modified) (1 diff)
-
offset.h (moved) (moved from uspace/lib/c/include/sys/typefmt.h ) (3 diffs)
-
perm.h (moved) (moved from kernel/generic/include/ddi/device.h ) (2 diffs)
-
qsort.h (added)
-
stack.h (modified) (1 diff)
-
stdbool.h (modified) (1 diff)
-
stddef.h (modified) (1 diff)
-
stdint.h (modified) (1 diff)
-
stdio.h (modified) (2 diffs)
-
stdlib.h (modified) (1 diff)
-
str.h (modified) (1 diff)
-
syscall.h (modified) (1 diff)
-
sysinfo.h (modified) (1 diff)
-
types/common.h (added)
-
types/label.h (modified) (1 diff)
-
types/vol.h (modified) (2 diffs)
-
unaligned.h (moved) (moved from uspace/lib/c/include/sys/types.h ) (2 diffs)
-
vbd.h (modified) (1 diff)
-
vfs/vfs.h (modified) (1 diff)
-
vol.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/hash.h
rdbf32b1 r95c675b 36 36 37 37 #include <stdint.h> 38 #include <types/common.h> 38 39 39 40 /** Produces a uniform hash affecting all output bits from the skewed input. */ -
uspace/lib/c/include/adt/list.h
rdbf32b1 r95c675b 40 40 #include <stdbool.h> 41 41 #include <stddef.h> 42 #include <trace.h> 42 43 43 44 /** Doubly linked list link. */ … … 51 52 link_t head; /**< List head. Does not have any data. */ 52 53 } list_t; 54 55 extern bool list_member(const link_t *, const list_t *); 56 extern void list_splice(list_t *, link_t *); 57 extern unsigned long list_count(const list_t *); 53 58 54 59 /** Declare and initialize statically allocated list. … … 88 93 #define list_foreach(list, member, itype, iterator) \ 89 94 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \ 90 for (link_t *_link = (list).head.next; \91 iterator = list_get_instance(_link, itype, member), \92 _link != &(list).head; _link = _link->next)95 for (link_t *_link = (list).head.next; \ 96 iterator = list_get_instance(_link, itype, member), \ 97 _link != &(list).head; _link = _link->next) 93 98 94 99 #define list_foreach_rev(list, member, itype, iterator) \ 95 100 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \ 96 for (link_t *_link = (list).head.prev; \97 iterator = list_get_instance(_link, itype, member), \98 _link != &(list).head; _link = _link->prev)101 for (link_t *_link = (list).head.prev; \ 102 iterator = list_get_instance(_link, itype, member), \ 103 _link != &(list).head; _link = _link->prev) 99 104 100 105 /** Unlike list_foreach(), allows removing items while traversing a list. … … 125 130 #define list_foreach_safe(list, iterator, next_iter) \ 126 131 for (link_t *iterator = (list).head.next, \ 127 *next_iter = iterator->next; \128 iterator != &(list).head; \129 iterator = next_iter, next_iter = iterator->next)132 *next_iter = iterator->next; \ 133 iterator != &(list).head; \ 134 iterator = next_iter, next_iter = iterator->next) 130 135 131 136 #define assert_link_not_used(link) \ … … 145 150 * 146 151 */ 147 static inline void link_initialize(link_t *link)152 NO_TRACE static inline void link_initialize(link_t *link) 148 153 { 149 154 link->prev = NULL; … … 158 163 * 159 164 */ 160 static inline void list_initialize(list_t *list)165 NO_TRACE static inline void list_initialize(list_t *list) 161 166 { 162 167 list->head.prev = &list->head; … … 194 199 * 195 200 */ 196 static inline void list_prepend(link_t *link, list_t *list)201 NO_TRACE static inline void list_prepend(link_t *link, list_t *list) 197 202 { 198 203 list_insert_after(link, &list->head); … … 207 212 * 208 213 */ 209 static inline void list_append(link_t *link, list_t *list)214 NO_TRACE static inline void list_append(link_t *link, list_t *list) 210 215 { 211 216 list_insert_before(link, &list->head); … … 220 225 * 221 226 */ 222 static inline void list_remove(link_t *link)227 NO_TRACE static inline void list_remove(link_t *link) 223 228 { 224 229 if ((link->prev != NULL) && (link->next != NULL)) { … … 237 242 * 238 243 */ 239 static inline bool list_empty(const list_t *list)244 NO_TRACE static inline bool list_empty(const list_t *list) 240 245 { 241 246 return (list->head.next == &list->head); … … 274 279 * 275 280 * @return Next item or NULL if @a link is the last item. 276 *277 281 */ 278 282 static inline link_t *list_next(const link_t *link, const list_t *list) … … 287 291 * 288 292 * @return Previous item or NULL if @a link is the first item. 289 *290 293 */ 291 294 static inline link_t *list_prev(const link_t *link, const list_t *list) … … 307 310 * 308 311 */ 309 static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)312 NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2) 310 313 { 311 314 part1->prev->next = part2; … … 328 331 * 329 332 */ 330 static inline void headless_list_split(link_t *part1, link_t *part2)333 NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2) 331 334 { 332 335 headless_list_split_or_concat(part1, part2); … … 343 346 * 344 347 */ 345 static inline void headless_list_concat(link_t *part1, link_t *part2)348 NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2) 346 349 { 347 350 headless_list_split_or_concat(part1, part2); 351 } 352 353 /** Concatenate two lists 354 * 355 * Concatenate lists @a list1 and @a list2, producing a single 356 * list @a list1 containing items from both (in @a list1, @a list2 357 * order) and empty list @a list2. 358 * 359 * @param list1 First list and concatenated output 360 * @param list2 Second list and empty output. 361 * 362 */ 363 NO_TRACE static inline void list_concat(list_t *list1, list_t *list2) 364 { 365 list_splice(list2, list1->head.prev); 348 366 } 349 367 … … 396 414 } 397 415 398 extern bool list_member(const link_t *, const list_t *);399 extern void list_concat(list_t *, list_t *);400 extern unsigned long list_count(const list_t *);401 402 416 #endif 403 417 -
uspace/lib/c/include/as.h
rdbf32b1 r95c675b 36 36 #define LIBC_AS_H_ 37 37 38 #include < libarch/types.h>38 #include <types/common.h> 39 39 #include <stddef.h> 40 40 #include <stdint.h> -
uspace/lib/c/include/async.h
rdbf32b1 r95c675b 166 166 sysarg_t, async_port_handler_t, void *, port_id_t *); 167 167 168 extern int async_irq_subscribe(int, int,async_notification_handler_t, void *,168 extern int async_irq_subscribe(int, async_notification_handler_t, void *, 169 169 const irq_code_t *); 170 extern int async_irq_unsubscribe(int , int);170 extern int async_irq_unsubscribe(int); 171 171 172 172 extern int async_event_subscribe(event_type_t, async_notification_handler_t, … … 343 343 sysarg_t *, sysarg_t *); 344 344 345 extern async_sess_t *async_clone_establish(exch_mgmt_t, async_exch_t *);346 345 extern async_sess_t *async_connect_me_to(exch_mgmt_t, async_exch_t *, sysarg_t, 347 346 sysarg_t, sysarg_t); … … 472 471 sysarg_t, sysarg_t, sysarg_t, ipc_call_t *); 473 472 474 extern int async_exchange_clone(async_exch_t *, async_exch_t *);475 extern async_sess_t *async_clone_receive(exch_mgmt_t);476 473 extern async_sess_t *async_callback_receive(exch_mgmt_t); 477 474 extern async_sess_t *async_callback_receive_start(exch_mgmt_t, ipc_call_t *); -
uspace/lib/c/include/atomicdflt.h
rdbf32b1 r95c675b 40 40 #endif 41 41 42 #include < stdint.h>42 #include <types/common.h> 43 43 #include <stdbool.h> 44 44 -
uspace/lib/c/include/bd.h
rdbf32b1 r95c675b 37 37 38 38 #include <async.h> 39 #include < sys/types.h>39 #include <offset.h> 40 40 41 41 typedef struct { -
uspace/lib/c/include/bd_srv.h
rdbf32b1 r95c675b 40 40 #include <fibril_synch.h> 41 41 #include <stdbool.h> 42 #include < sys/types.h>42 #include <offset.h> 43 43 44 44 typedef struct bd_ops bd_ops_t; -
uspace/lib/c/include/cap.h
rdbf32b1 r95c675b 1 1 /* 2 * Copyright (c) 20 06 Jakub Jermar2 * Copyright (c) 2015 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 30 30 * @{ 31 31 */ 32 /** @file 32 /** 33 * @file Storage capacity specification. 33 34 */ 34 35 35 #ifndef LIB _CAP_H_36 #define LIB _CAP_H_36 #ifndef LIBC_CAP_H_ 37 #define LIBC_CAP_H_ 37 38 38 #include <task.h> 39 #include <adt/list.h> 40 #include <loc.h> 41 #include <stdint.h> 42 #include <types/label.h> 43 #include <types/vol.h> 44 #include <vbd.h> 39 45 40 extern int cap_grant(task_id_t id, unsigned int caps); 41 extern int cap_revoke(task_id_t id, unsigned int caps); 46 /** Capacity unit */ 47 typedef enum { 48 cu_byte = 0, 49 cu_kbyte, 50 cu_mbyte, 51 cu_gbyte, 52 cu_tbyte, 53 cu_pbyte, 54 cu_ebyte, 55 cu_zbyte, 56 cu_ybyte 57 } cap_unit_t; 58 59 /** Which of values within the precision of the capacity */ 60 typedef enum { 61 /** The nominal (middling) value */ 62 cv_nom, 63 /** The minimum value */ 64 cv_min, 65 /** The maximum value */ 66 cv_max 67 } cap_vsel_t; 68 69 #define CU_LIMIT (cu_ybyte + 1) 70 71 /** Storage capacity. 72 * 73 * Storage capacity represents both value and precision. 74 * It is a decimal floating point value combined with a decimal 75 * capacity unit. There is an integer mantisa @c m which in combination 76 * with the number of decimal positions @c dp gives a decimal floating-point 77 * number. E.g. for m = 1025 and dp = 2 the number is 10.25. If the unit 78 * cunit = cu_kbyte, the capacity is 10.25 kByte, i.e. 10 250 bytes. 79 * 80 * Note that 1.000 kByte is equivalent to 1000 Byte, but 1 kByte is less 81 * precise. 82 */ 83 typedef struct { 84 /** Mantisa */ 85 uint64_t m; 86 /** Decimal positions */ 87 unsigned dp; 88 /** Capacity unit */ 89 cap_unit_t cunit; 90 } cap_spec_t; 91 92 extern int cap_format(cap_spec_t *, char **); 93 extern int cap_parse(const char *, cap_spec_t *); 94 extern void cap_simplify(cap_spec_t *); 95 extern void cap_from_blocks(uint64_t, size_t, cap_spec_t *); 96 extern int cap_to_blocks(cap_spec_t *, cap_vsel_t, size_t, uint64_t *); 42 97 43 98 #endif -
uspace/lib/c/include/corecfg.h
rdbf32b1 r95c675b 33 33 */ 34 34 35 #ifndef LIBC_ INET_INETCFG_H_36 #define LIBC_ INET_INETCFG_H_35 #ifndef LIBC_CORECFG_H_ 36 #define LIBC_CORECFG_H_ 37 37 38 38 #include <stdbool.h> -
uspace/lib/c/include/device/hw_res.h
rdbf32b1 r95c675b 52 52 HW_RES_GET_RESOURCE_LIST = 0, 53 53 HW_RES_ENABLE_INTERRUPT, 54 HW_RES_DISABLE_INTERRUPT, 55 HW_RES_CLEAR_INTERRUPT, 54 56 HW_RES_DMA_CHANNEL_SETUP, 55 57 HW_RES_DMA_CHANNEL_REMAIN, … … 115 117 116 118 extern int hw_res_get_resource_list(async_sess_t *, hw_resource_list_t *); 117 extern bool hw_res_enable_interrupt(async_sess_t *); 119 extern int hw_res_enable_interrupt(async_sess_t *, int); 120 extern int hw_res_disable_interrupt(async_sess_t *, int); 121 extern int hw_res_clear_interrupt(async_sess_t *, int); 118 122 119 123 extern int hw_res_dma_channel_setup(async_sess_t *, unsigned int, uint32_t, -
uspace/lib/c/include/dirent.h
rdbf32b1 r95c675b 38 38 #define NAME_MAX 256 39 39 40 #include < sys/types.h>40 #include <offset.h> 41 41 42 42 struct dirent { -
uspace/lib/c/include/elf/elf.h
rdbf32b1 r95c675b 37 37 38 38 #include <stdint.h> 39 #include < libarch/types.h>39 #include <types/common.h> 40 40 #include <abi/elf.h> 41 41 #include <libarch/elf.h> -
uspace/lib/c/include/fibril.h
rdbf32b1 r95c675b 37 37 38 38 #include <libarch/fibril.h> 39 #include <types/common.h> 39 40 #include <adt/list.h> 40 41 #include <libarch/tls.h> -
uspace/lib/c/include/fibril_synch.h
rdbf32b1 r95c675b 173 173 extern fibril_timer_state_t fibril_timer_clear(fibril_timer_t *); 174 174 extern fibril_timer_state_t fibril_timer_clear_locked(fibril_timer_t *); 175 extern void fibril_usleep(useconds_t); 176 extern void fibril_sleep(unsigned int); 175 177 176 178 #endif -
uspace/lib/c/include/fourcc.h
rdbf32b1 r95c675b 1 1 /* 2 * Copyright (c) 20 06 Ondrej Palkovsky2 * Copyright (c) 2017 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 33 33 */ 34 34 35 #ifndef LIBC_ ERR_H_36 #define LIBC_ ERR_H_35 #ifndef LIBC_FOURCC_H_ 36 #define LIBC_FOURCC_H_ 37 37 38 #include <stdi o.h>38 #include <stdint.h> 39 39 40 #define errx(status, fmt, ...) \ 41 do { \ 42 printf((fmt), ##__VA_ARGS__); \ 43 exit(status); \ 44 } while (0) 40 typedef uint32_t fourcc_t; 45 41 46 42 #endif -
uspace/lib/c/include/gsort.h
rdbf32b1 r95c675b 42 42 43 43 extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *); 44 extern bool qsort(void *, size_t, size_t, sort_cmp_t, void *);45 44 46 45 #endif -
uspace/lib/c/include/inet/dhcp.h
rdbf32b1 r95c675b 36 36 #define LIBC_INET_DHCP_H_ 37 37 38 #include <types/common.h> 38 39 39 40 extern int dhcp_init(void); -
uspace/lib/c/include/inet/udp.h
rdbf32b1 r95c675b 95 95 extern int udp_assoc_create(udp_t *, inet_ep2_t *, udp_cb_t *, void *, 96 96 udp_assoc_t **); 97 extern int udp_assoc_set_nolocal(udp_assoc_t *); 97 98 extern void udp_assoc_destroy(udp_assoc_t *); 98 99 extern int udp_assoc_send_msg(udp_assoc_t *, inet_ep_t *, void *, size_t); -
uspace/lib/c/include/io/chardev.h
rdbf32b1 r95c675b 33 33 #define LIBC_IO_CHARDEV_H_ 34 34 35 #include < libarch/types.h>35 #include <types/common.h> 36 36 #include <async.h> 37 37 -
uspace/lib/c/include/io/chargrid.h
rdbf32b1 r95c675b 37 37 #define LIBC_IO_CHARGRID_H_ 38 38 39 #include <io/charfield.h> 40 #include <types/common.h> 39 41 #include <stddef.h> 40 #include <io/charfield.h>41 42 42 43 typedef enum { -
uspace/lib/c/include/io/log.h
rdbf32b1 r95c675b 38 38 #include <inttypes.h> 39 39 #include <io/verify.h> 40 #include < libarch/types.h>40 #include <types/common.h> 41 41 42 42 #include <abi/log.h> -
uspace/lib/c/include/io/pixelmap.h
rdbf32b1 r95c675b 38 38 #define LIBC_IO_PIXELMAP_H_ 39 39 40 #include <types/common.h> 41 #include <stdbool.h> 40 42 #include <stddef.h> 41 43 #include <io/pixel.h> -
uspace/lib/c/include/io/pos_event.h
rdbf32b1 r95c675b 37 37 #define LIBC_IO_POS_EVENT_H_ 38 38 39 #include <types/common.h> 39 40 40 41 typedef enum { -
uspace/lib/c/include/ipc/dev_iface.h
rdbf32b1 r95c675b 31 31 32 32 #include <malloc.h> 33 #include < libarch/types.h>33 #include <types/common.h> 34 34 35 35 typedef enum { -
uspace/lib/c/include/ipc/event.h
rdbf32b1 r95c675b 37 37 38 38 #include <abi/ipc/event.h> 39 #include < libarch/types.h>39 #include <types/common.h> 40 40 41 41 extern int ipc_event_subscribe(event_type_t, sysarg_t); -
uspace/lib/c/include/ipc/irc.h
rdbf32b1 r95c675b 40 40 typedef enum { 41 41 IRC_ENABLE_INTERRUPT = IPC_FIRST_USER_METHOD, 42 IRC_DISABLE_INTERRUPT, 42 43 IRC_CLEAR_INTERRUPT 43 44 } irc_request_t; -
uspace/lib/c/include/ipc/irq.h
rdbf32b1 r95c675b 36 36 #define LIBC_IPC_IRQ_H_ 37 37 38 #include < libarch/types.h>38 #include <types/common.h> 39 39 #include <abi/ddi/irq.h> 40 40 41 extern int ipc_irq_subscribe(int, int,sysarg_t, const irq_code_t *);42 extern int ipc_irq_unsubscribe(int , int);41 extern int ipc_irq_subscribe(int, sysarg_t, const irq_code_t *); 42 extern int ipc_irq_unsubscribe(int); 43 43 44 44 #endif -
uspace/lib/c/include/ipc/ns.h
rdbf32b1 r95c675b 40 40 typedef enum { 41 41 NS_PING = IPC_FIRST_USER_METHOD, 42 NS_REGISTER, 42 43 NS_TASK_WAIT, 43 44 NS_ID_INTRO, -
uspace/lib/c/include/ipc/services.h
rdbf32b1 r95c675b 47 47 SERVICE_LOGGER = FOURCC('l', 'o', 'g', 'g'), 48 48 SERVICE_DEVMAN = FOURCC('d', 'e', 'v', 'n'), 49 SERVICE_IRC = FOURCC('i', 'r', 'c', ' '),50 SERVICE_CLIPBOARD = FOURCC('c', 'l', 'i', 'p'),51 49 } service_t; 52 50 51 #define SERVICE_NAME_CLIPBOARD "clipboard" 53 52 #define SERVICE_NAME_CORECFG "corecfg" 54 53 #define SERVICE_NAME_DHCP "net/dhcp" -
uspace/lib/c/include/ipc/udp.h
rdbf32b1 r95c675b 42 42 UDP_ASSOC_CREATE, 43 43 UDP_ASSOC_DESTROY, 44 UDP_ASSOC_SET_NOLOCAL, 44 45 UDP_ASSOC_SEND_MSG, 45 46 UDP_RMSG_INFO, -
uspace/lib/c/include/ipc/vol.h
rdbf32b1 r95c675b 36 36 #include <ipc/common.h> 37 37 38 #define VOL_LABEL_MAXLEN 63 39 38 40 typedef enum { 39 41 VOL_GET_PARTS = IPC_FIRST_USER_METHOD, … … 41 43 VOL_PART_INFO, 42 44 VOL_PART_EMPTY, 43 VOL_PART_MKFS 45 VOL_PART_LSUPP, 46 VOL_PART_MKFS, 44 47 } vol_request_t; 45 48 -
uspace/lib/c/include/irc.h
rdbf32b1 r95c675b 38 38 extern int irc_enable_interrupt(int); 39 39 extern int irc_disable_interrupt(int); 40 extern int irc_clear_interrupt(int); 40 41 41 42 #endif -
uspace/lib/c/include/ns.h
rdbf32b1 r95c675b 46 46 extern int ns_ping(void); 47 47 extern int ns_intro(task_id_t); 48 extern async_sess_t *ns_session_get(void); 48 49 49 50 #endif -
uspace/lib/c/include/offset.h
rdbf32b1 r95c675b 1 1 /* 2 * Copyright (c) 201 0 Jiri Svoboda2 * Copyright (c) 2017 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 30 30 * @{ 31 31 */ 32 /** @file Formatting macros for types from sys/types.h and some other 33 * system types. 32 /** @file 34 33 */ 35 34 36 #ifndef LIBC_ SYS_TYPEFMT_H_37 #define LIBC_ SYS_TYPEFMT_H_35 #ifndef LIBC_OFFSET_H_ 36 #define LIBC_OFFSET_H_ 38 37 39 #include <inttypes.h> 38 #include <stdint.h> 39 40 /* off64_t */ 41 #define OFF64_MIN INT64_MIN 42 #define OFF64_MAX INT64_MAX 43 44 /* aoff64_t */ 45 #define AOFF64_MIN UINT64_MIN 46 #define AOFF64_MAX UINT64_MAX 40 47 41 48 /* off64_t, aoff64_t */ … … 45 52 #define PRIXOFF64 PRIX64 46 53 54 /** Relative offset */ 55 typedef int64_t off64_t; 56 57 /** Absolute offset */ 58 typedef uint64_t aoff64_t; 59 47 60 #endif 48 61 -
uspace/lib/c/include/perm.h
rdbf32b1 r95c675b 27 27 */ 28 28 29 /** @addtogroup genericddi29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef KERN_DEVICE_H_36 #define KERN_DEVICE_H_35 #ifndef LIB_PERM_H_ 36 #define LIB_PERM_H_ 37 37 38 #include <t ypedefs.h>38 #include <task.h> 39 39 40 extern devno_t device_assign_devno(void);41 extern sysarg_t sys_device_assign_devno(void);40 extern int perm_grant(task_id_t, unsigned int); 41 extern int perm_revoke(task_id_t, unsigned int); 42 42 43 43 #endif -
uspace/lib/c/include/stack.h
rdbf32b1 r95c675b 36 36 #define LIBC_STACK_H_ 37 37 38 #include < libarch/types.h>38 #include <types/common.h> 39 39 40 40 extern size_t stack_size_get(void); -
uspace/lib/c/include/stdbool.h
rdbf32b1 r95c675b 36 36 #define LIBC_BOOL_H_ 37 37 38 #include <libarch/types.h>39 38 #include <abi/bool.h> 40 39 -
uspace/lib/c/include/stddef.h
rdbf32b1 r95c675b 42 42 #endif 43 43 44 #define offsetof(type,member) ((size_t) &(((type *) 0)->member)) 44 #define offsetof(type, member) \ 45 ((size_t) &(((type *) 0)->member)) 45 46 46 47 #endif -
uspace/lib/c/include/stdint.h
rdbf32b1 r95c675b 62 62 #include <libarch/stdint.h> 63 63 64 /* off64_t */65 #define OFF64_MIN INT64_MIN66 #define OFF64_MAX INT64_MAX67 68 /* aoff64_t */69 #define AOFF64_MIN UINT64_MIN70 #define AOFF64_MAX UINT64_MAX71 72 64 #endif 73 65 -
uspace/lib/c/include/stdio.h
rdbf32b1 r95c675b 36 36 #define LIBC_STDIO_H_ 37 37 38 #include <sys/types.h>39 38 #include <stdarg.h> 40 39 #include <str.h> … … 140 139 extern size_t fwrite(const void *, size_t, size_t, FILE *); 141 140 142 extern int fseek(FILE *, off64_t, int);141 extern int fseek(FILE *, long, int); 143 142 extern void rewind(FILE *); 144 extern off64_tftell(FILE *);143 extern long ftell(FILE *); 145 144 extern int feof(FILE *); 146 145 extern int fileno(FILE *); -
uspace/lib/c/include/stdlib.h
rdbf32b1 r95c675b 37 37 38 38 #include <malloc.h> 39 #include <qsort.h> 39 40 #include <stacktrace.h> 40 41 -
uspace/lib/c/include/str.h
rdbf32b1 r95c675b 99 99 extern int utf16_to_str(char *dest, size_t size, const uint16_t *src); 100 100 extern int str_to_utf16(uint16_t *dest, size_t dlen, const char *src); 101 extern size_t utf16_wsize(const uint16_t *ustr); 101 102 102 103 extern char *str_chr(const char *str, wchar_t ch); -
uspace/lib/c/include/syscall.h
rdbf32b1 r95c675b 45 45 46 46 #include <abi/syscall.h> 47 #include < libarch/types.h>47 #include <types/common.h> 48 48 49 49 #define __syscall0 __syscall -
uspace/lib/c/include/sysinfo.h
rdbf32b1 r95c675b 36 36 #define LIBC_SYSINFO_H_ 37 37 38 #include <types/common.h> 38 39 #include <stddef.h> 39 40 #include <stdbool.h> -
uspace/lib/c/include/types/label.h
rdbf32b1 r95c675b 124 124 } label_pcnt_t; 125 125 126 #define LPC_LIMIT (lpc_minix + 1) 127 126 128 #endif 127 129 -
uspace/lib/c/include/types/vol.h
rdbf32b1 r95c675b 37 37 38 38 #include <async.h> 39 #include <ipc/vol.h> 40 #include <stdbool.h> 39 41 40 42 typedef enum { … … 71 73 /** Filesystem type */ 72 74 vol_fstype_t fstype; 75 /** Volume label */ 76 char label[VOL_LABEL_MAXLEN + 1]; 73 77 } vol_part_info_t; 78 79 /** Volume label support */ 80 typedef struct { 81 /** Volume labels are supported */ 82 bool supported; 83 } vol_label_supp_t; 74 84 75 85 #endif -
uspace/lib/c/include/unaligned.h
rdbf32b1 r95c675b 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2017 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 33 33 */ 34 34 35 #ifndef LIBC_ SYS_TYPES_H_36 #define LIBC_ SYS_TYPES_H_35 #ifndef LIBC_UNALIGNED_H_ 36 #define LIBC_UNALIGNED_H_ 37 37 38 #include <libarch/types.h> 39 40 /** Relative offset */ 41 typedef int64_t off64_t; 42 43 /** Absolute offset */ 44 typedef uint64_t aoff64_t; 45 46 typedef uint32_t fourcc_t; 38 #include <stdint.h> 47 39 48 40 typedef int16_t unaligned_int16_t __attribute__ ((aligned(1))); -
uspace/lib/c/include/vbd.h
rdbf32b1 r95c675b 39 39 #include <loc.h> 40 40 #include <types/label.h> 41 #include < sys/types.h>41 #include <offset.h> 42 42 43 43 /** VBD service */ -
uspace/lib/c/include/vfs/vfs.h
rdbf32b1 r95c675b 43 43 #include <stdio.h> 44 44 #include <async.h> 45 #include <offset.h> 45 46 46 47 #define MAX_OPEN_FILES 128 -
uspace/lib/c/include/vol.h
rdbf32b1 r95c675b 48 48 extern int vol_part_info(vol_t *, service_id_t, vol_part_info_t *); 49 49 extern int vol_part_empty(vol_t *, service_id_t); 50 extern int vol_part_mkfs(vol_t *, service_id_t, vol_fstype_t); 50 extern int vol_part_get_lsupp(vol_t *, vol_fstype_t, vol_label_supp_t *); 51 extern int vol_part_mkfs(vol_t *, service_id_t, vol_fstype_t, const char *); 51 52 52 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
