Changeset d5a89a3 in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2019-02-11T22:31:04Z (7 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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.
Message:

merging with upstream/master

Location:
uspace/lib/c/include
Files:
2 added
190 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/checksum.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CHECKSUM_H_
    36 #define LIBC_CHECKSUM_H_
     35#ifndef _LIBC_CHECKSUM_H_
     36#define _LIBC_CHECKSUM_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/adt/circ_buf.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CIRC_BUF_H_
    36 #define LIBC_CIRC_BUF_H_
     35#ifndef _LIBC_CIRC_BUF_H_
     36#define _LIBC_CIRC_BUF_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/adt/fifo.h

    re3272101 rd5a89a3  
    4343 */
    4444
    45 #ifndef LIBC_FIFO_H_
    46 #define LIBC_FIFO_H_
     45#ifndef _LIBC_FIFO_H_
     46#define _LIBC_FIFO_H_
    4747
    4848#include <stdlib.h>
  • uspace/lib/c/include/adt/gcdlcm.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_GCDLCM_H_
    36 #define LIBC_GCDLCM_H_
     35#ifndef _LIBC_GCDLCM_H_
     36#define _LIBC_GCDLCM_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/adt/hash.h

    re3272101 rd5a89a3  
    3232/** @file
    3333 */
    34 #ifndef LIBC_ADT_HASH_H_
    35 #define LIBC_ADT_HASH_H_
     34#ifndef _LIBC_ADT_HASH_H_
     35#define _LIBC_ADT_HASH_H_
    3636
    3737#include <stdint.h>
  • uspace/lib/c/include/adt/hash_table.h

    re3272101 rd5a89a3  
    3535 */
    3636
    37 #ifndef LIBC_HASH_TABLE_H_
    38 #define LIBC_HASH_TABLE_H_
     37#ifndef _LIBC_HASH_TABLE_H_
     38#define _LIBC_HASH_TABLE_H_
    3939
    4040#include <adt/list.h>
  • uspace/lib/c/include/adt/list.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_LIST_H_
    37 #define LIBC_LIST_H_
     36#ifndef _LIBC_LIST_H_
     37#define _LIBC_LIST_H_
    3838
    3939#include <assert.h>
     
    151151 *
    152152 */
    153 NO_TRACE static inline void link_initialize(link_t *link)
     153_NO_TRACE static inline void link_initialize(link_t *link)
    154154{
    155155        link->prev = NULL;
     
    164164 *
    165165 */
    166 NO_TRACE static inline void list_initialize(list_t *list)
     166_NO_TRACE static inline void list_initialize(list_t *list)
    167167{
    168168        list->head.prev = &list->head;
     
    200200 *
    201201 */
    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)
    203203{
    204204        list_insert_after(link, &list->head);
     
    213213 *
    214214 */
    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)
    216216{
    217217        list_insert_before(link, &list->head);
     
    226226 *
    227227 */
    228 NO_TRACE static inline void list_remove(link_t *link)
     228_NO_TRACE static inline void list_remove(link_t *link)
    229229{
    230230        if ((link->prev != NULL) && (link->next != NULL)) {
     
    243243 *
    244244 */
    245 NO_TRACE static inline bool list_empty(const list_t *list)
     245_NO_TRACE static inline bool list_empty(const list_t *list)
    246246{
    247247        return (list->head.next == &list->head);
     
    311311 *
    312312 */
    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)
    314314{
    315315        part1->prev->next = part2;
     
    332332 *
    333333 */
    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)
    335335{
    336336        headless_list_split_or_concat(part1, part2);
     
    347347 *
    348348 */
    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)
    350350{
    351351        headless_list_split_or_concat(part1, part2);
     
    362362 *
    363363 */
    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)
    365365{
    366366        list_splice(list2, list1->head.prev);
  • uspace/lib/c/include/adt/prodcons.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_PRODCONS_H_
    36 #define LIBC_PRODCONS_H_
     35#ifndef _LIBC_PRODCONS_H_
     36#define _LIBC_PRODCONS_H_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/align.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ALIGN_H_
    36 #define LIBC_ALIGN_H_
     35#ifndef _LIBC_ALIGN_H_
     36#define _LIBC_ALIGN_H_
    3737
    3838/** Align to the nearest lower address which is a power of two.
  • uspace/lib/c/include/arg_parse.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ARG_PARSE_H_
    36 #define LIBC_ARG_PARSE_H_
     35#ifndef _LIBC_ARG_PARSE_H_
     36#define _LIBC_ARG_PARSE_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/as.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_AS_H_
    36 #define LIBC_AS_H_
     35#ifndef _LIBC_AS_H_
     36#define _LIBC_AS_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/assert.h

    re3272101 rd5a89a3  
    3838// This is in accordance with the C standard.
    3939
    40 #ifndef LIBC_ASSERT_H_
    41 #define LIBC_ASSERT_H_
     40#ifndef _LIBC_ASSERT_H_
     41#define _LIBC_ASSERT_H_
    4242
    4343#ifndef __cplusplus
    44 #define static_assert(expr)     _Static_assert(expr, "")
     44#define static_assert _Static_assert
    4545#endif
    4646
  • uspace/lib/c/include/async.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #if ((defined(LIBC_IPC_H_)) && (!defined(LIBC_ASYNC_C_)))
     35#if ((defined(_LIBC_IPC_H_)) && (!defined(_LIBC_ASYNC_C_)))
    3636#error Do not intermix low-level IPC interface and async framework
    3737#endif
    3838
    39 #ifndef LIBC_ASYNC_H_
    40 #define LIBC_ASYNC_H_
     39#ifndef _LIBC_ASYNC_H_
     40#define _LIBC_ASYNC_H_
    4141
    4242#include <ipc/common.h>
    43 #include <fibril.h>
    4443#include <time.h>
    4544#include <stdbool.h>
     
    109108extern __noreturn void async_manager(void);
    110109
    111 #define async_get_call(data) \
    112         async_get_call_timeout(data, 0)
    113 
     110extern bool async_get_call(ipc_call_t *);
    114111extern bool async_get_call_timeout(ipc_call_t *, usec_t);
    115112
    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,
     113extern aid_t async_send_0(async_exch_t *, sysarg_t, ipc_call_t *);
     114extern aid_t async_send_1(async_exch_t *, sysarg_t, sysarg_t, ipc_call_t *);
     115extern aid_t async_send_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     116    ipc_call_t *);
     117extern aid_t async_send_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     118    sysarg_t, ipc_call_t *);
     119extern aid_t async_send_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    137120    sysarg_t, sysarg_t, ipc_call_t *);
    138 extern aid_t async_send_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     121extern aid_t async_send_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    139122    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
    140123
     
    199182 */
    200183
    201 extern errno_t async_forward_fast(ipc_call_t *, async_exch_t *, sysarg_t,
     184extern errno_t async_forward_0(ipc_call_t *, async_exch_t *, sysarg_t,
     185    unsigned int);
     186extern errno_t async_forward_1(ipc_call_t *, async_exch_t *, sysarg_t,
     187    sysarg_t, unsigned int);
     188extern errno_t async_forward_2(ipc_call_t *, async_exch_t *, sysarg_t,
    202189    sysarg_t, sysarg_t, unsigned int);
    203 extern errno_t async_forward_slow(ipc_call_t *, async_exch_t *, sysarg_t,
     190extern errno_t async_forward_3(ipc_call_t *, async_exch_t *, sysarg_t,
     191    sysarg_t, sysarg_t, sysarg_t, unsigned int);
     192extern errno_t async_forward_4(ipc_call_t *, async_exch_t *, sysarg_t,
     193    sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int);
     194extern errno_t async_forward_5(ipc_call_t *, async_exch_t *, sysarg_t,
    204195    sysarg_t, sysarg_t, sysarg_t, sysarg_t, sysarg_t, unsigned int);
    205196
    206197/*
    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
     203extern errno_t async_req_0_0(async_exch_t *, sysarg_t);
     204extern errno_t async_req_0_1(async_exch_t *, sysarg_t, sysarg_t *);
     205extern errno_t async_req_0_2(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *);
     206extern errno_t async_req_0_3(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *,
     207    sysarg_t *);
     208extern errno_t async_req_0_4(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *,
     209    sysarg_t *, sysarg_t *);
     210extern errno_t async_req_0_5(async_exch_t *, sysarg_t, sysarg_t *, sysarg_t *,
     211    sysarg_t *, sysarg_t *, sysarg_t *);
     212extern errno_t async_req_1_0(async_exch_t *, sysarg_t, sysarg_t);
     213extern errno_t async_req_1_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *);
     214extern errno_t async_req_1_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *,
     215    sysarg_t *);
     216extern errno_t async_req_1_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *,
     217    sysarg_t *, sysarg_t *);
     218extern errno_t async_req_1_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *,
     219    sysarg_t *, sysarg_t *, sysarg_t *);
     220extern errno_t async_req_1_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t *,
     221    sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *);
     222extern errno_t async_req_2_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
     223extern errno_t async_req_2_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     224    sysarg_t *);
     225extern errno_t async_req_2_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     226    sysarg_t *, sysarg_t *);
     227extern errno_t async_req_2_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     228    sysarg_t *, sysarg_t *, sysarg_t *);
     229extern errno_t async_req_2_4(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     230    sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *);
     231extern 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 *);
     233extern errno_t async_req_3_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     234    sysarg_t);
     235extern errno_t async_req_3_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     236    sysarg_t, sysarg_t *);
     237extern errno_t async_req_3_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     238    sysarg_t, sysarg_t *, sysarg_t *);
     239extern errno_t async_req_3_3(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     240    sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *);
     241extern 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 *);
     243extern 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 *);
     245extern errno_t async_req_4_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     246    sysarg_t, sysarg_t);
     247extern errno_t async_req_4_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     248    sysarg_t, sysarg_t, sysarg_t *);
     249extern errno_t async_req_4_2(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     250    sysarg_t, sysarg_t, sysarg_t *, sysarg_t *);
     251extern 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 *);
     253extern 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 *);
     255extern errno_t async_req_4_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    328256    sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *, sysarg_t *,
    329257    sysarg_t *);
    330 extern errno_t async_req_slow(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     258extern errno_t async_req_5_0(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     259    sysarg_t, sysarg_t, sysarg_t);
     260extern errno_t async_req_5_1(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
     261    sysarg_t, sysarg_t, sysarg_t, sysarg_t *);
     262extern 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 *);
     264extern 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 *);
     266extern 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 *);
     269extern errno_t async_req_5_5(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    331270    sysarg_t, sysarg_t, sysarg_t, sysarg_t *, sysarg_t *, sysarg_t *,
    332271    sysarg_t *, sysarg_t *);
     
    358297 */
    359298
    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,
     299extern errno_t async_share_in_start_0_0(async_exch_t *, size_t, void **);
     300extern errno_t async_share_in_start_0_1(async_exch_t *, size_t,
    370301    unsigned int *, void **);
     302extern errno_t async_share_in_start_1_0(async_exch_t *, size_t, sysarg_t,
     303    void **);
     304extern errno_t async_share_in_start_1_1(async_exch_t *, size_t, sysarg_t,
     305    unsigned int *, void **);
     306
    371307extern bool async_share_in_receive(ipc_call_t *, size_t *);
    372308extern errno_t async_share_in_finalize(ipc_call_t *, void *, unsigned int);
     
    376312extern errno_t async_share_out_finalize(ipc_call_t *, void **);
    377313
    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)
     314extern errno_t async_data_read_forward_0_0(async_exch_t *, sysarg_t);
     315extern errno_t async_data_read_forward_1_0(async_exch_t *, sysarg_t, sysarg_t);
     316extern errno_t async_data_read_forward_2_0(async_exch_t *, sysarg_t, sysarg_t,
     317    sysarg_t);
     318extern errno_t async_data_read_forward_3_0(async_exch_t *, sysarg_t, sysarg_t,
     319    sysarg_t, sysarg_t);
     320extern errno_t async_data_read_forward_4_0(async_exch_t *, sysarg_t, sysarg_t,
     321    sysarg_t, sysarg_t, sysarg_t);
     322
     323extern errno_t async_data_read_forward_0_1(async_exch_t *, sysarg_t,
     324    ipc_call_t *);
     325extern errno_t async_data_read_forward_1_1(async_exch_t *, sysarg_t, sysarg_t,
     326    ipc_call_t *);
     327extern errno_t async_data_read_forward_2_1(async_exch_t *, sysarg_t, sysarg_t,
     328    sysarg_t, ipc_call_t *);
     329extern errno_t async_data_read_forward_3_1(async_exch_t *, sysarg_t, sysarg_t,
     330    sysarg_t, sysarg_t, ipc_call_t *);
     331extern 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 *);
    407333
    408334extern aid_t async_data_read(async_exch_t *, void *, size_t, ipc_call_t *);
     
    411337extern errno_t async_data_read_finalize(ipc_call_t *, const void *, size_t);
    412338
    413 extern errno_t async_data_read_forward_fast(async_exch_t *, sysarg_t, sysarg_t,
     339extern errno_t async_data_write_forward_0_0(async_exch_t *, sysarg_t);
     340extern errno_t async_data_write_forward_1_0(async_exch_t *, sysarg_t, sysarg_t);
     341extern errno_t async_data_write_forward_2_0(async_exch_t *, sysarg_t, sysarg_t,
     342    sysarg_t);
     343extern errno_t async_data_write_forward_3_0(async_exch_t *, sysarg_t, sysarg_t,
     344    sysarg_t, sysarg_t);
     345extern errno_t async_data_write_forward_4_0(async_exch_t *, sysarg_t, sysarg_t,
     346    sysarg_t, sysarg_t, sysarg_t);
     347
     348extern errno_t async_data_write_forward_0_1(async_exch_t *, sysarg_t,
     349    ipc_call_t *);
     350extern errno_t async_data_write_forward_1_1(async_exch_t *, sysarg_t, sysarg_t,
     351    ipc_call_t *);
     352extern errno_t async_data_write_forward_2_1(async_exch_t *, sysarg_t, sysarg_t,
     353    sysarg_t, ipc_call_t *);
     354extern errno_t async_data_write_forward_3_1(async_exch_t *, sysarg_t, sysarg_t,
     355    sysarg_t, sysarg_t, ipc_call_t *);
     356extern errno_t async_data_write_forward_4_1(async_exch_t *, sysarg_t, sysarg_t,
    414357    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)
    446358
    447359extern errno_t async_data_write_start(async_exch_t *, const void *, size_t);
     
    452364    const size_t, const size_t, size_t *);
    453365extern 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 *);
    457366
    458367extern async_sess_t *async_callback_receive(exch_mgmt_t);
     
    473382
    474383errno_t async_spawn_notification_handler(void);
    475 fid_t async_create_manager(void);
    476384
    477385#endif
  • uspace/lib/c/include/barrier.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_COMPILER_BARRIER_H_
    36 #define LIBC_COMPILER_BARRIER_H_
     35#ifndef _LIBC_COMPILER_BARRIER_H_
     36#define _LIBC_COMPILER_BARRIER_H_
    3737
    3838#include <stdatomic.h>
     
    6161#define ACCESS_ONCE(var) (*((volatile typeof(var)*)&(var)))
    6262
    63 #endif /* LIBC_COMPILER_BARRIER_H_ */
     63#endif /* _LIBC_COMPILER_BARRIER_H_ */
  • uspace/lib/c/include/bd.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_BD_H_
    36 #define LIBC_BD_H_
     35#ifndef _LIBC_BD_H_
     36#define _LIBC_BD_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/bd_srv.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_BD_SRV_H_
    36 #define LIBC_BD_SRV_H_
     35#ifndef _LIBC_BD_SRV_H_
     36#define _LIBC_BD_SRV_H_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/bitops.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_BITOPS_H_
    36 #define LIBC_BITOPS_H_
     35#ifndef _LIBC_BITOPS_H_
     36#define _LIBC_BITOPS_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/bsearch.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_BSEARCH_H_
    36 #define LIBC_BSEARCH_H_
     35#ifndef _LIBC_BSEARCH_H_
     36#define _LIBC_BSEARCH_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/byteorder.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_BYTEORDER_H_
    36 #define LIBC_BYTEORDER_H_
     35#ifndef _LIBC_BYTEORDER_H_
     36#define _LIBC_BYTEORDER_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/cap.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_CAP_H_
    37 #define LIBC_CAP_H_
     36#ifndef _LIBC_CAP_H_
     37#define _LIBC_CAP_H_
    3838
    3939#include <adt/list.h>
  • uspace/lib/c/include/clipboard.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CLIPBOARD_H_
    36 #define LIBC_CLIPBOARD_H_
     35#ifndef _LIBC_CLIPBOARD_H_
     36#define _LIBC_CLIPBOARD_H_
    3737
    3838extern errno_t clipboard_put_str(const char *);
  • uspace/lib/c/include/config.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CONFIG_H_
    36 #define LIBC_CONFIG_H_
     35#ifndef _LIBC_CONFIG_H_
     36#define _LIBC_CONFIG_H_
    3737
    3838#include <stdbool.h>
  • uspace/lib/c/include/context.h

    re3272101 rd5a89a3  
    2727 */
    2828
    29 #ifndef LIBC_CONTEXT_H_
    30 #define LIBC_CONTEXT_H_
     29#ifndef _LIBC_CONTEXT_H_
     30#define _LIBC_CONTEXT_H_
    3131
    3232#include <_bits/size_t.h>
    3333#include <libarch/fibril_context.h>
     34
     35typedef __context_t context_t;
    3436
    3537/* Context initialization data. */
  • uspace/lib/c/include/corecfg.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CORECFG_H_
    36 #define LIBC_CORECFG_H_
     35#ifndef _LIBC_CORECFG_H_
     36#define _LIBC_CORECFG_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/ctype.h

    re3272101 rd5a89a3  
    2727 */
    2828
    29 /** @addtogroup libc
    30  * @{
    31  */
    32 /** @file
    33  */
     29#ifndef _LIBC_CTYPE_H_
     30#define _LIBC_CTYPE_H_
    3431
    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 }
     32int islower(int);
     33int isupper(int);
     34int isalpha(int);
     35int isdigit(int);
     36int isalnum(int);
     37int isblank(int);
     38int iscntrl(int);
     39int isprint(int);
     40int isgraph(int);
     41int isspace(int);
     42int ispunct(int);
     43int isxdigit(int);
     44int tolower(int);
     45int toupper(int);
    12646
    12747#endif
    128 
    129 /** @}
    130  */
  • uspace/lib/c/include/ddi.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_DDI_H_
    36 #define LIBC_DDI_H_
     35#ifndef _LIBC_DDI_H_
     36#define _LIBC_DDI_H_
    3737
    3838#include <stdbool.h>
  • uspace/lib/c/include/device/clock_dev.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/device/hw_res.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <ipc/dev_iface.h>
  • uspace/lib/c/include/device/hw_res_parsed.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <device/hw_res.h>
  • uspace/lib/c/include/device/led_dev.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/device/pio_window.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <ipc/dev_iface.h>
  • uspace/lib/c/include/devman.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_DEVMAN_H_
    37 #define LIBC_DEVMAN_H_
     36#ifndef _LIBC_DEVMAN_H_
     37#define _LIBC_DEVMAN_H_
    3838
    3939#include <ipc/devman.h>
  • uspace/lib/c/include/dirent.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_DIRENT_H_
    36 #define LIBC_DIRENT_H_
     35#ifndef _LIBC_DIRENT_H_
     36#define _LIBC_DIRENT_H_
    3737
    3838#define NAME_MAX  256
    39 
    40 #include <offset.h>
    4139
    4240struct dirent {
     
    4442};
    4543
    46 typedef struct {
    47         int fd;
    48         struct dirent res;
    49         aoff64_t pos;
    50 } DIR;
     44typedef struct __dirstream DIR;
    5145
    5246extern DIR *opendir(const char *);
  • uspace/lib/c/include/dlfcn.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_DLFCN_H_
    37 #define LIBC_DLFCN_H_
     36#ifndef _LIBC_DLFCN_H_
     37#define _LIBC_DLFCN_H_
    3838
    3939void *dlopen(const char *, int);
  • uspace/lib/c/include/elf/elf.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ELF_H_
    36 #define LIBC_ELF_H_
     35#ifndef _LIBC_ELF_H_
     36#define _LIBC_ELF_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/elf/elf_linux.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ELF_LINUX_H_
    36 #define LIBC_ELF_LINUX_H_
     35#ifndef _LIBC_ELF_LINUX_H_
     36#define _LIBC_ELF_LINUX_H_
    3737
    3838#include <elf/elf.h>
  • uspace/lib/c/include/entry_point.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ENTRY_POINT_H_
    36 #define LIBC_ENTRY_POINT_H_
     35#ifndef _LIBC_ENTRY_POINT_H_
     36#define _LIBC_ENTRY_POINT_H_
    3737
    3838/* Defined in arch/ARCH/src/entryjmp.[c|s] */
  • uspace/lib/c/include/errno.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_ERRNO_H_
    36 #define LIBC_ERRNO_H_
     35#ifndef _LIBC_ERRNO_H_
     36#define _LIBC_ERRNO_H_
    3737
    3838#include <_bits/errno.h>
  • uspace/lib/c/include/fibril.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_FIBRIL_H_
    36 #define LIBC_FIBRIL_H_
     35#ifndef _LIBC_FIBRIL_H_
     36#define _LIBC_FIBRIL_H_
    3737
    3838#include <types/common.h>
    3939#include <time.h>
    4040#include <_bits/__noreturn.h>
    41 #include <ipc/common.h>
    4241
    4342typedef struct fibril fibril_t;
     
    4948typedef fibril_t *fid_t;
    5049
     50#ifndef __cplusplus
    5151/** Fibril-local variable specifier */
    5252#define fibril_local __thread
    53 
    54 #define FIBRIL_DFLT_STK_SIZE    0
     53#endif
    5554
    5655extern fid_t fibril_create_generic(errno_t (*)(void *), void *, size_t);
     56extern fid_t fibril_create(errno_t (*)(void *), void *);
    5757extern void fibril_destroy(fid_t);
    5858extern void fibril_add_ready(fid_t);
     
    6868extern void fibril_detach(fid_t fid);
    6969
    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 
    7570extern void fibril_start(fid_t);
    7671extern __noreturn void fibril_exit(long);
  • uspace/lib/c/include/fibril_synch.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_FIBRIL_SYNCH_H_
    36 #define LIBC_FIBRIL_SYNCH_H_
     35#ifndef _LIBC_FIBRIL_SYNCH_H_
     36#define _LIBC_FIBRIL_SYNCH_H_
    3737
    3838#include <fibril.h>
    3939#include <adt/list.h>
    40 #include <tls.h>
    4140#include <time.h>
    4241#include <stdbool.h>
     
    5453                }, \
    5554                .counter = 1, \
    56                 .waiters = { \
    57                         .head = { \
    58                                 .prev = &(name).waiters.head, \
    59                                 .next = &(name).waiters.head, \
    60                         } \
    61                 } \
     55                .waiters = LIST_INITIALIZER((name).waiters), \
    6256        }
    6357
     
    7973                .readers = 0, \
    8074                .writers = 0, \
    81                 .waiters = { \
    82                         .head = { \
    83                                 .prev = &(name).waiters.head, \
    84                                 .next = &(name).waiters.head, \
    85                         } \
    86                 } \
     75                .waiters = LIST_INITIALIZER((name).waiters), \
    8776        }
    8877
     
    9685#define FIBRIL_CONDVAR_INITIALIZER(name) \
    9786        { \
    98                 .waiters = { \
    99                         .head = { \
    100                                 .next = &(name).waiters.head, \
    101                                 .prev = &(name).waiters.head, \
    102                         } \
    103                 } \
     87                .waiters = LIST_INITIALIZER((name).waiters), \
    10488        }
    10589
     
    153137        { \
    154138                .count = (cnt), \
    155                 .waiters = { \
    156                         .head = { \
    157                                 .next = &(name).waiters.head, \
    158                                 .prev = &(name).waiters.head, \
    159                         } \
    160                 } \
     139                .waiters = LIST_INITIALIZER((name).waiters), \
    161140        }
    162141
  • uspace/lib/c/include/fourcc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_FOURCC_H_
    36 #define LIBC_FOURCC_H_
     35#ifndef _LIBC_FOURCC_H_
     36#define _LIBC_FOURCC_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/gsort.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_SORT_H_
    36 #define LIBC_SORT_H_
     35#ifndef _LIBC_SORT_H_
     36#define _LIBC_SORT_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/ieee80211/ieee80211.h

    re3272101 rd5a89a3  
    3535 */
    3636
    37 #ifndef LIBC_IEEE80211_H_
    38 #define LIBC_IEEE80211_H_
     37#ifndef _LIBC_IEEE80211_H_
     38#define _LIBC_IEEE80211_H_
    3939
    4040#include <adt/list.h>
  • uspace/lib/c/include/imath.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IMATH_H_
    37 #define LIBC_IMATH_H_
     36#ifndef _LIBC_IMATH_H_
     37#define _LIBC_IMATH_H_
    3838
    3939#include <stdint.h>
  • uspace/lib/c/include/inet/addr.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_ADDR_H_
    36 #define LIBC_INET_ADDR_H_
     35#ifndef _LIBC_INET_ADDR_H_
     36#define _LIBC_INET_ADDR_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/inet/dhcp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_DHCP_H_
    36 #define LIBC_INET_DHCP_H_
     35#ifndef _LIBC_INET_DHCP_H_
     36#define _LIBC_INET_DHCP_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/inet/dnsr.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_DNSR_H_
    36 #define LIBC_INET_DNSR_H_
     35#ifndef _LIBC_INET_DNSR_H_
     36#define _LIBC_INET_DNSR_H_
    3737
    3838#include <inet/inet.h>
  • uspace/lib/c/include/inet/endpoint.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_ENDPOINT_H_
    36 #define LIBC_INET_ENDPOINT_H_
     35#ifndef _LIBC_INET_ENDPOINT_H_
     36#define _LIBC_INET_ENDPOINT_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/inet/host.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_HOST_H_
    36 #define LIBC_INET_HOST_H_
     35#ifndef _LIBC_INET_HOST_H_
     36#define _LIBC_INET_HOST_H_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/inet/hostname.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_HOSTNAME_H_
    36 #define LIBC_INET_HOSTNAME_H_
     35#ifndef _LIBC_INET_HOSTNAME_H_
     36#define _LIBC_INET_HOSTNAME_H_
    3737
    3838extern errno_t inet_hostname_parse(const char *, char **, char **);
  • uspace/lib/c/include/inet/hostport.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_HOSTPORT_H_
    36 #define LIBC_INET_HOSTPORT_H_
     35#ifndef _LIBC_INET_HOSTPORT_H_
     36#define _LIBC_INET_HOSTPORT_H_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/inet/inet.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_INET_H_
    36 #define LIBC_INET_INET_H_
     35#ifndef _LIBC_INET_INET_H_
     36#define _LIBC_INET_INET_H_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/inet/inetcfg.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_INETCFG_H_
    36 #define LIBC_INET_INETCFG_H_
     35#ifndef _LIBC_INET_INETCFG_H_
     36#define _LIBC_INET_INETCFG_H_
    3737
    3838#include <inet/inet.h>
  • uspace/lib/c/include/inet/inetping.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_INETPING_H_
    36 #define LIBC_INET_INETPING_H_
     35#ifndef _LIBC_INET_INETPING_H_
     36#define _LIBC_INET_INETPING_H_
    3737
    3838#include <inet/inet.h>
  • uspace/lib/c/include/inet/iplink.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_IPLINK_H_
    36 #define LIBC_INET_IPLINK_H_
     35#ifndef _LIBC_INET_IPLINK_H_
     36#define _LIBC_INET_IPLINK_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/inet/iplink_srv.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/inet/tcp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_TCP_H_
    36 #define LIBC_INET_TCP_H_
     35#ifndef _LIBC_INET_TCP_H_
     36#define _LIBC_INET_TCP_H_
    3737
    3838#include <fibril_synch.h>
  • uspace/lib/c/include/inet/udp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_INET_UDP_H_
    36 #define LIBC_INET_UDP_H_
     35#ifndef _LIBC_INET_UDP_H_
     36#define _LIBC_INET_UDP_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/io/chardev.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IO_CHARDEV_H_
    34 #define LIBC_IO_CHARDEV_H_
     33#ifndef _LIBC_IO_CHARDEV_H_
     34#define _LIBC_IO_CHARDEV_H_
    3535
    3636#include <async.h>
  • uspace/lib/c/include/io/chardev_srv.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/io/charfield.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IO_CHARFIELD_H_
    37 #define LIBC_IO_CHARFIELD_H_
     36#ifndef _LIBC_IO_CHARFIELD_H_
     37#define _LIBC_IO_CHARFIELD_H_
    3838
    3939#include <stdbool.h>
  • uspace/lib/c/include/io/chargrid.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IO_CHARGRID_H_
    37 #define LIBC_IO_CHARGRID_H_
     36#ifndef _LIBC_IO_CHARGRID_H_
     37#define _LIBC_IO_CHARGRID_H_
    3838
    3939#include <io/charfield.h>
  • uspace/lib/c/include/io/color.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_COLOR_H_
    36 #define LIBC_IO_COLOR_H_
     35#ifndef _LIBC_IO_COLOR_H_
     36#define _LIBC_IO_COLOR_H_
    3737
    3838typedef enum {
  • uspace/lib/c/include/io/con_srv.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_CON_SRV_H_
    36 #define LIBC_CON_SRV_H_
     35#ifndef _LIBC_CON_SRV_H_
     36#define _LIBC_CON_SRV_H_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/io/concaps.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_CONCAPS_H_
    36 #define LIBC_IO_CONCAPS_H_
     35#ifndef _LIBC_IO_CONCAPS_H_
     36#define _LIBC_IO_CONCAPS_H_
    3737
    3838typedef enum {
  • uspace/lib/c/include/io/cons_event.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/io/console.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_CONSOLE_H_
    36 #define LIBC_IO_CONSOLE_H_
     35#ifndef _LIBC_IO_CONSOLE_H_
     36#define _LIBC_IO_CONSOLE_H_
    3737
    3838#include <time.h>
  • uspace/lib/c/include/io/input.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_INPUT_H_
    36 #define LIBC_IO_INPUT_H_
     35#ifndef _LIBC_IO_INPUT_H_
     36#define _LIBC_IO_INPUT_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/io/kbd_event.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/io/keycode.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_KEYCODE_H_
    36 #define LIBC_IO_KEYCODE_H_
     35#ifndef _LIBC_IO_KEYCODE_H_
     36#define _LIBC_IO_KEYCODE_H_
    3737
    3838/** Keycode definitions.
  • uspace/lib/c/include/io/kio.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_KIO_H_
    36 #define LIBC_IO_KIO_H_
     35#ifndef _LIBC_IO_KIO_H_
     36#define _LIBC_IO_KIO_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/io/klog.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_KLOG_H_
    36 #define LIBC_IO_KLOG_H_
     35#ifndef _LIBC_IO_KLOG_H_
     36#define _LIBC_IO_KLOG_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/io/label.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_LABEL_H_
    36 #define LIBC_IO_LABEL_H_
     35#ifndef _LIBC_IO_LABEL_H_
     36#define _LIBC_IO_LABEL_H_
    3737
    3838#include <types/label.h>
  • uspace/lib/c/include/io/log.h

    re3272101 rd5a89a3  
    3232 */
    3333
    34 #ifndef LIBC_IO_LOG_H_
    35 #define LIBC_IO_LOG_H_
     34#ifndef _LIBC_IO_LOG_H_
     35#define _LIBC_IO_LOG_H_
    3636
    3737#include <stdarg.h>
  • uspace/lib/c/include/io/logctl.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IO_LOGCTL_H_
    34 #define LIBC_IO_LOGCTL_H_
     33#ifndef _LIBC_IO_LOGCTL_H_
     34#define _LIBC_IO_LOGCTL_H_
    3535
    3636#include <io/log.h>
  • uspace/lib/c/include/io/mode.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IO_MODE_H_
    37 #define LIBC_IO_MODE_H_
     36#ifndef _LIBC_IO_MODE_H_
     37#define _LIBC_IO_MODE_H_
    3838
    3939#include <abi/fb/visuals.h>
  • uspace/lib/c/include/io/output.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_OUTPUT_H_
    36 #define LIBC_IO_OUTPUT_H_
     35#ifndef _LIBC_IO_OUTPUT_H_
     36#define _LIBC_IO_OUTPUT_H_
    3737
    3838#include <ipc/output.h>
  • uspace/lib/c/include/io/pixel.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IO_PIXEL_H_
    37 #define LIBC_IO_PIXEL_H_
     36#ifndef _LIBC_IO_PIXEL_H_
     37#define _LIBC_IO_PIXEL_H_
    3838
    3939#include <stdint.h>
  • uspace/lib/c/include/io/pixelmap.h

    re3272101 rd5a89a3  
    3535 */
    3636
    37 #ifndef LIBC_IO_PIXELMAP_H_
    38 #define LIBC_IO_PIXELMAP_H_
     37#ifndef _LIBC_IO_PIXELMAP_H_
     38#define _LIBC_IO_PIXELMAP_H_
    3939
    4040#include <types/common.h>
  • uspace/lib/c/include/io/pos_event.h

    re3272101 rd5a89a3  
    3434 */
    3535
    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_
    3838
    3939#include <types/common.h>
  • uspace/lib/c/include/io/printf_core.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_PRINTF_CORE_H_
    36 #define LIBC_PRINTF_CORE_H_
     35#ifndef _LIBC_PRINTF_CORE_H_
     36#define _LIBC_PRINTF_CORE_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/io/serial.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_SERIAL_H_
    36 #define LIBC_IO_SERIAL_H_
     35#ifndef _LIBC_IO_SERIAL_H_
     36#define _LIBC_IO_SERIAL_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/io/style.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_STYLE_H_
    36 #define LIBC_IO_STYLE_H_
     35#ifndef _LIBC_IO_STYLE_H_
     36#define _LIBC_IO_STYLE_H_
    3737
    3838typedef enum {
  • uspace/lib/c/include/io/table.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_TABLE_H_
    36 #define LIBC_IO_TABLE_H_
     35#ifndef _LIBC_IO_TABLE_H_
     36#define _LIBC_IO_TABLE_H_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/io/verify.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_VERIFY_H_
    36 #define LIBC_IO_VERIFY_H_
     35#ifndef _LIBC_IO_VERIFY_H_
     36#define _LIBC_IO_VERIFY_H_
    3737
    3838#ifdef __clang__
  • uspace/lib/c/include/io/visualizer.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_VISUALIZER_H_
    36 #define LIBC_IO_VISUALIZER_H_
     35#ifndef _LIBC_IO_VISUALIZER_H_
     36#define _LIBC_IO_VISUALIZER_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/io/window.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IO_WINDOW_H_
    36 #define LIBC_IO_WINDOW_H_
     35#ifndef _LIBC_IO_WINDOW_H_
     36#define _LIBC_IO_WINDOW_H_
    3737
    3838#include <stdbool.h>
  • uspace/lib/c/include/ipc/adb.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IPC_ADB_H_
    37 #define LIBC_IPC_ADB_H_
     36#ifndef _LIBC_IPC_ADB_H_
     37#define _LIBC_IPC_ADB_H_
    3838
    3939#include <ipc/common.h>
  • uspace/lib/c/include/ipc/bd.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_BD_H_
    36 #define LIBC_IPC_BD_H_
     35#ifndef _LIBC_IPC_BD_H_
     36#define _LIBC_IPC_BD_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/chardev.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IPC_CHARDEV_H_
    37 #define LIBC_IPC_CHARDEV_H_
     36#ifndef _LIBC_IPC_CHARDEV_H_
     37#define _LIBC_IPC_CHARDEV_H_
    3838
    3939#include <ipc/common.h>
  • uspace/lib/c/include/ipc/clipboard.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_CLIPBOARD_H_
    36 #define LIBC_IPC_CLIPBOARD_H_
     35#ifndef _LIBC_IPC_CLIPBOARD_H_
     36#define _LIBC_IPC_CLIPBOARD_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/common.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_COMMON_H_
    36 #define LIBC_IPC_COMMON_H_
     35#ifndef _LIBC_IPC_COMMON_H_
     36#define _LIBC_IPC_COMMON_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/ipc/console.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_CONSOLE_H_
    36 #define LIBC_IPC_CONSOLE_H_
     35#ifndef _LIBC_IPC_CONSOLE_H_
     36#define _LIBC_IPC_CONSOLE_H_
    3737
    3838#include <ipc/vfs.h>
  • uspace/lib/c/include/ipc/corecfg.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_CORECFG_H_
    34 #define LIBC_IPC_CORECFG_H_
     33#ifndef _LIBC_IPC_CORECFG_H_
     34#define _LIBC_IPC_CORECFG_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/dev_iface.h

    re3272101 rd5a89a3  
    2727 */
    2828
    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_
    3131
    3232#include <stdlib.h>
  • uspace/lib/c/include/ipc/devman.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_DEVMAN_H_
    34 #define LIBC_IPC_DEVMAN_H_
     33#ifndef _LIBC_IPC_DEVMAN_H_
     34#define _LIBC_IPC_DEVMAN_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/dhcp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_DHCP_H_
    36 #define LIBC_IPC_DHCP_H_
     35#ifndef _LIBC_IPC_DHCP_H_
     36#define _LIBC_IPC_DHCP_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/dnsr.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_DNSR_H_
    34 #define LIBC_IPC_DNSR_H_
     33#ifndef _LIBC_IPC_DNSR_H_
     34#define _LIBC_IPC_DNSR_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/event.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_EVENT_H_
    36 #define LIBC_IPC_EVENT_H_
     35#ifndef _LIBC_IPC_EVENT_H_
     36#define _LIBC_IPC_EVENT_H_
    3737
    3838#include <abi/ipc/event.h>
  • uspace/lib/c/include/ipc/graph.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_GRAPH_H_
    36 #define LIBC_IPC_GRAPH_H_
     35#ifndef _LIBC_IPC_GRAPH_H_
     36#define _LIBC_IPC_GRAPH_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/inet.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_INET_H_
    36 #define LIBC_IPC_INET_H_
     35#ifndef _LIBC_IPC_INET_H_
     36#define _LIBC_IPC_INET_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/input.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_INPUT_H_
    36 #define LIBC_IPC_INPUT_H_
     35#ifndef _LIBC_IPC_INPUT_H_
     36#define _LIBC_IPC_INPUT_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/ipc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #if ((defined(LIBC_ASYNC_H_)) && (!defined(LIBC_ASYNC_C_)))
     35#if ((defined(_LIBC_ASYNC_H_)) && (!defined(_LIBC_ASYNC_C_)))
    3636#error Do not intermix low-level IPC interface and async framework
    3737#endif
    3838
    39 #ifndef LIBC_IPC_H_
    40 #define LIBC_IPC_H_
     39#ifndef _LIBC_IPC_H_
     40#define _LIBC_IPC_H_
    4141
    4242#include <ipc/common.h>
  • uspace/lib/c/include/ipc/ipc_test.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/iplink.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_IPLINK_H_
    36 #define LIBC_IPC_IPLINK_H_
     35#ifndef _LIBC_IPC_IPLINK_H_
     36#define _LIBC_IPC_IPLINK_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/irc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_IRC_H_
    36 #define LIBC_IPC_IRC_H_
     35#ifndef _LIBC_IPC_IRC_H_
     36#define _LIBC_IPC_IRC_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/irq.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_IRQ_H_
    36 #define LIBC_IPC_IRQ_H_
     35#ifndef _LIBC_IPC_IRQ_H_
     36#define _LIBC_IPC_IRQ_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/ipc/kbdev.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_KBDEV_H_
    36 #define LIBC_IPC_KBDEV_H_
     35#ifndef _LIBC_IPC_KBDEV_H_
     36#define _LIBC_IPC_KBDEV_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/loader.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_LOADER_H_
    36 #define LIBC_IPC_LOADER_H_
     35#ifndef _LIBC_IPC_LOADER_H_
     36#define _LIBC_IPC_LOADER_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/loc.h

    re3272101 rd5a89a3  
    3232 */
    3333
    34 #ifndef LIBC_IPC_LOC_H_
    35 #define LIBC_IPC_LOC_H_
     34#ifndef _LIBC_IPC_LOC_H_
     35#define _LIBC_IPC_LOC_H_
    3636
    3737#include <ipc/common.h>
  • uspace/lib/c/include/ipc/logger.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_LOGGER_H_
    34 #define LIBC_IPC_LOGGER_H_
     33#ifndef _LIBC_IPC_LOGGER_H_
     34#define _LIBC_IPC_LOGGER_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/mouseev.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_IPC_MOUSEEV_H_
    37 #define LIBC_IPC_MOUSEEV_H_
     36#ifndef _LIBC_IPC_MOUSEEV_H_
     37#define _LIBC_IPC_MOUSEEV_H_
    3838
    3939#include <ipc/common.h>
  • uspace/lib/c/include/ipc/ns.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_NS_H_
    36 #define LIBC_IPC_NS_H_
     35#ifndef _LIBC_IPC_NS_H_
     36#define _LIBC_IPC_NS_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/output.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_OUTPUT_H_
    36 #define LIBC_IPC_OUTPUT_H_
     35#ifndef _LIBC_IPC_OUTPUT_H_
     36#define _LIBC_IPC_OUTPUT_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/pci.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_PCI_H_
    36 #define LIBC_IPC_PCI_H_
     35#ifndef _LIBC_IPC_PCI_H_
     36#define _LIBC_IPC_PCI_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/serial_ctl.h

    re3272101 rd5a89a3  
    2727 */
    2828
    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_
    3131
    3232#include <ipc/chardev.h>
  • uspace/lib/c/include/ipc/services.h

    re3272101 rd5a89a3  
    3535 */
    3636
    37 #ifndef LIBC_SERVICES_H_
    38 #define LIBC_SERVICES_H_
     37#ifndef _LIBC_SERVICES_H_
     38#define _LIBC_SERVICES_H_
    3939
    4040#include <abi/fourcc.h>
  • uspace/lib/c/include/ipc/tcp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_TCP_H_
    36 #define LIBC_IPC_TCP_H_
     35#ifndef _LIBC_IPC_TCP_H_
     36#define _LIBC_IPC_TCP_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/udp.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_UDP_H_
    36 #define LIBC_IPC_UDP_H_
     35#ifndef _LIBC_IPC_UDP_H_
     36#define _LIBC_IPC_UDP_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/vbd.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_VBD_H_
    34 #define LIBC_IPC_VBD_H_
     33#ifndef _LIBC_IPC_VBD_H_
     34#define _LIBC_IPC_VBD_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/vfs.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_VFS_H_
    36 #define LIBC_IPC_VFS_H_
     35#ifndef _LIBC_IPC_VFS_H_
     36#define _LIBC_IPC_VFS_H_
    3737
    3838#include <ipc/common.h>
  • uspace/lib/c/include/ipc/vol.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_IPC_VOL_H_
    34 #define LIBC_IPC_VOL_H_
     33#ifndef _LIBC_IPC_VOL_H_
     34#define _LIBC_IPC_VOL_H_
    3535
    3636#include <ipc/common.h>
  • uspace/lib/c/include/ipc/window.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_WINDOW_H_
    36 #define LIBC_IPC_WINDOW_H_
     35#ifndef _LIBC_IPC_WINDOW_H_
     36#define _LIBC_IPC_WINDOW_H_
    3737
    3838#include <ipc/vfs.h>
  • uspace/lib/c/include/ipc_test.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IPC_TEST_H_
    36 #define LIBC_IPC_TEST_H_
     35#ifndef _LIBC_IPC_TEST_H_
     36#define _LIBC_IPC_TEST_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/irc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_IRC_H_
    36 #define LIBC_IRC_H_
     35#ifndef _LIBC_IRC_H_
     36#define _LIBC_IRC_H_
    3737
    3838extern errno_t irc_enable_interrupt(int);
  • uspace/lib/c/include/l18n/langs.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_L18N_LANGS_H_
    37 #define LIBC_L18N_LANGS_H_
     36#ifndef _LIBC_L18N_LANGS_H_
     37#define _LIBC_L18N_LANGS_H_
    3838
    3939/** Windows locale IDs.
  • uspace/lib/c/include/libc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_LIBC_H_
    36 #define LIBC_LIBC_H_
     35#ifndef _LIBC_LIBC_H_
     36#define _LIBC_LIBC_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/loader/loader.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_LOADER_H_
    37 #define LIBC_LOADER_H_
     36#ifndef _LIBC_LOADER_H_
     37#define _LIBC_LOADER_H_
    3838
    3939#include <abi/proc/task.h>
  • uspace/lib/c/include/loader/pcb.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_PCB_H_
    37 #define LIBC_PCB_H_
     36#ifndef _LIBC_PCB_H_
     37#define _LIBC_PCB_H_
    3838
    3939#include <tls.h>
  • uspace/lib/c/include/loc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_LOC_H_
    36 #define LIBC_LOC_H_
     35#ifndef _LIBC_LOC_H_
     36#define _LIBC_LOC_H_
    3737
    3838#include <ipc/loc.h>
  • uspace/lib/c/include/macros.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_MACROS_H_
    36 #define LIBC_MACROS_H_
     35#ifndef _LIBC_MACROS_H_
     36#define _LIBC_MACROS_H_
    3737
    3838#define min(a, b)  ((a) < (b) ? (a) : (b))
  • uspace/lib/c/include/malloc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_MALLOC_H_
    36 #define LIBC_MALLOC_H_
     35#ifndef _LIBC_MALLOC_H_
     36#define _LIBC_MALLOC_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/mem.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_MEM_H_
    37 #define LIBC_MEM_H_
     36#ifndef _LIBC_MEM_H_
     37#define _LIBC_MEM_H_
    3838
    3939#include <stddef.h>
    40 #include <cc.h>
    4140
    4241extern void *memset(void *, int, size_t)
    43     __attribute__((nonnull(1)))
    44     ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
     42    __attribute__((nonnull(1)));
    4543extern 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)));
    4845extern void *memmove(void *, const void *, size_t)
    4946    __attribute__((nonnull(1, 2)));
  • uspace/lib/c/include/nic/eth_phys.h

    re3272101 rd5a89a3  
    2828 */
    2929
    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_
    3232
    3333#include <stdint.h>
  • uspace/lib/c/include/nic/nic.h

    re3272101 rd5a89a3  
    3636 */
    3737
    38 #ifndef LIBC_NIC_H_
    39 #define LIBC_NIC_H_
     38#ifndef _LIBC_NIC_H_
     39#define _LIBC_NIC_H_
    4040
    4141#include <nic/eth_phys.h>
  • uspace/lib/c/include/ns.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_NS_H_
    36 #define LIBC_NS_H_
     35#ifndef _LIBC_NS_H_
     36#define _LIBC_NS_H_
    3737
    3838#include <ipc/services.h>
  • uspace/lib/c/include/offset.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_OFFSET_H_
    36 #define LIBC_OFFSET_H_
     35#ifndef _LIBC_OFFSET_H_
     36#define _LIBC_OFFSET_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/pci.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_PCI_H_
    36 #define LIBC_PCI_H_
     35#ifndef _LIBC_PCI_H_
     36#define _LIBC_PCI_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/qsort.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_QSORT_H_
    36 #define LIBC_QSORT_H_
     35#ifndef _LIBC_QSORT_H_
     36#define _LIBC_QSORT_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/refcount.h

    re3272101 rd5a89a3  
    3737 */
    3838
    39 #ifndef LIBC_REFCOUNT_H_
    40 #define LIBC_REFCOUNT_H_
     39#ifndef _LIBC_REFCOUNT_H_
     40#define _LIBC_REFCOUNT_H_
    4141
    4242#include <assert.h>
  • uspace/lib/c/include/rndgen.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_RNDGEN_H_
    36 #define LIBC_RNDGEN_H_
     35#ifndef _LIBC_RNDGEN_H_
     36#define _LIBC_RNDGEN_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/rtld/dynamic.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_RTLD_DYNAMIC_H_
    36 #define LIBC_RTLD_DYNAMIC_H_
     35#ifndef _LIBC_RTLD_DYNAMIC_H_
     36#define _LIBC_RTLD_DYNAMIC_H_
    3737
    3838#include <stdbool.h>
  • uspace/lib/c/include/rtld/elf_dyn.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <elf/elf.h>
  • uspace/lib/c/include/rtld/module.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_RTLD_MODULE_H_
    36 #define LIBC_RTLD_MODULE_H_
     35#ifndef _LIBC_RTLD_MODULE_H_
     36#define _LIBC_RTLD_MODULE_H_
    3737
    3838#include <rtld/dynamic.h>
  • uspace/lib/c/include/rtld/rtld.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_RTLD_H_
    36 #define LIBC_RTLD_H_
     35#ifndef _LIBC_RTLD_H_
     36#define _LIBC_RTLD_H_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/rtld/rtld_arch.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <rtld/rtld.h>
  • uspace/lib/c/include/rtld/rtld_debug.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <stdio.h>
  • uspace/lib/c/include/rtld/symbol.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_RTLD_SYMBOL_H_
    36 #define LIBC_RTLD_SYMBOL_H_
     35#ifndef _LIBC_RTLD_SYMBOL_H_
     36#define _LIBC_RTLD_SYMBOL_H_
    3737
    3838#include <elf/elf.h>
  • uspace/lib/c/include/setjmp.h

    re3272101 rd5a89a3  
    3131 */
    3232
    33 #ifndef LIBC_SETJMP_H_
    34 #define LIBC_SETJMP_H_
     33#ifndef _LIBC_SETJMP_H_
     34#define _LIBC_SETJMP_H_
    3535
    3636#ifdef __cplusplus
     
    4141#include <_bits/__noreturn.h>
    4242
    43 typedef context_t jmp_buf[1];
     43typedef __context_t jmp_buf[1];
    4444
    45 extern int __setjmp(jmp_buf) __attribute__((returns_twice));
    46 extern __noreturn void __longjmp(jmp_buf, int);
     45extern int __context_save(__context_t *) __attribute__((returns_twice));
     46extern __noreturn void __context_restore(__context_t *, int);
    4747
    48 #define setjmp __setjmp
     48#define setjmp __context_save
    4949extern __noreturn void longjmp(jmp_buf, int);
    5050
  • uspace/lib/c/include/smc.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_SMC_H_
    36 #define LIBC_SMC_H_
     35#ifndef _LIBC_SMC_H_
     36#define _LIBC_SMC_H_
    3737
     38#include <errno.h>
    3839#include <stddef.h>
    3940
  • uspace/lib/c/include/stack.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_STACK_H_
    36 #define LIBC_STACK_H_
     35#ifndef _LIBC_STACK_H_
     36#define _LIBC_STACK_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/stacktrace.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_STACKTRACE_H_
    37 #define LIBC_STACKTRACE_H_
     36#ifndef _LIBC_STACKTRACE_H_
     37#define _LIBC_STACKTRACE_H_
    3838
    3939#include <errno.h>
  • uspace/lib/c/include/stats.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_STATS_H_
    36 #define LIBC_STATS_H_
     35#ifndef _LIBC_STATS_H_
     36#define _LIBC_STATS_H_
    3737
    3838#include <task.h>
  • uspace/lib/c/include/stdio.h

    re3272101 rd5a89a3  
    3434 */
    3535
    36 #ifndef LIBC_STDIO_H_
    37 #define LIBC_STDIO_H_
     36#ifndef _LIBC_STDIO_H_
     37#define _LIBC_STDIO_H_
    3838
    3939#ifdef __cplusplus
     
    204204};
    205205
    206 extern int vprintf_size(const char *, va_list);
    207 extern int printf_size(const char *, ...)
     206extern int vprintf_length(const char *, va_list);
     207extern int printf_length(const char *, ...)
    208208    _HELENOS_PRINTF_ATTRIBUTE(1, 2);
    209209extern FILE *fdopen(int, const char *);
  • uspace/lib/c/include/stdlib.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_STDLIB_H_
    36 #define LIBC_STDLIB_H_
     35#ifndef _LIBC_STDLIB_H_
     36#define _LIBC_STDLIB_H_
    3737
    3838#ifdef __cplusplus
  • uspace/lib/c/include/str.h

    re3272101 rd5a89a3  
    11/*
     2 * Copyright (c) 2001-2004 Jakub Jermar
    23 * Copyright (c) 2005 Martin Decky
    34 * Copyright (c) 2011 Oleg Romanenko
     
    3435 */
    3536
    36 #ifndef LIBC_STR_H_
    37 #define LIBC_STR_H_
     37#ifndef _LIBC_STR_H_
     38#define _LIBC_STR_H_
    3839
    3940#ifdef __cplusplus
     
    4243
    4344#include <errno.h>
    44 #include <mem.h>
     45#include <stdbool.h>
    4546#include <stddef.h>
    4647#include <stdint.h>
    47 #include <stdbool.h>
    4848
    49 #define U_SPECIAL  '?'
     49#include <mem.h>
     50
     51/* Common Unicode characters */
     52#define U_SPECIAL      '?'
    5053
    5154/** No size limit constant */
     
    6366extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    6467extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz);
    65 extern errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
     68extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
    6669
    6770extern size_t str_size(const char *str);
     
    116119extern bool wstr_remove(wchar_t *str, size_t pos);
    117120
    118 extern char *str_dup(const char *);
    119 extern char *str_ndup(const char *, size_t max_size);
     121extern char *str_dup(const char *src);
     122extern char *str_ndup(const char *src, size_t n);
    120123
    121124extern char *str_tok(char *, const char *, char **);
  • uspace/lib/c/include/str_error.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_STRERROR_H_
    36 #define LIBC_STRERROR_H_
     35#ifndef _LIBC_STRERROR_H_
     36#define _LIBC_STRERROR_H_
    3737
    3838#include <errno.h>
  • uspace/lib/c/include/string.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_STRING_H_
    36 #define LIBC_STRING_H_
     35#ifndef _LIBC_STRING_H_
     36#define _LIBC_STRING_H_
    3737
    3838#if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H) && \
  • uspace/lib/c/include/syscall.h

    re3272101 rd5a89a3  
    3737 */
    3838
    39 #ifndef LIBC_SYSCALL_H_
    40 #define LIBC_SYSCALL_H_
     39#ifndef _LIBC_SYSCALL_H_
     40#define _LIBC_SYSCALL_H_
    4141
    4242#ifndef LIBARCH_SYSCALL_GENERIC
  • uspace/lib/c/include/sysinfo.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_SYSINFO_H_
    36 #define LIBC_SYSINFO_H_
     35#ifndef _LIBC_SYSINFO_H_
     36#define _LIBC_SYSINFO_H_
    3737
    3838#include <types/common.h>
  • uspace/lib/c/include/task.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TASK_H_
    36 #define LIBC_TASK_H_
     35#ifndef _LIBC_TASK_H_
     36#define _LIBC_TASK_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/time.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TIME_H_
    36 #define LIBC_TIME_H_
     35#ifndef _LIBC_TIME_H_
     36#define _LIBC_TIME_H_
    3737
    3838#ifdef __cplusplus
     
    6464struct tm {
    6565        int tm_sec;
    66 #ifdef _HELENOS_SOURCE
    67         int tm_nsec;
    68 #endif
     66        int tm_nsec;  /**< Nonstandard extension, nanoseconds since last second. */
    6967        int tm_min;
    7068        int tm_hour;
  • uspace/lib/c/include/tls.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TLS_H_
    36 #define LIBC_TLS_H_
     35#ifndef _LIBC_TLS_H_
     36#define _LIBC_TLS_H_
    3737
    3838#include <libarch/tls.h>
  • uspace/lib/c/include/tmpfile.h

    re3272101 rd5a89a3  
    2727 */
    2828
    29 #ifndef LIBC_TMPFILE_H_
    30 #define LIBC_TMPFILE_H_
     29#ifndef _LIBC_TMPFILE_H_
     30#define _LIBC_TMPFILE_H_
    3131
    3232#include <stdbool.h>
  • uspace/lib/c/include/trace.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TRACE_H_
    36 #define LIBC_TRACE_H_
     35#ifndef _LIBC_TRACE_H_
     36#define _LIBC_TRACE_H_
    3737
    38 #define NO_TRACE  __attribute__((no_instrument_function))
     38#define _NO_TRACE  __attribute__((no_instrument_function))
    3939
    4040#endif
  • uspace/lib/c/include/types/common.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_COMMON_H_
    36 #define LIBC_TYPES_COMMON_H_
     35#ifndef _LIBC_TYPES_COMMON_H_
     36#define _LIBC_TYPES_COMMON_H_
    3737
    3838#if __SIZEOF_POINTER__ == 4
  • uspace/lib/c/include/types/inet.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_INET_H_
    36 #define LIBC_TYPES_INET_H_
     35#ifndef _LIBC_TYPES_INET_H_
     36#define _LIBC_TYPES_INET_H_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/types/inet/host.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/types/inet/hostport.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <inet/addr.h>
  • uspace/lib/c/include/types/inetcfg.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_INETCFG_H_
    36 #define LIBC_TYPES_INETCFG_H_
     35#ifndef _LIBC_TYPES_INETCFG_H_
     36#define _LIBC_TYPES_INETCFG_H_
    3737
    3838#include <inet/inet.h>
  • uspace/lib/c/include/types/inetping.h

    re3272101 rd5a89a3  
    3535 */
    3636
    37 #ifndef LIBC_TYPES_INETPING_H_
    38 #define LIBC_TYPES_INETPING_H_
     37#ifndef _LIBC_TYPES_INETPING_H_
     38#define _LIBC_TYPES_INETPING_H_
    3939
    4040#include <inet/addr.h>
  • uspace/lib/c/include/types/io/chardev.h

    re3272101 rd5a89a3  
    3030 */
    3131
    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_
    3434
    3535/** Chardev read/write operation flags */
  • uspace/lib/c/include/types/label.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_LABEL_H_
    36 #define LIBC_TYPES_LABEL_H_
     35#ifndef _LIBC_TYPES_LABEL_H_
     36#define _LIBC_TYPES_LABEL_H_
    3737
    3838#include <types/uuid.h>
  • uspace/lib/c/include/types/pci.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_PCI_H_
    36 #define LIBC_TYPES_PCI_H_
     35#ifndef _LIBC_TYPES_PCI_H_
     36#define _LIBC_TYPES_PCI_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/types/rtld/module.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/types/rtld/rtld.h

    re3272101 rd5a89a3  
    3333 */
    3434
    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_
    3737
    3838#include <adt/list.h>
  • uspace/lib/c/include/types/task.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_TASK_H_
    36 #define LIBC_TYPES_TASK_H_
     35#ifndef _LIBC_TYPES_TASK_H_
     36#define _LIBC_TYPES_TASK_H_
    3737
    3838typedef enum {
  • uspace/lib/c/include/types/uuid.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_UUID_H_
    36 #define LIBC_TYPES_UUID_H_
     35#ifndef _LIBC_TYPES_UUID_H_
     36#define _LIBC_TYPES_UUID_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/types/vol.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_TYPES_VOL_H_
    36 #define LIBC_TYPES_VOL_H_
     35#ifndef _LIBC_TYPES_VOL_H_
     36#define _LIBC_TYPES_VOL_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/udebug.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_UDEBUG_H_
    36 #define LIBC_UDEBUG_H_
     35#ifndef _LIBC_UDEBUG_H_
     36#define _LIBC_UDEBUG_H_
    3737
    3838#include <abi/udebug.h>
  • uspace/lib/c/include/unaligned.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_UNALIGNED_H_
    36 #define LIBC_UNALIGNED_H_
     35#ifndef _LIBC_UNALIGNED_H_
     36#define _LIBC_UNALIGNED_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/uuid.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_UUID_H_
    36 #define LIBC_UUID_H_
     35#ifndef _LIBC_UUID_H_
     36#define _LIBC_UUID_H_
    3737
    3838#include <stdint.h>
  • uspace/lib/c/include/vbd.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VBD_H_
    36 #define LIBC_VBD_H_
     35#ifndef _LIBC_VBD_H_
     36#define _LIBC_VBD_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/vfs/canonify.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VFS_CANONIFY_H_
    36 #define LIBC_VFS_CANONIFY_H_
     35#ifndef _LIBC_VFS_CANONIFY_H_
     36#define _LIBC_VFS_CANONIFY_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/vfs/inbox.h

    re3272101 rd5a89a3  
    3636 */
    3737
    38 #ifndef LIBC_VFS_INBOX_H_
    39 #define LIBC_VFS_INBOX_H_
     38#ifndef _LIBC_VFS_INBOX_H_
     39#define _LIBC_VFS_INBOX_H_
    4040
    4141enum {
  • uspace/lib/c/include/vfs/vfs.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VFS_H_
    36 #define LIBC_VFS_H_
     35#ifndef _LIBC_VFS_H_
     36#define _LIBC_VFS_H_
    3737
    3838#include <stddef.h>
  • uspace/lib/c/include/vfs/vfs_mtab.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VFS_MTAB_H_
    36 #define LIBC_VFS_MTAB_H_
     35#ifndef _LIBC_VFS_MTAB_H_
     36#define _LIBC_VFS_MTAB_H_
    3737
    3838#include <ipc/vfs.h>
  • uspace/lib/c/include/vfs/vfs_sess.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VFS_SESS_H_
    36 #define LIBC_VFS_SESS_H_
     35#ifndef _LIBC_VFS_SESS_H_
     36#define _LIBC_VFS_SESS_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/vol.h

    re3272101 rd5a89a3  
    3333 */
    3434
    35 #ifndef LIBC_VOL_H_
    36 #define LIBC_VOL_H_
     35#ifndef _LIBC_VOL_H_
     36#define _LIBC_VOL_H_
    3737
    3838#include <async.h>
  • uspace/lib/c/include/wchar.h

    re3272101 rd5a89a3  
    3838 */
    3939
    40 #ifndef LIBC_WCHAR_H_
    41 #define LIBC_WCHAR_H_
     40#ifndef _LIBC_WCHAR_H_
     41#define _LIBC_WCHAR_H_
    4242
    4343#include <_bits/size_t.h>
Note: See TracChangeset for help on using the changeset viewer.