Changeset dc5c303 in mainline for uspace/lib/c/include
- Timestamp:
- 2023-12-28T13:59:23Z (2 years ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (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. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- Location:
- uspace/lib/c/include
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
adt/odict.h (deleted)
-
fibril_synch.h (modified) (1 diff)
-
loc.h (modified) (2 diffs)
-
malloc.h (modified) (1 diff)
-
types/loc.h (added)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril_synch.h
r42c2e65 rdc5c303 153 153 extern void __fibril_synch_fini(void); 154 154 155 extern void fibril_mutex_initialize(fibril_mutex_t *); 155 /** Initialize fibril mutex. 156 * 157 * Kept as in-line to allow constexpr marker for C++ library where this 158 * is used by C++ mutex type (list initialization are two assignments 159 * so it is actually reasonable to have this inlined). 160 */ 161 static inline __CONSTEXPR void fibril_mutex_initialize(fibril_mutex_t *fm) 162 { 163 fm->oi.owned_by = NULL; 164 fm->counter = 1; 165 list_initialize(&fm->waiters); 166 } 167 156 168 extern void fibril_mutex_lock(fibril_mutex_t *); 157 169 extern bool fibril_mutex_trylock(fibril_mutex_t *); -
uspace/lib/c/include/loc.h
r42c2e65 rdc5c303 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 #include <async.h> 40 40 #include <stdbool.h> 41 #include <types/loc.h> 41 42 42 43 typedef void (*loc_cat_change_cb_t)(void *); 43 44 44 extern async_exch_t *loc_exchange_begin_blocking( iface_t);45 extern async_exch_t *loc_exchange_begin( iface_t);45 extern async_exch_t *loc_exchange_begin_blocking(void); 46 extern async_exch_t *loc_exchange_begin(void); 46 47 extern void loc_exchange_end(async_exch_t *); 47 48 48 extern errno_t loc_server_register(const char *); 49 extern errno_t loc_service_register(const char *, service_id_t *); 50 extern errno_t loc_service_unregister(service_id_t); 51 extern errno_t loc_service_add_to_cat(service_id_t, category_id_t); 49 extern errno_t loc_server_register(const char *, loc_srv_t **); 50 extern void loc_server_unregister(loc_srv_t *); 51 extern errno_t loc_service_register(loc_srv_t *, const char *, service_id_t *); 52 extern errno_t loc_service_unregister(loc_srv_t *, service_id_t); 53 extern errno_t loc_service_add_to_cat(loc_srv_t *, service_id_t, category_id_t); 52 54 53 55 extern errno_t loc_service_get_id(const char *, service_id_t *, -
uspace/lib/c/include/malloc.h
r42c2e65 rdc5c303 39 39 #include <_bits/decls.h> 40 40 41 __C_DECLS_BEGIN;42 43 extern void *malloc(size_t size)44 __attribute__((malloc));45 extern void *calloc(size_t nmemb, size_t size)46 __attribute__((malloc));47 extern void *realloc(void *addr, size_t size)48 __attribute__((warn_unused_result));49 extern void free(void *addr);50 51 __C_DECLS_END;52 53 41 #ifdef _HELENOS_SOURCE 54 42 __HELENOS_DECLS_BEGIN; 55 43 56 extern void *memalign(size_t align, size_t size)57 __attribute__((malloc));58 44 extern void *heap_check(void); 59 45
Note:
See TracChangeset
for help on using the changeset viewer.
