Changeset 5b0cf63 in mainline for uspace


Ignore:
Timestamp:
2018-01-25T13:42:08Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

A round of cstyle fixing (i.e. run make ccheck-fix).

Location:
uspace
Files:
55 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/tok.h

    rc832ab15 r5b0cf63  
    4242        size_t byte_length;
    4343        size_t char_length;
    44         token_type_t type;
     44        token_type_t type;
    4545} token_t;
    4646
  • uspace/drv/audio/hdaudio/spec/regs.h

    rc832ab15 r5b0cf63  
    6464        /** Buffer Descriptor List Pointer - Lower */
    6565        uint32_t bdpl;
    66         /** Buffer Descriptor List Pointer - Upper */ 
     66        /** Buffer Descriptor List Pointer - Upper */
    6767        uint32_t bdpu;
    6868} hda_sdesc_regs_t;
  • uspace/drv/audio/sb16/dsp.h

    rc832ab15 r5b0cf63  
    8282errno_t sb_dsp_get_buffer_position(sb_dsp_t *dsp, size_t *size);
    8383errno_t sb_dsp_test_format(sb_dsp_t *dsp, unsigned *channels, unsigned *rate,
    84   pcm_sample_format_t *format);
     84    pcm_sample_format_t *format);
    8585errno_t sb_dsp_get_buffer(sb_dsp_t *dsp, void **buffer, size_t *size);
    8686errno_t sb_dsp_set_event_session(sb_dsp_t *dsp, async_sess_t *session);
    87 async_sess_t * sb_dsp_get_event_session(sb_dsp_t *dsp);
     87async_sess_t *sb_dsp_get_event_session(sb_dsp_t *dsp);
    8888errno_t sb_dsp_release_buffer(sb_dsp_t *dsp);
    8989errno_t sb_dsp_start_playback(sb_dsp_t *dsp, unsigned frames,
  • uspace/drv/audio/sb16/mixer.h

    rc832ab15 r5b0cf63  
    5050} sb_mixer_t;
    5151
    52 const char * sb_mixer_type_str(sb_mixer_type_t type);
     52const char *sb_mixer_type_str(sb_mixer_type_t type);
    5353errno_t sb_mixer_init(sb_mixer_t *mixer, sb16_regs_t *regs, sb_mixer_type_t type);
    5454int sb_mixer_get_control_item_count(const sb_mixer_t *mixer);
  • uspace/drv/hid/atkbd/atkbd.h

    rc832ab15 r5b0cf63  
    4949        chardev_t *chardev;
    5050        /** Callback connection to client */
    51         async_sess_t *client_sess; 
     51        async_sess_t *client_sess;
    5252        /** Fibril retrieving and parsing data */
    5353        fid_t polling_fibril;
  • uspace/lib/block/block.h

    rc832ab15 r5b0cf63  
    8585        /** Link for placing the block into the free block list. */
    8686        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. */
    8888        ht_link_t hash_link;
    8989        /** Buffer with the block data. */
  • uspace/lib/c/arch/ia32/include/libarch/syscall.h

    rc832ab15 r5b0cf63  
    4848#define __syscall6  __syscall_slow
    4949
    50 extern sysarg_t (* __syscall_fast_func)(const sysarg_t, const sysarg_t,
     50extern sysarg_t (*__syscall_fast_func)(const sysarg_t, const sysarg_t,
    5151    const sysarg_t, const sysarg_t, const sysarg_t, const sysarg_t,
    5252    const syscall_t);
  • uspace/lib/c/include/adt/hash_table.h

    rc832ab15 r5b0cf63  
    8484        member_to_inst((item), type, member)
    8585
    86 extern bool hash_table_create(hash_table_t *, size_t, size_t, 
    87         hash_table_ops_t *);
     86extern bool hash_table_create(hash_table_t *, size_t, size_t,
     87    hash_table_ops_t *);
    8888extern void hash_table_destroy(hash_table_t *);
    8989
     
    9898extern size_t hash_table_remove(hash_table_t *, void *);
    9999extern 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 *);
     100extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *),
     101    void *);
    102102
    103103
  • uspace/lib/c/include/async.h

    rc832ab15 r5b0cf63  
    3434
    3535#if ((defined(LIBC_IPC_H_)) && (!defined(LIBC_ASYNC_C_)))
    36         #error Do not intermix low-level IPC interface and async framework
     36#error Do not intermix low-level IPC interface and async framework
    3737#endif
    3838
  • uspace/lib/c/include/gsort.h

    rc832ab15 r5b0cf63  
    3939#include <stdbool.h>
    4040
    41 typedef int (* sort_cmp_t)(void *, void *, void *);
     41typedef int (*sort_cmp_t)(void *, void *, void *);
    4242
    4343extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *);
  • uspace/lib/c/include/ipc/ipc.h

    rc832ab15 r5b0cf63  
    3434
    3535#if ((defined(LIBC_ASYNC_H_)) && (!defined(LIBC_ASYNC_C_)))
    36         #error Do not intermix low-level IPC interface and async framework
     36#error Do not intermix low-level IPC interface and async framework
    3737#endif
    3838
  • uspace/lib/c/include/ipc/logger.h

    rc832ab15 r5b0cf63  
    5454         * Returns: error code
    5555         * Followed by: vfs_pass_handle() request.
    56          */ 
     56         */
    5757        LOGGER_CONTROL_SET_ROOT
    5858} logger_control_request_t;
  • uspace/lib/c/include/rtld/rtld_debug.h

    rc832ab15 r5b0cf63  
    4242
    4343#ifdef RTLD_DEBUG
    44         #define DPRINTF(format, ...) printf(format, ##__VA_ARGS__)
     44#define DPRINTF(format, ...) printf(format, ##__VA_ARGS__)
    4545#else
    46         #define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__)
     46#define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__)
    4747#endif
    4848
  • uspace/lib/c/include/syscall.h

    rc832ab15 r5b0cf63  
    4141
    4242#ifndef LIBARCH_SYSCALL_GENERIC
    43         #error You cannot include this file directly
     43#error You cannot include this file directly
    4444#endif
    4545
  • uspace/lib/c/include/time.h

    rc832ab15 r5b0cf63  
    3131 */
    3232/** @file
    33  */ 
     33 */
    3434
    3535#ifndef LIBC_TIME_H_
  • uspace/lib/c/include/udebug.h

    rc832ab15 r5b0cf63  
    4646extern errno_t udebug_end(async_sess_t *);
    4747extern 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 *,
     48extern errno_t udebug_thread_read(async_sess_t *, void *, size_t, size_t *,
    4949    size_t *);
    5050extern errno_t udebug_name_read(async_sess_t *, void *, size_t, size_t *,
  • uspace/lib/c/include/vfs/inbox.h

    rc832ab15 r5b0cf63  
    2929/** @addtogroup libc
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
  • uspace/lib/draw/surface.h

    rc832ab15 r5b0cf63  
    6060extern void surface_get_damaged_region(surface_t *, surface_coord_t *, surface_coord_t *,
    6161    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 );
     62extern void surface_add_damaged_region(surface_t *, surface_coord_t, surface_coord_t,
     63    surface_coord_t, surface_coord_t);
    6464extern void surface_reset_damaged_region(surface_t *);
    6565
  • uspace/lib/drv/include/ahci_iface.h

    rc832ab15 r5b0cf63  
    4141#include <async.h>
    4242
    43 extern async_sess_t* ahci_get_sess(devman_handle_t, char **);
     43extern async_sess_t *ahci_get_sess(devman_handle_t, char **);
    4444
    4545extern errno_t ahci_get_sata_device_name(async_sess_t *, size_t, char *);
  • uspace/lib/drv/include/audio_pcm_iface.h

    rc832ab15 r5b0cf63  
    120120        errno_t (*release_buffer)(ddf_fun_t *);
    121121        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 *);
    123123        errno_t (*start_playback)(ddf_fun_t *, unsigned,
    124124            unsigned, unsigned, pcm_sample_format_t);
  • uspace/lib/drv/include/ops/nic.h

    rc832ab15 r5b0cf63  
    6666        errno_t (*autoneg_restart)(ddf_fun_t *);
    6767        errno_t (*get_pause)(ddf_fun_t *, nic_result_t *, nic_result_t *,
    68                 uint16_t *);
     68            uint16_t *);
    6969        errno_t (*set_pause)(ddf_fun_t *, int, int, uint16_t);
    7070       
  • uspace/lib/drv/include/ops/pio_window.h

    rc832ab15 r5b0cf63  
    4040
    4141typedef struct {
    42         pio_window_t *(* get_pio_window)(ddf_fun_t *);
     42        pio_window_t *(*get_pio_window)(ddf_fun_t *);
    4343} pio_window_ops_t;
    4444
  • uspace/lib/drv/include/usbhid_iface.h

    rc832ab15 r5b0cf63  
    8181         * @return Error code.
    8282         */
    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,
    8484            size_t size, size_t *act_size);
    8585} usbhid_iface_t;
  • uspace/lib/ext4/include/ext4/inode.h

    rc832ab15 r5b0cf63  
    7373extern uint32_t ext4_inode_get_indirect_block(ext4_inode_t *, uint32_t);
    7474extern 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 *);
     75extern ext4_extent_header_t *ext4_inode_get_extent_header(ext4_inode_t *);
    7676extern bool ext4_inode_is_type(ext4_superblock_t *, ext4_inode_t *, uint32_t);
    7777extern bool ext4_inode_has_flag(ext4_inode_t *, uint32_t);
  • uspace/lib/ext4/include/ext4/superblock.h

    rc832ab15 r5b0cf63  
    113113    uint32_t);
    114114
    115 extern const uint8_t * ext4_superblock_get_uuid(ext4_superblock_t *);
     115extern const uint8_t *ext4_superblock_get_uuid(ext4_superblock_t *);
    116116extern void ext4_superblock_set_uuid(ext4_superblock_t *, const uint8_t *);
    117 extern const char * ext4_superblock_get_volume_name(ext4_superblock_t *);
     117extern const char *ext4_superblock_get_volume_name(ext4_superblock_t *);
    118118extern void ext4_superblock_set_volume_name(ext4_superblock_t *, const char *);
    119 extern const char * ext4_superblock_get_last_mounted(ext4_superblock_t *);
     119extern const char *ext4_superblock_get_last_mounted(ext4_superblock_t *);
    120120extern void ext4_superblock_set_last_mounted(ext4_superblock_t *, const char *);
    121121
    122122extern uint32_t ext4_superblock_get_last_orphan(ext4_superblock_t *);
    123123extern void ext4_superblock_set_last_orphan(ext4_superblock_t *, uint32_t);
    124 extern const uint32_t * ext4_superblock_get_hash_seed(ext4_superblock_t *);
     124extern const uint32_t *ext4_superblock_get_hash_seed(ext4_superblock_t *);
    125125extern void ext4_superblock_set_hash_seed(ext4_superblock_t *,
    126126    const uint32_t *);
  • uspace/lib/fs/libfs.h

    rc832ab15 r5b0cf63  
    4343
    4444typedef 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 *,
    5050            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);
    5555} vfs_out_ops_t;
    5656
     
    6565         * argument holds the output argument.
    6666         */
    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 *);
    7777        /*
    7878         * The second set of methods are usually mere getters that do not
    7979         * return an integer error code.
    8080         */
    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 *);
    9090} libfs_ops_t;
    9191
  • uspace/lib/graph/graph.h

    rc832ab15 r5b0cf63  
    5454         * Device driver shall allocate any necessary internal structures
    5555         * specific for a claimed visualizer. */
    56         errno_t (* claim)(struct visualizer *vs);
     56        errno_t (*claim)(struct visualizer *vs);
    5757       
    5858        /**
     
    6161         * the mode is set and if so it shall change its internal state
    6262         * accordingly (e.g. deallocate frame buffers). */
    63         errno_t (* yield)(struct visualizer *vs);
     63        errno_t (*yield)(struct visualizer *vs);
    6464       
    6565        /**
     
    7272         * optimization), the pointer to the handle_damage operation can be
    7373         * 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);
    7575       
    7676        /**
     
    8282         * shall be added to the coordinates and if necessary the result shall be
    8383         * wrapped around the edge of the backbuffer). */
    84         errno_t (* handle_damage)(struct visualizer *vs,
     84        errno_t (*handle_damage)(struct visualizer *vs,
    8585            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);
    8787       
    8888        /**
     
    9090         * case, device driver might enable power saving mode on the device
    9191         * corresponding to the visualizer. */
    92         errno_t (* suspend)(struct visualizer *vs);
     92        errno_t (*suspend)(struct visualizer *vs);
    9393       
    9494        /**
    9595         * When upper layers detect activity on suspended visualizer, device
    9696         * driver shall disable power saving mode on the corresponding device. */
    97         errno_t (* wakeup)(struct visualizer *vs);
     97        errno_t (*wakeup)(struct visualizer *vs);
    9898} visualizer_ops_t;
    9999
  • uspace/lib/hound/include/hound/client.h

    rc832ab15 r5b0cf63  
    4747typedef struct hound_stream hound_stream_t;
    4848
    49 hound_context_t * hound_context_create_playback(const char *name,
     49hound_context_t *hound_context_create_playback(const char *name,
    5050    pcm_format_t format, size_t bsize);
    51 hound_context_t * hound_context_create_capture(const char *name,
     51hound_context_t *hound_context_create_capture(const char *name,
    5252    pcm_format_t format, size_t bsize);
    5353void hound_context_destroy(hound_context_t *hound);
     
    6161    char ***names, size_t *count);
    6262
    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);
     63errno_t hound_context_connect_target(hound_context_t *hound, const char *target);
     64errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target);
    6565
    6666hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags,
  • uspace/lib/nic/include/nic_addr_db.h

    rc832ab15 r5b0cf63  
    6262extern bool nic_addr_db_contains(const nic_addr_db_t *db, const uint8_t *addr);
    6363extern 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);
    6565
    6666#endif
  • uspace/lib/nic/include/nic_impl.h

    rc832ab15 r5b0cf63  
    8282
    8383extern 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);
    8585extern errno_t nic_open_impl(ddf_fun_t *fun);
    8686extern void nic_close_impl(ddf_fun_t *fun);
  • uspace/lib/nic/include/nic_wol_virtues.h

    rc832ab15 r5b0cf63  
    7878extern errno_t nic_wol_virtues_verify(nic_wv_type_t, const void *, size_t);
    7979extern 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);
    8181extern errno_t nic_wol_virtues_add(nic_wol_virtues_t *, nic_wol_virtue_t *);
    8282extern nic_wol_virtue_t *nic_wol_virtues_remove(nic_wol_virtues_t *,
    83         nic_wv_id_t);
     83    nic_wv_id_t);
    8484extern const nic_wol_virtue_t *nic_wol_virtues_find(const nic_wol_virtues_t *,
    85         nic_wv_id_t);
     85    nic_wv_id_t);
    8686
    8787#endif
  • uspace/lib/pcut/src/internal.h

    rc832ab15 r5b0cf63  
    125125        /** Test completed. */
    126126        void (*test_done)(pcut_item_t *, int, const char *, const char *,
    127                 const char *);
     127            const char *);
    128128};
    129129
     
    135135void pcut_report_test_start(pcut_item_t *test);
    136136void 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);
    139139void 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);
    141141void pcut_report_done(void);
    142142
  • uspace/lib/posix/include/posix/float.h

    rc832ab15 r5b0cf63  
    4141/* define some standard C constants in terms of GCC built-ins */
    4242#ifdef __GNUC__
    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__
     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__
    7979#else
    8080/* For something else than GCC, following definitions are provided.
  • uspace/lib/posix/include/posix/locale.h

    rc832ab15 r5b0cf63  
    3939
    4040#ifndef __locale_t_defined
    41         #define __locale_t_defined
    42         typedef struct __posix_locale *locale_t;
     41#define __locale_t_defined
     42typedef struct __posix_locale *locale_t;
    4343#endif
    4444
  • uspace/lib/posix/include/posix/math.h

    rc832ab15 r5b0cf63  
    4343
    4444#ifdef __GNUC__
    45         #define HUGE_VAL (__builtin_huge_val())
     45#define HUGE_VAL (__builtin_huge_val())
    4646#endif
    4747
  • uspace/lib/posix/include/posix/pthread.h

    rc832ab15 r5b0cf63  
    105105extern int pthread_setspecific(pthread_key_t, const void *);
    106106extern int pthread_key_delete(pthread_key_t);
    107 extern int pthread_key_create(pthread_key_t *, void (*)(void*));
     107extern int pthread_key_create(pthread_key_t *, void (*)(void *));
    108108
    109109#endif
  • uspace/lib/posix/include/posix/sys/mman.h

    rc832ab15 r5b0cf63  
    5656#define PROT_EXEC  AS_AREA_EXEC
    5757
    58 extern void *
    59 mmap(void *start, size_t length, int prot, int flags, int fd,
     58extern void *mmap(void *start, size_t length, int prot, int flags, int fd,
    6059    off_t offset);
    6160extern int munmap(void *start, size_t length);
  • uspace/lib/softint/include/lltype.h

    rc832ab15 r5b0cf63  
    4343
    4444#ifdef __BE__
    45         #define LO 1
    46         #define HI 0
     45#define LO 1
     46#define HI 0
    4747#else
    48         #define LO 0
    49         #define HI 1
     48#define LO 0
     49#define HI 1
    5050#endif
    5151
  • uspace/lib/usbhid/include/usb/hid/hiddescriptor.h

    rc832ab15 r5b0cf63  
    4444
    4545errno_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);
    4747
    4848void usb_hid_descriptor_print(usb_hid_report_t *report);
     
    5353
    5454errno_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);
    5656
    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);
     57usb_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);
    6060
    6161int 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);
    6464
    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);
     65int 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);
    6868
    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);
     69int 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);
    7272
    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);
     73int 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);
    7676
    7777void usb_hid_descriptor_print_list(list_t *list);
     
    8080
    8181usb_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);
    8383
    8484uint32_t usb_hid_report_tag_data_uint32(const uint8_t *data, size_t size);
    8585
    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);
     86usb_hid_report_path_t *usb_hid_report_path_try_insert(usb_hid_report_t *report,
     87    usb_hid_report_path_t *cmp_path);
    8888
    8989
  • uspace/lib/usbhid/include/usb/hid/hidparser.h

    rc832ab15 r5b0cf63  
    4848 */
    4949errno_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);
    5151
    5252/*
    5353 * Output report parser functions
    5454 */
    55 uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size, 
    56                 uint8_t report_id);
     55uint8_t *usb_hid_report_output(usb_hid_report_t *report, size_t *size,
     56    uint8_t report_id);
    5757
    5858void usb_hid_report_output_free(uint8_t *output);
    5959
    6060size_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);
    6262
    6363size_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);
    6565
    6666
    67 errno_t usb_hid_report_output_translate(usb_hid_report_t *report, 
    68                 uint8_t report_id, uint8_t *buffer, size_t size);
     67errno_t usb_hid_report_output_translate(usb_hid_report_t *report,
     68    uint8_t report_id, uint8_t *buffer, size_t size);
    6969
    7070
     
    7373 */
    7474usb_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);
    7777
    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);
     78uint8_t usb_hid_get_next_report_id(usb_hid_report_t *report,
     79    uint8_t report_id, usb_hid_report_type_t type);
    8080
    8181#endif
  • uspace/lib/usbhid/include/usb/hid/hidpath.h

    rc832ab15 r5b0cf63  
    8383        /** Usage page of report item. Zero when usage page can be changed. */
    8484        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. */
    8686        uint32_t usage;
    8787
     
    119119
    120120errno_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);
    122122
    123 errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path, 
    124                 int32_t usage_page, int32_t usage);
     123errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,
     124    int32_t usage_page, int32_t usage);
    125125
    126126void usb_hid_report_remove_last_item(usb_hid_report_path_t *usage_path);
     
    128128void usb_hid_report_null_last_item(usb_hid_report_path_t *usage_path);
    129129
    130 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, 
    131                 int32_t tag, int32_t data);
     130void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path,
     131    int32_t tag, int32_t data);
    132132
    133133int 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);
    135135
    136136usb_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);
    138138
    139139void usb_hid_print_usage_path(usb_hid_report_path_t *path);
  • uspace/lib/usbhid/include/usb/hid/hidreport.h

    rc832ab15 r5b0cf63  
    5858 *         usb_pipe_end_session() or usb_request_get_descriptor().
    5959 */
    60 errno_t usb_hid_process_report_descriptor(usb_device_t *dev, 
     60errno_t usb_hid_process_report_descriptor(usb_device_t *dev,
    6161    usb_hid_report_t *report, uint8_t **report_desc, size_t *report_size);
    6262
  • uspace/lib/usbhid/include/usb/hid/request.h

    rc832ab15 r5b0cf63  
    4747    usb_hid_report_type_t type, uint8_t *buffer, size_t buf_size);
    4848
    49 errno_t usbhid_req_set_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 
     49errno_t usbhid_req_set_protocol(usb_pipe_t *ctrl_pipe, int iface_no,
    5050    usb_hid_protocol_t protocol);
    5151
    5252errno_t usbhid_req_set_idle(usb_pipe_t *ctrl_pipe, int iface_no, uint8_t duration);
    5353
    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, 
     54errno_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,
    5656    size_t *actual_size);
    5757
    58 errno_t usbhid_req_get_protocol(usb_pipe_t *ctrl_pipe, int iface_no, 
     58errno_t usbhid_req_get_protocol(usb_pipe_t *ctrl_pipe, int iface_no,
    5959    usb_hid_protocol_t *protocol);
    6060
  • uspace/lib/usbhost/include/usb/host/usb_bus.h

    rc832ab15 r5b0cf63  
    9292errno_t usb_bus_unregister_ep(usb_bus_t *instance, endpoint_t *ep);
    9393
    94 endpoint_t * usb_bus_find_ep(usb_bus_t *instance,
     94endpoint_t *usb_bus_find_ep(usb_bus_t *instance,
    9595    usb_address_t address, usb_endpoint_t ep, usb_direction_t direction);
    9696
  • uspace/srv/audio/hound/hound.h

    rc832ab15 r5b0cf63  
    7070hound_ctx_t *hound_get_ctx_by_id(hound_t *hound, hound_context_id_t id);
    7171
    72 errno_t hound_add_device(hound_t *hound, service_id_t id, const char* name);
     72errno_t hound_add_device(hound_t *hound, service_id_t id, const char *name);
    7373errno_t hound_add_source(hound_t *hound, audio_source_t *source);
    7474errno_t hound_add_sink(hound_t *hound, audio_sink_t *sink);
     
    7979errno_t hound_remove_source(hound_t *hound, audio_source_t *source);
    8080errno_t hound_remove_sink(hound_t *hound, audio_sink_t *sink);
    81 errno_t hound_connect(hound_t *hound, const char* source_name, const char* sink_name);
    82 errno_t hound_disconnect(hound_t *hound, const char* source_name, const char* sink_name);
     81errno_t hound_connect(hound_t *hound, const char *source_name, const char *sink_name);
     82errno_t hound_disconnect(hound_t *hound, const char *source_name, const char *sink_name);
    8383
    8484#endif
  • uspace/srv/audio/hound/hound_ctx.h

    rc832ab15 r5b0cf63  
    6969
    7070hound_ctx_stream_t *hound_ctx_create_stream(hound_ctx_t *ctx, int flags,
    71         pcm_format_t format, size_t buffer_size);
     71    pcm_format_t format, size_t buffer_size);
    7272void hound_ctx_destroy_stream(hound_ctx_stream_t *stream);
    7373
  • uspace/srv/bd/vbd/disk.h

    rc832ab15 r5b0cf63  
    5252extern errno_t vbds_label_delete(service_id_t);
    5353extern errno_t vbds_part_get_info(vbds_part_id_t, vbd_part_info_t *);
    54 extern errno_t vbds_part_create(service_id_t, vbd_part_spec_t *,vbds_part_id_t *);
     54extern errno_t vbds_part_create(service_id_t, vbd_part_spec_t *, vbds_part_id_t *);
    5555extern errno_t vbds_part_delete(vbds_part_id_t);
    5656extern errno_t vbds_suggest_ptype(service_id_t, label_pcnt_t, label_ptype_t *);
  • uspace/srv/fs/exfat/exfat_bitmap.h

    rc832ab15 r5b0cf63  
    4242struct exfat_bs;
    4343
    44 extern errno_t exfat_bitmap_alloc_clusters(struct exfat_bs *, service_id_t, 
     44extern errno_t exfat_bitmap_alloc_clusters(struct exfat_bs *, service_id_t,
    4545    exfat_cluster_t *, exfat_cluster_t);
    46 extern errno_t exfat_bitmap_append_clusters(struct exfat_bs *, struct exfat_node *, 
     46extern errno_t exfat_bitmap_append_clusters(struct exfat_bs *, struct exfat_node *,
    4747    exfat_cluster_t);
    48 extern errno_t exfat_bitmap_free_clusters(struct exfat_bs *, struct exfat_node *, 
     48extern errno_t exfat_bitmap_free_clusters(struct exfat_bs *, struct exfat_node *,
    4949    exfat_cluster_t);
    50 extern errno_t exfat_bitmap_replicate_clusters(struct exfat_bs *, struct exfat_node *); 
     50extern errno_t exfat_bitmap_replicate_clusters(struct exfat_bs *, struct exfat_node *);
    5151
    5252extern errno_t exfat_bitmap_is_free(struct exfat_bs *, service_id_t, exfat_cluster_t);
    5353extern errno_t exfat_bitmap_set_cluster(struct exfat_bs *, service_id_t, exfat_cluster_t);
    54 extern errno_t exfat_bitmap_clear_cluster(struct exfat_bs *, service_id_t, 
     54extern errno_t exfat_bitmap_clear_cluster(struct exfat_bs *, service_id_t,
    5555    exfat_cluster_t);
    5656
    57 extern errno_t exfat_bitmap_set_clusters(struct exfat_bs *, service_id_t, 
     57extern errno_t exfat_bitmap_set_clusters(struct exfat_bs *, service_id_t,
    5858    exfat_cluster_t, exfat_cluster_t);
    59 extern errno_t exfat_bitmap_clear_clusters(struct exfat_bs *, service_id_t, 
     59extern errno_t exfat_bitmap_clear_clusters(struct exfat_bs *, service_id_t,
    6060    exfat_cluster_t, exfat_cluster_t);
    6161
  • uspace/srv/fs/exfat/exfat_directory.h

    rc832ab15 r5b0cf63  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333#ifndef EXFAT_EXFAT_DIRECTORY_H_
     
    6666extern errno_t exfat_directory_find(exfat_directory_t *, exfat_dentry_clsf_t,
    6767    exfat_dentry_t **);
    68 extern errno_t exfat_directory_find_continue(exfat_directory_t *, 
     68extern errno_t exfat_directory_find_continue(exfat_directory_t *,
    6969    exfat_dentry_clsf_t, exfat_dentry_t **);
    7070
  • uspace/srv/fs/exfat/exfat_fat.h

    rc832ab15 r5b0cf63  
    6161    exfat_cluster_walk((bs), (sid), (fc), NULL, (numc), (uint32_t) -1)
    6262
    63 extern errno_t exfat_cluster_walk(struct exfat_bs *, service_id_t, 
     63extern errno_t exfat_cluster_walk(struct exfat_bs *, service_id_t,
    6464    exfat_cluster_t, exfat_cluster_t *, uint32_t *, uint32_t);
    6565extern errno_t exfat_block_get(block_t **, struct exfat_bs *, struct exfat_node *,
  • uspace/srv/fs/fat/fat_directory.h

    rc832ab15 r5b0cf63  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333#ifndef FAT_FAT_DIRECTORY_H_
  • uspace/srv/fs/locfs/locfs.h

    rc832ab15 r5b0cf63  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333#ifndef LOCFS_LOCFS_H_
  • uspace/srv/hid/isdv4_tablet/isdv4.h

    rc832ab15 r5b0cf63  
    7474
    7575typedef enum {
    76         UNKNOWN, PRESS, RELEASE, PROXIMITY_IN, PROXIMITY_OUT, MOVE
     76        UNKNOWN,
     77        PRESS,
     78        RELEASE,
     79        PROXIMITY_IN,
     80        PROXIMITY_OUT,
     81        MOVE
    7782} isdv4_event_type_t;
    7883
    7984typedef enum {
    80         STYLUS_TIP, STYLUS_ERASER, TOUCH
     85        STYLUS_TIP,
     86        STYLUS_ERASER,
     87        TOUCH
    8188} isdv4_source_type_t;
    8289
  • uspace/srv/hid/output/output.h

    rc832ab15 r5b0cf63  
    4242
    4343typedef struct {
    44         errno_t (* yield)(struct outdev *dev);
    45         errno_t (* claim)(struct outdev *dev);
     44        errno_t (*yield)(struct outdev *dev);
     45        errno_t (*claim)(struct outdev *dev);
    4646       
    47         void (* get_dimensions)(struct outdev *dev, sysarg_t *cols,
     47        void (*get_dimensions)(struct outdev *dev, sysarg_t *cols,
    4848            sysarg_t *rows);
    49         console_caps_t (* get_caps)(struct outdev *dev);
     49        console_caps_t (*get_caps)(struct outdev *dev);
    5050       
    51         void (* cursor_update)(struct outdev *dev, sysarg_t prev_col,
     51        void (*cursor_update)(struct outdev *dev, sysarg_t prev_col,
    5252            sysarg_t prev_row, sysarg_t col, sysarg_t row, bool visible);
    53         void (* char_update)(struct outdev *dev, sysarg_t col, sysarg_t row);
    54         void (* flush)(struct outdev *dev);
     53        void (*char_update)(struct outdev *dev, sysarg_t col, sysarg_t row);
     54        void (*flush)(struct outdev *dev);
    5555} outdev_ops_t;
    5656
  • uspace/srv/hid/output/proto/vt100.h

    rc832ab15 r5b0cf63  
    3535#include <io/charfield.h>
    3636
    37 typedef void (* vt100_putchar_t)(wchar_t ch);
    38 typedef void (* vt100_control_puts_t)(const char *str);
    39 typedef void (* vt100_flush_t)(void);
     37typedef void (*vt100_putchar_t)(wchar_t ch);
     38typedef void (*vt100_control_puts_t)(const char *str);
     39typedef void (*vt100_flush_t)(void);
    4040
    4141typedef struct {
Note: See TracChangeset for help on using the changeset viewer.