Changeset 5b0cf63 in mainline for uspace/lib
- Timestamp:
- 2018-01-25T13:42:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ab3c4b
- Parents:
- c832ab15
- git-author:
- Jiri Svoboda <jiri@…> (2017-01-24 18:40:44)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-01-25 13:42:08)
- Location:
- uspace/lib
- Files:
-
- 39 edited
-
block/block.h (modified) (1 diff)
-
c/arch/ia32/include/libarch/syscall.h (modified) (1 diff)
-
c/include/adt/hash_table.h (modified) (2 diffs)
-
c/include/async.h (modified) (1 diff)
-
c/include/gsort.h (modified) (1 diff)
-
c/include/ipc/ipc.h (modified) (1 diff)
-
c/include/ipc/logger.h (modified) (1 diff)
-
c/include/rtld/rtld_debug.h (modified) (1 diff)
-
c/include/syscall.h (modified) (1 diff)
-
c/include/time.h (modified) (1 diff)
-
c/include/udebug.h (modified) (1 diff)
-
c/include/vfs/inbox.h (modified) (1 diff)
-
draw/surface.h (modified) (1 diff)
-
drv/include/ahci_iface.h (modified) (1 diff)
-
drv/include/audio_pcm_iface.h (modified) (1 diff)
-
drv/include/ops/nic.h (modified) (1 diff)
-
drv/include/ops/pio_window.h (modified) (1 diff)
-
drv/include/usbhid_iface.h (modified) (1 diff)
-
ext4/include/ext4/inode.h (modified) (1 diff)
-
ext4/include/ext4/superblock.h (modified) (1 diff)
-
fs/libfs.h (modified) (2 diffs)
-
graph/graph.h (modified) (5 diffs)
-
hound/include/hound/client.h (modified) (2 diffs)
-
nic/include/nic_addr_db.h (modified) (1 diff)
-
nic/include/nic_impl.h (modified) (1 diff)
-
nic/include/nic_wol_virtues.h (modified) (1 diff)
-
pcut/src/internal.h (modified) (2 diffs)
-
posix/include/posix/float.h (modified) (1 diff)
-
posix/include/posix/locale.h (modified) (1 diff)
-
posix/include/posix/math.h (modified) (1 diff)
-
posix/include/posix/pthread.h (modified) (1 diff)
-
posix/include/posix/sys/mman.h (modified) (1 diff)
-
softint/include/lltype.h (modified) (1 diff)
-
usbhid/include/usb/hid/hiddescriptor.h (modified) (3 diffs)
-
usbhid/include/usb/hid/hidparser.h (modified) (2 diffs)
-
usbhid/include/usb/hid/hidpath.h (modified) (3 diffs)
-
usbhid/include/usb/hid/hidreport.h (modified) (1 diff)
-
usbhid/include/usb/hid/request.h (modified) (1 diff)
-
usbhost/include/usb/host/usb_bus.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/block.h
rc832ab15 r5b0cf63 85 85 /** Link for placing the block into the free block list. */ 86 86 link_t free_link; 87 /** Link for placing the block into the block hash table. */ 87 /** Link for placing the block into the block hash table. */ 88 88 ht_link_t hash_link; 89 89 /** Buffer with the block data. */ -
uspace/lib/c/arch/ia32/include/libarch/syscall.h
rc832ab15 r5b0cf63 48 48 #define __syscall6 __syscall_slow 49 49 50 extern sysarg_t (* __syscall_fast_func)(const sysarg_t, const sysarg_t,50 extern sysarg_t (*__syscall_fast_func)(const sysarg_t, const sysarg_t, 51 51 const sysarg_t, const sysarg_t, const sysarg_t, const sysarg_t, 52 52 const syscall_t); -
uspace/lib/c/include/adt/hash_table.h
rc832ab15 r5b0cf63 84 84 member_to_inst((item), type, member) 85 85 86 extern bool hash_table_create(hash_table_t *, size_t, size_t, 87 hash_table_ops_t *);86 extern bool hash_table_create(hash_table_t *, size_t, size_t, 87 hash_table_ops_t *); 88 88 extern void hash_table_destroy(hash_table_t *); 89 89 … … 98 98 extern size_t hash_table_remove(hash_table_t *, void *); 99 99 extern void hash_table_remove_item(hash_table_t *, ht_link_t *); 100 extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *), 101 void *);100 extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *), 101 void *); 102 102 103 103 -
uspace/lib/c/include/async.h
rc832ab15 r5b0cf63 34 34 35 35 #if ((defined(LIBC_IPC_H_)) && (!defined(LIBC_ASYNC_C_))) 36 #error Do not intermix low-level IPC interface and async framework36 #error Do not intermix low-level IPC interface and async framework 37 37 #endif 38 38 -
uspace/lib/c/include/gsort.h
rc832ab15 r5b0cf63 39 39 #include <stdbool.h> 40 40 41 typedef int (* sort_cmp_t)(void *, void *, void *);41 typedef int (*sort_cmp_t)(void *, void *, void *); 42 42 43 43 extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *); -
uspace/lib/c/include/ipc/ipc.h
rc832ab15 r5b0cf63 34 34 35 35 #if ((defined(LIBC_ASYNC_H_)) && (!defined(LIBC_ASYNC_C_))) 36 #error Do not intermix low-level IPC interface and async framework36 #error Do not intermix low-level IPC interface and async framework 37 37 #endif 38 38 -
uspace/lib/c/include/ipc/logger.h
rc832ab15 r5b0cf63 54 54 * Returns: error code 55 55 * Followed by: vfs_pass_handle() request. 56 */ 56 */ 57 57 LOGGER_CONTROL_SET_ROOT 58 58 } logger_control_request_t; -
uspace/lib/c/include/rtld/rtld_debug.h
rc832ab15 r5b0cf63 42 42 43 43 #ifdef RTLD_DEBUG 44 #define DPRINTF(format, ...) printf(format, ##__VA_ARGS__)44 #define DPRINTF(format, ...) printf(format, ##__VA_ARGS__) 45 45 #else 46 #define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__)46 #define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__) 47 47 #endif 48 48 -
uspace/lib/c/include/syscall.h
rc832ab15 r5b0cf63 41 41 42 42 #ifndef LIBARCH_SYSCALL_GENERIC 43 #error You cannot include this file directly43 #error You cannot include this file directly 44 44 #endif 45 45 -
uspace/lib/c/include/time.h
rc832ab15 r5b0cf63 31 31 */ 32 32 /** @file 33 */ 33 */ 34 34 35 35 #ifndef LIBC_TIME_H_ -
uspace/lib/c/include/udebug.h
rc832ab15 r5b0cf63 46 46 extern errno_t udebug_end(async_sess_t *); 47 47 extern errno_t udebug_set_evmask(async_sess_t *, udebug_evmask_t); 48 extern errno_t udebug_thread_read(async_sess_t *, void *, size_t , size_t *,48 extern errno_t udebug_thread_read(async_sess_t *, void *, size_t, size_t *, 49 49 size_t *); 50 50 extern errno_t udebug_name_read(async_sess_t *, void *, size_t, size_t *, -
uspace/lib/c/include/vfs/inbox.h
rc832ab15 r5b0cf63 29 29 /** @addtogroup libc 30 30 * @{ 31 */ 31 */ 32 32 33 33 /** -
uspace/lib/draw/surface.h
rc832ab15 r5b0cf63 60 60 extern void surface_get_damaged_region(surface_t *, surface_coord_t *, surface_coord_t *, 61 61 surface_coord_t *, surface_coord_t *); 62 extern void surface_add_damaged_region(surface_t *, surface_coord_t , surface_coord_t,63 surface_coord_t , surface_coord_t);62 extern void surface_add_damaged_region(surface_t *, surface_coord_t, surface_coord_t, 63 surface_coord_t, surface_coord_t); 64 64 extern void surface_reset_damaged_region(surface_t *); 65 65 -
uspace/lib/drv/include/ahci_iface.h
rc832ab15 r5b0cf63 41 41 #include <async.h> 42 42 43 extern async_sess_t *ahci_get_sess(devman_handle_t, char **);43 extern async_sess_t *ahci_get_sess(devman_handle_t, char **); 44 44 45 45 extern errno_t ahci_get_sata_device_name(async_sess_t *, size_t, char *); -
uspace/lib/drv/include/audio_pcm_iface.h
rc832ab15 r5b0cf63 120 120 errno_t (*release_buffer)(ddf_fun_t *); 121 121 errno_t (*set_event_session)(ddf_fun_t *, async_sess_t *); 122 async_sess_t * (*get_event_session)(ddf_fun_t *);122 async_sess_t *(*get_event_session)(ddf_fun_t *); 123 123 errno_t (*start_playback)(ddf_fun_t *, unsigned, 124 124 unsigned, unsigned, pcm_sample_format_t); -
uspace/lib/drv/include/ops/nic.h
rc832ab15 r5b0cf63 66 66 errno_t (*autoneg_restart)(ddf_fun_t *); 67 67 errno_t (*get_pause)(ddf_fun_t *, nic_result_t *, nic_result_t *, 68 uint16_t *);68 uint16_t *); 69 69 errno_t (*set_pause)(ddf_fun_t *, int, int, uint16_t); 70 70 -
uspace/lib/drv/include/ops/pio_window.h
rc832ab15 r5b0cf63 40 40 41 41 typedef struct { 42 pio_window_t *(* get_pio_window)(ddf_fun_t *);42 pio_window_t *(*get_pio_window)(ddf_fun_t *); 43 43 } pio_window_ops_t; 44 44 -
uspace/lib/drv/include/usbhid_iface.h
rc832ab15 r5b0cf63 81 81 * @return Error code. 82 82 */ 83 errno_t (*get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc, 83 errno_t (*get_report_descriptor)(ddf_fun_t *fun, uint8_t *desc, 84 84 size_t size, size_t *act_size); 85 85 } usbhid_iface_t; -
uspace/lib/ext4/include/ext4/inode.h
rc832ab15 r5b0cf63 73 73 extern uint32_t ext4_inode_get_indirect_block(ext4_inode_t *, uint32_t); 74 74 extern void ext4_inode_set_indirect_block(ext4_inode_t *, uint32_t, uint32_t); 75 extern ext4_extent_header_t * ext4_inode_get_extent_header(ext4_inode_t *);75 extern ext4_extent_header_t *ext4_inode_get_extent_header(ext4_inode_t *); 76 76 extern bool ext4_inode_is_type(ext4_superblock_t *, ext4_inode_t *, uint32_t); 77 77 extern bool ext4_inode_has_flag(ext4_inode_t *, uint32_t); -
uspace/lib/ext4/include/ext4/superblock.h
rc832ab15 r5b0cf63 113 113 uint32_t); 114 114 115 extern const uint8_t * ext4_superblock_get_uuid(ext4_superblock_t *);115 extern const uint8_t *ext4_superblock_get_uuid(ext4_superblock_t *); 116 116 extern void ext4_superblock_set_uuid(ext4_superblock_t *, const uint8_t *); 117 extern const char * ext4_superblock_get_volume_name(ext4_superblock_t *);117 extern const char *ext4_superblock_get_volume_name(ext4_superblock_t *); 118 118 extern void ext4_superblock_set_volume_name(ext4_superblock_t *, const char *); 119 extern const char * ext4_superblock_get_last_mounted(ext4_superblock_t *);119 extern const char *ext4_superblock_get_last_mounted(ext4_superblock_t *); 120 120 extern void ext4_superblock_set_last_mounted(ext4_superblock_t *, const char *); 121 121 122 122 extern uint32_t ext4_superblock_get_last_orphan(ext4_superblock_t *); 123 123 extern void ext4_superblock_set_last_orphan(ext4_superblock_t *, uint32_t); 124 extern const uint32_t * ext4_superblock_get_hash_seed(ext4_superblock_t *);124 extern const uint32_t *ext4_superblock_get_hash_seed(ext4_superblock_t *); 125 125 extern void ext4_superblock_set_hash_seed(ext4_superblock_t *, 126 126 const uint32_t *); -
uspace/lib/fs/libfs.h
rc832ab15 r5b0cf63 43 43 44 44 typedef struct { 45 errno_t (* fsprobe)(service_id_t, vfs_fs_probe_info_t *);46 errno_t (* mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *);47 errno_t (* unmounted)(service_id_t);48 errno_t (* read)(service_id_t, fs_index_t, aoff64_t, size_t *);49 errno_t (* write)(service_id_t, fs_index_t, aoff64_t, size_t *,45 errno_t (*fsprobe)(service_id_t, vfs_fs_probe_info_t *); 46 errno_t (*mounted)(service_id_t, const char *, fs_index_t *, aoff64_t *); 47 errno_t (*unmounted)(service_id_t); 48 errno_t (*read)(service_id_t, fs_index_t, aoff64_t, size_t *); 49 errno_t (*write)(service_id_t, fs_index_t, aoff64_t, size_t *, 50 50 aoff64_t *); 51 errno_t (* truncate)(service_id_t, fs_index_t, aoff64_t);52 errno_t (* close)(service_id_t, fs_index_t);53 errno_t (* destroy)(service_id_t, fs_index_t);54 errno_t (* sync)(service_id_t, fs_index_t);51 errno_t (*truncate)(service_id_t, fs_index_t, aoff64_t); 52 errno_t (*close)(service_id_t, fs_index_t); 53 errno_t (*destroy)(service_id_t, fs_index_t); 54 errno_t (*sync)(service_id_t, fs_index_t); 55 55 } vfs_out_ops_t; 56 56 … … 65 65 * argument holds the output argument. 66 66 */ 67 errno_t (* root_get)(fs_node_t **, service_id_t);68 errno_t (* match)(fs_node_t **, fs_node_t *, const char *);69 errno_t (* node_get)(fs_node_t **, service_id_t, fs_index_t);70 errno_t (* node_open)(fs_node_t *);71 errno_t (* node_put)(fs_node_t *);72 errno_t (* create)(fs_node_t **, service_id_t, int);73 errno_t (* destroy)(fs_node_t *);74 errno_t (* link)(fs_node_t *, fs_node_t *, const char *);75 errno_t (* unlink)(fs_node_t *, fs_node_t *, const char *);76 errno_t (* has_children)(bool *, fs_node_t *);67 errno_t (*root_get)(fs_node_t **, service_id_t); 68 errno_t (*match)(fs_node_t **, fs_node_t *, const char *); 69 errno_t (*node_get)(fs_node_t **, service_id_t, fs_index_t); 70 errno_t (*node_open)(fs_node_t *); 71 errno_t (*node_put)(fs_node_t *); 72 errno_t (*create)(fs_node_t **, service_id_t, int); 73 errno_t (*destroy)(fs_node_t *); 74 errno_t (*link)(fs_node_t *, fs_node_t *, const char *); 75 errno_t (*unlink)(fs_node_t *, fs_node_t *, const char *); 76 errno_t (*has_children)(bool *, fs_node_t *); 77 77 /* 78 78 * The second set of methods are usually mere getters that do not 79 79 * return an integer error code. 80 80 */ 81 fs_index_t (* index_get)(fs_node_t *);82 aoff64_t (* size_get)(fs_node_t *);83 unsigned int (* lnkcnt_get)(fs_node_t *);84 bool (* is_directory)(fs_node_t *);85 bool (* is_file)(fs_node_t *);86 service_id_t (* service_get)(fs_node_t *);87 errno_t (* size_block)(service_id_t, uint32_t *);88 errno_t (* total_block_count)(service_id_t, uint64_t *);89 errno_t (* free_block_count)(service_id_t, uint64_t *);81 fs_index_t (*index_get)(fs_node_t *); 82 aoff64_t (*size_get)(fs_node_t *); 83 unsigned int (*lnkcnt_get)(fs_node_t *); 84 bool (*is_directory)(fs_node_t *); 85 bool (*is_file)(fs_node_t *); 86 service_id_t (*service_get)(fs_node_t *); 87 errno_t (*size_block)(service_id_t, uint32_t *); 88 errno_t (*total_block_count)(service_id_t, uint64_t *); 89 errno_t (*free_block_count)(service_id_t, uint64_t *); 90 90 } libfs_ops_t; 91 91 -
uspace/lib/graph/graph.h
rc832ab15 r5b0cf63 54 54 * Device driver shall allocate any necessary internal structures 55 55 * specific for a claimed visualizer. */ 56 errno_t (* claim)(struct visualizer *vs);56 errno_t (*claim)(struct visualizer *vs); 57 57 58 58 /** … … 61 61 * the mode is set and if so it shall change its internal state 62 62 * accordingly (e.g. deallocate frame buffers). */ 63 errno_t (* yield)(struct visualizer *vs);63 errno_t (*yield)(struct visualizer *vs); 64 64 65 65 /** … … 72 72 * optimization), the pointer to the handle_damage operation can be 73 73 * changed at this point. */ 74 errno_t (* change_mode)(struct visualizer *vs, vslmode_t new_mode);74 errno_t (*change_mode)(struct visualizer *vs, vslmode_t new_mode); 75 75 76 76 /** … … 82 82 * shall be added to the coordinates and if necessary the result shall be 83 83 * wrapped around the edge of the backbuffer). */ 84 errno_t (* handle_damage)(struct visualizer *vs,84 errno_t (*handle_damage)(struct visualizer *vs, 85 85 sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height, 86 sysarg_t x_offset, sysarg_t y_offset);86 sysarg_t x_offset, sysarg_t y_offset); 87 87 88 88 /** … … 90 90 * case, device driver might enable power saving mode on the device 91 91 * corresponding to the visualizer. */ 92 errno_t (* suspend)(struct visualizer *vs);92 errno_t (*suspend)(struct visualizer *vs); 93 93 94 94 /** 95 95 * When upper layers detect activity on suspended visualizer, device 96 96 * driver shall disable power saving mode on the corresponding device. */ 97 errno_t (* wakeup)(struct visualizer *vs);97 errno_t (*wakeup)(struct visualizer *vs); 98 98 } visualizer_ops_t; 99 99 -
uspace/lib/hound/include/hound/client.h
rc832ab15 r5b0cf63 47 47 typedef struct hound_stream hound_stream_t; 48 48 49 hound_context_t * hound_context_create_playback(const char *name,49 hound_context_t *hound_context_create_playback(const char *name, 50 50 pcm_format_t format, size_t bsize); 51 hound_context_t * hound_context_create_capture(const char *name,51 hound_context_t *hound_context_create_capture(const char *name, 52 52 pcm_format_t format, size_t bsize); 53 53 void hound_context_destroy(hound_context_t *hound); … … 61 61 char ***names, size_t *count); 62 62 63 errno_t hound_context_connect_target(hound_context_t *hound, const char *target);64 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target);63 errno_t hound_context_connect_target(hound_context_t *hound, const char *target); 64 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target); 65 65 66 66 hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags, -
uspace/lib/nic/include/nic_addr_db.h
rc832ab15 r5b0cf63 62 62 extern bool nic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr); 63 63 extern void nic_addr_db_foreach(const nic_addr_db_t *db, 64 void (*func)(const uint8_t *, void *), void *arg);64 void (*func)(const uint8_t *, void *), void *arg); 65 65 66 66 #endif -
uspace/lib/nic/include/nic_impl.h
rc832ab15 r5b0cf63 82 82 83 83 extern void nic_default_handler_impl(ddf_fun_t *dev_fun, 84 ipc_callid_t callid, ipc_call_t *call);84 ipc_callid_t callid, ipc_call_t *call); 85 85 extern errno_t nic_open_impl(ddf_fun_t *fun); 86 86 extern void nic_close_impl(ddf_fun_t *fun); -
uspace/lib/nic/include/nic_wol_virtues.h
rc832ab15 r5b0cf63 78 78 extern errno_t nic_wol_virtues_verify(nic_wv_type_t, const void *, size_t); 79 79 extern errno_t nic_wol_virtues_list(const nic_wol_virtues_t *, nic_wv_type_t type, 80 size_t max_count, nic_wv_id_t *id_list, size_t *id_count);80 size_t max_count, nic_wv_id_t *id_list, size_t *id_count); 81 81 extern errno_t nic_wol_virtues_add(nic_wol_virtues_t *, nic_wol_virtue_t *); 82 82 extern nic_wol_virtue_t *nic_wol_virtues_remove(nic_wol_virtues_t *, 83 nic_wv_id_t);83 nic_wv_id_t); 84 84 extern const nic_wol_virtue_t *nic_wol_virtues_find(const nic_wol_virtues_t *, 85 nic_wv_id_t);85 nic_wv_id_t); 86 86 87 87 #endif -
uspace/lib/pcut/src/internal.h
rc832ab15 r5b0cf63 125 125 /** Test completed. */ 126 126 void (*test_done)(pcut_item_t *, int, const char *, const char *, 127 const char *);127 const char *); 128 128 }; 129 129 … … 135 135 void pcut_report_test_start(pcut_item_t *test); 136 136 void pcut_report_test_done(pcut_item_t *test, int outcome, 137 const char *error_message, const char *teardown_error_message,138 const char *extra_output);137 const char *error_message, const char *teardown_error_message, 138 const char *extra_output); 139 139 void pcut_report_test_done_unparsed(pcut_item_t *test, int outcome, 140 const char *unparsed_output, size_t unparsed_output_size);140 const char *unparsed_output, size_t unparsed_output_size); 141 141 void pcut_report_done(void); 142 142 -
uspace/lib/posix/include/posix/float.h
rc832ab15 r5b0cf63 41 41 /* define some standard C constants in terms of GCC built-ins */ 42 42 #ifdef __GNUC__ 43 #undef DBL_MANT_DIG44 #define DBL_MANT_DIG __DBL_MANT_DIG__45 #undef DBL_MIN_EXP46 #define DBL_MIN_EXP __DBL_MIN_EXP__47 #undef DBL_MAX_EXP48 #define DBL_MAX_EXP __DBL_MAX_EXP__49 #undef DBL_MAX50 #define DBL_MAX __DBL_MAX__51 #undef DBL_MAX_10_EXP52 #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__53 #undef DBL_MIN_10_EXP54 #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__55 #undef DBL_MIN56 #define DBL_MIN __DBL_MIN__57 #undef DBL_DIG58 #define DBL_DIG __DBL_DIG__59 #undef DBL_EPSILON60 #define DBL_EPSILON __DBL_EPSILON__61 #undef LDBL_EPSILON62 #define LDBL_EPSILON __LDBL_EPSILON__63 #undef FLT_RADIX64 #define FLT_RADIX __FLT_RADIX__65 #undef FLT_MIN66 #define FLT_MIN __FLT_MIN__67 #undef FLT_MAX68 #define FLT_MAX __FLT_MAX__69 #undef FLT_EPSILON70 #define FLT_EPSILON __FLT_EPSILON__71 #undef FLT_MANT_DIG72 #define FLT_MANT_DIG __FLT_MANT_DIG__73 #undef LDBL_MIN74 #define LDBL_MIN __LDBL_MIN__75 #undef LDBL_MAX76 #define LDBL_MAX __LDBL_MAX__77 #undef LDBL_MANT_DIG78 #define LDBL_MANT_DIG __LDBL_MANT_DIG__43 #undef DBL_MANT_DIG 44 #define DBL_MANT_DIG __DBL_MANT_DIG__ 45 #undef DBL_MIN_EXP 46 #define DBL_MIN_EXP __DBL_MIN_EXP__ 47 #undef DBL_MAX_EXP 48 #define DBL_MAX_EXP __DBL_MAX_EXP__ 49 #undef DBL_MAX 50 #define DBL_MAX __DBL_MAX__ 51 #undef DBL_MAX_10_EXP 52 #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ 53 #undef DBL_MIN_10_EXP 54 #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ 55 #undef DBL_MIN 56 #define DBL_MIN __DBL_MIN__ 57 #undef DBL_DIG 58 #define DBL_DIG __DBL_DIG__ 59 #undef DBL_EPSILON 60 #define DBL_EPSILON __DBL_EPSILON__ 61 #undef LDBL_EPSILON 62 #define LDBL_EPSILON __LDBL_EPSILON__ 63 #undef FLT_RADIX 64 #define FLT_RADIX __FLT_RADIX__ 65 #undef FLT_MIN 66 #define FLT_MIN __FLT_MIN__ 67 #undef FLT_MAX 68 #define FLT_MAX __FLT_MAX__ 69 #undef FLT_EPSILON 70 #define FLT_EPSILON __FLT_EPSILON__ 71 #undef FLT_MANT_DIG 72 #define FLT_MANT_DIG __FLT_MANT_DIG__ 73 #undef LDBL_MIN 74 #define LDBL_MIN __LDBL_MIN__ 75 #undef LDBL_MAX 76 #define LDBL_MAX __LDBL_MAX__ 77 #undef LDBL_MANT_DIG 78 #define LDBL_MANT_DIG __LDBL_MANT_DIG__ 79 79 #else 80 80 /* For something else than GCC, following definitions are provided. -
uspace/lib/posix/include/posix/locale.h
rc832ab15 r5b0cf63 39 39 40 40 #ifndef __locale_t_defined 41 #define __locale_t_defined42 typedef struct __posix_locale *locale_t;41 #define __locale_t_defined 42 typedef struct __posix_locale *locale_t; 43 43 #endif 44 44 -
uspace/lib/posix/include/posix/math.h
rc832ab15 r5b0cf63 43 43 44 44 #ifdef __GNUC__ 45 #define HUGE_VAL (__builtin_huge_val())45 #define HUGE_VAL (__builtin_huge_val()) 46 46 #endif 47 47 -
uspace/lib/posix/include/posix/pthread.h
rc832ab15 r5b0cf63 105 105 extern int pthread_setspecific(pthread_key_t, const void *); 106 106 extern int pthread_key_delete(pthread_key_t); 107 extern int pthread_key_create(pthread_key_t *, void (*)(void *));107 extern int pthread_key_create(pthread_key_t *, void (*)(void *)); 108 108 109 109 #endif -
uspace/lib/posix/include/posix/sys/mman.h
rc832ab15 r5b0cf63 56 56 #define PROT_EXEC AS_AREA_EXEC 57 57 58 extern void * 59 mmap(void *start, size_t length, int prot, int flags, int fd, 58 extern void *mmap(void *start, size_t length, int prot, int flags, int fd, 60 59 off_t offset); 61 60 extern int munmap(void *start, size_t length); -
uspace/lib/softint/include/lltype.h
rc832ab15 r5b0cf63 43 43 44 44 #ifdef __BE__ 45 #define LO 146 #define HI 045 #define LO 1 46 #define HI 0 47 47 #else 48 #define LO 049 #define HI 148 #define LO 0 49 #define HI 1 50 50 #endif 51 51 -
uspace/lib/usbhid/include/usb/hid/hiddescriptor.h
rc832ab15 r5b0cf63 44 44 45 45 errno_t usb_hid_parse_report_descriptor(usb_hid_report_t *report, 46 const uint8_t *data, size_t size);46 const uint8_t *data, size_t size); 47 47 48 48 void usb_hid_descriptor_print(usb_hid_report_t *report); … … 53 53 54 54 errno_t usb_hid_report_append_fields(usb_hid_report_t *report, 55 usb_hid_report_item_t *report_item);55 usb_hid_report_item_t *report_item); 56 56 57 usb_hid_report_description_t * usb_hid_report_find_description(58 const usb_hid_report_t *report, uint8_t report_id,59 usb_hid_report_type_t type);57 usb_hid_report_description_t *usb_hid_report_find_description( 58 const usb_hid_report_t *report, uint8_t report_id, 59 usb_hid_report_type_t type); 60 60 61 61 int usb_hid_report_parse_tag(uint8_t tag, uint8_t class, const uint8_t *data, 62 size_t item_size, usb_hid_report_item_t *report_item,63 usb_hid_report_path_t *usage_path);62 size_t item_size, usb_hid_report_item_t *report_item, 63 usb_hid_report_path_t *usage_path); 64 64 65 int usb_hid_report_parse_main_tag(uint8_t tag, const uint8_t *data, 66 size_t item_size, usb_hid_report_item_t *report_item,67 usb_hid_report_path_t *usage_path);65 int usb_hid_report_parse_main_tag(uint8_t tag, const uint8_t *data, 66 size_t item_size, usb_hid_report_item_t *report_item, 67 usb_hid_report_path_t *usage_path); 68 68 69 int usb_hid_report_parse_global_tag(uint8_t tag, const uint8_t *data, 70 size_t item_size, usb_hid_report_item_t *report_item,71 usb_hid_report_path_t *usage_path);69 int usb_hid_report_parse_global_tag(uint8_t tag, const uint8_t *data, 70 size_t item_size, usb_hid_report_item_t *report_item, 71 usb_hid_report_path_t *usage_path); 72 72 73 int usb_hid_report_parse_local_tag(uint8_t tag, const uint8_t *data, 74 size_t item_size, usb_hid_report_item_t *report_item,75 usb_hid_report_path_t *usage_path);73 int usb_hid_report_parse_local_tag(uint8_t tag, const uint8_t *data, 74 size_t item_size, usb_hid_report_item_t *report_item, 75 usb_hid_report_path_t *usage_path); 76 76 77 77 void usb_hid_descriptor_print_list(list_t *list); … … 80 80 81 81 usb_hid_report_item_t *usb_hid_report_item_clone( 82 const usb_hid_report_item_t *item);82 const usb_hid_report_item_t *item); 83 83 84 84 uint32_t usb_hid_report_tag_data_uint32(const uint8_t *data, size_t size); 85 85 86 usb_hid_report_path_t *usb_hid_report_path_try_insert(usb_hid_report_t *report,87 usb_hid_report_path_t *cmp_path);86 usb_hid_report_path_t *usb_hid_report_path_try_insert(usb_hid_report_t *report, 87 usb_hid_report_path_t *cmp_path); 88 88 89 89 -
uspace/lib/usbhid/include/usb/hid/hidparser.h
rc832ab15 r5b0cf63 48 48 */ 49 49 errno_t usb_hid_parse_report(const usb_hid_report_t *report, const uint8_t *data, 50 size_t size, uint8_t *report_id);50 size_t size, uint8_t *report_id); 51 51 52 52 /* 53 53 * Output report parser functions 54 54 */ 55 uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size, 56 uint8_t report_id);55 uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size, 56 uint8_t report_id); 57 57 58 58 void usb_hid_report_output_free(uint8_t *output); 59 59 60 60 size_t usb_hid_report_size(usb_hid_report_t *report, uint8_t report_id, 61 usb_hid_report_type_t type);61 usb_hid_report_type_t type); 62 62 63 63 size_t usb_hid_report_byte_size(usb_hid_report_t *report, uint8_t report_id, 64 usb_hid_report_type_t type);64 usb_hid_report_type_t type); 65 65 66 66 67 errno_t usb_hid_report_output_translate(usb_hid_report_t *report, 68 uint8_t report_id, uint8_t *buffer, size_t size);67 errno_t usb_hid_report_output_translate(usb_hid_report_t *report, 68 uint8_t report_id, uint8_t *buffer, size_t size); 69 69 70 70 … … 73 73 */ 74 74 usb_hid_report_field_t *usb_hid_report_get_sibling(usb_hid_report_t *report, 75 usb_hid_report_field_t *field, usb_hid_report_path_t *path,76 int flags, usb_hid_report_type_t type);75 usb_hid_report_field_t *field, usb_hid_report_path_t *path, 76 int flags, usb_hid_report_type_t type); 77 77 78 uint8_t usb_hid_get_next_report_id(usb_hid_report_t *report, 79 uint8_t report_id, usb_hid_report_type_t type);78 uint8_t usb_hid_get_next_report_id(usb_hid_report_t *report, 79 uint8_t report_id, usb_hid_report_type_t type); 80 80 81 81 #endif -
uspace/lib/usbhid/include/usb/hid/hidpath.h
rc832ab15 r5b0cf63 83 83 /** Usage page of report item. Zero when usage page can be changed. */ 84 84 uint32_t usage_page; 85 /** Usage of report item. Zero when usage can be changed. */ 85 /** Usage of report item. Zero when usage can be changed. */ 86 86 uint32_t usage; 87 87 … … 119 119 120 120 errno_t usb_hid_report_path_set_report_id(usb_hid_report_path_t *usage_path, 121 uint8_t report_id);121 uint8_t report_id); 122 122 123 errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path, 124 int32_t usage_page, int32_t usage);123 errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path, 124 int32_t usage_page, int32_t usage); 125 125 126 126 void usb_hid_report_remove_last_item(usb_hid_report_path_t *usage_path); … … 128 128 void usb_hid_report_null_last_item(usb_hid_report_path_t *usage_path); 129 129 130 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, 131 int32_t tag, int32_t data);130 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, 131 int32_t tag, int32_t data); 132 132 133 133 int usb_hid_report_compare_usage_path(usb_hid_report_path_t *report_path, 134 usb_hid_report_path_t *path, int flags);134 usb_hid_report_path_t *path, int flags); 135 135 136 136 usb_hid_report_path_t *usb_hid_report_path_clone( 137 usb_hid_report_path_t *usage_path);137 usb_hid_report_path_t *usage_path); 138 138 139 139 void usb_hid_print_usage_path(usb_hid_report_path_t *path); -
uspace/lib/usbhid/include/usb/hid/hidreport.h
rc832ab15 r5b0cf63 58 58 * usb_pipe_end_session() or usb_request_get_descriptor(). 59 59 */ 60 errno_t usb_hid_process_report_descriptor(usb_device_t *dev, 60 errno_t usb_hid_process_report_descriptor(usb_device_t *dev, 61 61 usb_hid_report_t *report, uint8_t **report_desc, size_t *report_size); 62 62 -
uspace/lib/usbhid/include/usb/hid/request.h
rc832ab15 r5b0cf63 47 47 usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size); 48 48 49 errno_t usbhid_req_set_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 49 errno_t usbhid_req_set_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 50 50 usb_hid_protocol_t protocol); 51 51 52 52 errno_t usbhid_req_set_idle(usb_pipe_t *ctrl_pipe, int iface_no, uint8_t duration); 53 53 54 errno_t usbhid_req_get_report(usb_pipe_t *ctrl_pipe, int iface_no, 55 usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size, 54 errno_t usbhid_req_get_report(usb_pipe_t *ctrl_pipe, int iface_no, 55 usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size, 56 56 size_t *actual_size); 57 57 58 errno_t usbhid_req_get_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 58 errno_t usbhid_req_get_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 59 59 usb_hid_protocol_t *protocol); 60 60 -
uspace/lib/usbhost/include/usb/host/usb_bus.h
rc832ab15 r5b0cf63 92 92 errno_t usb_bus_unregister_ep(usb_bus_t *instance, endpoint_t *ep); 93 93 94 endpoint_t * usb_bus_find_ep(usb_bus_t *instance,94 endpoint_t *usb_bus_find_ep(usb_bus_t *instance, 95 95 usb_address_t address, usb_endpoint_t ep, usb_direction_t direction); 96 96
Note:
See TracChangeset
for help on using the changeset viewer.
