Changeset a35b458 in mainline for abi/include


Ignore:
Timestamp:
2018-03-02T20:10:49Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

Location:
abi/include/abi
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ddi/irq.h

    r3061bc1 ra35b458  
    4949         */
    5050        CMD_PIO_READ_8 = 1,
    51        
     51
    5252        /** Read 2 bytes from the I/O space.
    5353         *
     
    5555         */
    5656        CMD_PIO_READ_16,
    57        
     57
    5858        /** Read 4 bytes from the I/O space.
    5959         *
     
    6161         */
    6262        CMD_PIO_READ_32,
    63        
     63
    6464        /** Write 1 byte to the I/O space.
    6565         *
     
    6767         */
    6868        CMD_PIO_WRITE_8,
    69        
     69
    7070        /** Write 2 bytes to the I/O space.
    7171         *
     
    7373         */
    7474        CMD_PIO_WRITE_16,
    75        
     75
    7676        /** Write 4 bytes to the I/O space.
    7777         *
     
    7979         */
    8080        CMD_PIO_WRITE_32,
    81        
     81
    8282        /** Write 1 byte to the I/O space.
    8383         *
     
    8585         */
    8686        CMD_PIO_WRITE_A_8,
    87        
     87
    8888        /** Write 2 bytes to the I/O space.
    8989         *
     
    9191         */
    9292        CMD_PIO_WRITE_A_16,
    93        
     93
    9494        /** Write 4 bytes to the I/O space.
    9595         *
     
    9797         */
    9898        CMD_PIO_WRITE_A_32,
    99        
     99
    100100        /** Load value.
    101101         *
     
    103103         */
    104104        CMD_LOAD,
    105        
     105
    106106        /** Perform bitwise conjunction.
    107107         *
     
    109109         */
    110110        CMD_AND,
    111        
     111
    112112        /** Predicate the execution of the following commands.
    113113         *
     
    116116         */
    117117        CMD_PREDICATE,
    118        
     118
    119119        /** Accept the interrupt. */
    120120        CMD_ACCEPT,
    121        
     121
    122122        /** Decline the interrupt. */
    123123        CMD_DECLINE,
  • abi/include/abi/ipc/interfaces.h

    r3061bc1 ra35b458  
    5353         */
    5454        IFACE_EXCHANGE_ATOMIC = 0x00,
    55        
     55
    5656        /** Exchange management via mutual exclusion
    5757         *
     
    6161         */
    6262        IFACE_EXCHANGE_SERIALIZE = 0x01,
    63        
     63
    6464        /** Exchange management via connection cloning
    6565         *
  • abi/include/abi/log.h

    r3061bc1 ra35b458  
    5252        /** More detailed debugging message. */
    5353        LVL_DEBUG2,
    54        
     54
    5555        /** For checking range of values */
    5656        LVL_LIMIT
  • abi/include/abi/mm/as.h

    r3061bc1 ra35b458  
    5353        /** Starting address */
    5454        uintptr_t start_addr;
    55        
     55
    5656        /** Area size */
    5757        size_t size;
    58        
     58
    5959        /** Area flags */
    6060        unsigned int flags;
  • abi/include/abi/proc/uarg.h

    r3061bc1 ra35b458  
    4343        void *uspace_stack;
    4444        size_t uspace_stack_size;
    45        
     45
    4646        void (*uspace_thread_function)(void *);
    4747        void *uspace_thread_arg;
    48        
     48
    4949        struct uspace_arg *uspace_uarg;
    5050} uspace_arg_t;
  • abi/include/abi/syscall.h

    r3061bc1 ra35b458  
    3838typedef enum {
    3939        SYS_KIO = 0,
    40        
     40
    4141        SYS_THREAD_CREATE,
    4242        SYS_THREAD_EXIT,
     
    4444        SYS_THREAD_USLEEP,
    4545        SYS_THREAD_UDELAY,
    46        
     46
    4747        SYS_TASK_GET_ID,
    4848        SYS_TASK_SET_NAME,
     
    5050        SYS_TASK_EXIT,
    5151        SYS_PROGRAM_SPAWN_LOADER,
    52        
     52
    5353        SYS_FUTEX_SLEEP,
    5454        SYS_FUTEX_WAKEUP,
    5555        SYS_SMC_COHERENCE,
    5656        SYS_SMP_MEMORY_BARRIER,
    57        
     57
    5858        SYS_AS_AREA_CREATE,
    5959        SYS_AS_AREA_RESIZE,
    6060        SYS_AS_AREA_CHANGE_FLAGS,
    6161        SYS_AS_AREA_DESTROY,
    62        
     62
    6363        SYS_PAGE_FIND_MAPPING,
    64        
     64
    6565        SYS_IPC_CALL_ASYNC_FAST,
    6666        SYS_IPC_CALL_ASYNC_SLOW,
     
    7373        SYS_IPC_HANGUP,
    7474        SYS_IPC_CONNECT_KBOX,
    75        
     75
    7676        SYS_IPC_EVENT_SUBSCRIBE,
    7777        SYS_IPC_EVENT_UNSUBSCRIBE,
    7878        SYS_IPC_EVENT_UNMASK,
    79        
     79
    8080        SYS_PERM_GRANT,
    8181        SYS_PERM_REVOKE,
    82        
     82
    8383        SYS_PHYSMEM_MAP,
    8484        SYS_PHYSMEM_UNMAP,
     
    8787        SYS_IOSPACE_ENABLE,
    8888        SYS_IOSPACE_DISABLE,
    89        
     89
    9090        SYS_IPC_IRQ_SUBSCRIBE,
    9191        SYS_IPC_IRQ_UNSUBSCRIBE,
    92        
     92
    9393        SYS_SYSINFO_GET_KEYS_SIZE,
    9494        SYS_SYSINFO_GET_KEYS,
     
    9797        SYS_SYSINFO_GET_DATA_SIZE,
    9898        SYS_SYSINFO_GET_DATA,
    99        
     99
    100100        SYS_DEBUG_CONSOLE,
    101        
     101
    102102        SYS_KLOG,
    103        
     103
    104104        SYSCALL_END
    105105} syscall_t;
  • abi/include/abi/udebug.h

    r3061bc1 ra35b458  
    3939
    4040typedef enum { /* udebug_method_t */
    41        
     41
    4242        /** Start debugging the recipient.
    4343         *
     
    4747         */
    4848        UDEBUG_M_BEGIN = 1,
    49        
     49
    5050        /** Finish debugging the recipient.
    5151         *
     
    5454         */
    5555        UDEBUG_M_END,
    56        
     56
    5757        /** Set which events should be captured. */
    5858        UDEBUG_M_SET_EVMASK,
    59        
     59
    6060        /** Make sure the debugged task is still there.
    6161         *
     
    6565         */
    6666        UDEBUG_M_GUARD,
    67        
     67
    6868        /** Run a thread until a debugging event occurs.
    6969         *
     
    7575         */
    7676        UDEBUG_M_GO,
    77        
     77
    7878        /** Stop a thread being debugged.
    7979         *
     
    8383         */
    8484        UDEBUG_M_STOP,
    85        
     85
    8686        /** Read arguments of a syscall.
    8787         *
     
    9191         */
    9292        UDEBUG_M_ARGS_READ,
    93        
     93
    9494        /** Read thread's userspace register state (istate_t).
    9595         *
     
    102102         */
    103103        UDEBUG_M_REGS_READ,
    104        
     104
    105105        /** Read the list of the debugged tasks's threads.
    106106         *
     
    116116         */
    117117        UDEBUG_M_THREAD_READ,
    118        
     118
    119119        /** Read the name of the debugged task.
    120120         *
     
    129129         */
    130130        UDEBUG_M_NAME_READ,
    131        
     131
    132132        /** Read the list of the debugged task's address space areas.
    133133         *
     
    143143         */
    144144        UDEBUG_M_AREAS_READ,
    145        
     145
    146146        /** Read the debugged tasks's memory.
    147147         *
Note: See TracChangeset for help on using the changeset viewer.