Changeset 8d2dd7f2 in mainline for uspace/app


Ignore:
Timestamp:
2017-05-13T19:03:14Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c96634
Parents:
e48947e
Message:

Reduce the number of files that include <sys/types.h>

Location:
uspace/app
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    re48947e r8d2dd7f2  
    3434#include <stdio.h>
    3535#include <stdlib.h>
     36#include <stdint.h>
    3637#include <dirent.h>
    3738#include <getopt.h>
    38 #include <sys/types.h>
    3939#include <vfs/vfs.h>
    4040#include <str.h>
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    re48947e r8d2dd7f2  
    2929#include <stdio.h>
    3030#include <stdlib.h>
     31#include <stdint.h>
    3132#include <dirent.h>
    32 #include <sys/types.h>
    3333#include <getopt.h>
    3434#include <stdarg.h>
  • uspace/app/bdsh/cmds/modules/mkfile/mkfile.c

    re48947e r8d2dd7f2  
    3030#include <stdio.h>
    3131#include <stdlib.h>
     32#include <stdint.h>
    3233#include <dirent.h>
    33 #include <sys/types.h>
    3434#include <macros.h>
    3535#include <getopt.h>
  • uspace/app/bdsh/cmds/modules/touch/touch.c

    re48947e r8d2dd7f2  
    3434#include <stdio.h>
    3535#include <stdlib.h>
     36#include <stdint.h>
    3637#include <dirent.h>
    37 #include <sys/types.h>
    3838#include <str.h>
    3939#include <getopt.h>
  • uspace/app/bithenge/test.c

    re48947e r8d2dd7f2  
    3939#include <stdlib.h>
    4040#include <stddef.h>
    41 #include <sys/types.h>
     41#include <stdint.h>
    4242#include <bithenge/blob.h>
    4343#include <bithenge/source.h>
  • uspace/app/blkdump/blkdump.c

    re48947e r8d2dd7f2  
    4040#include <stdio.h>
    4141#include <stdlib.h>
     42#include <stdint.h>
    4243#include <block.h>
    4344#include <mem.h>
     
    4546#include <byteorder.h>
    4647#include <scsi/mmc.h>
    47 #include <sys/types.h>
    4848#include <sys/typefmt.h>
    4949#include <inttypes.h>
  • uspace/app/bnchmark/bnchmark.c

    re48947e r8d2dd7f2  
    4040#include <stdio.h>
    4141#include <stdlib.h>
     42#include <stdint.h>
    4243#include <mem.h>
    4344#include <loc.h>
    4445#include <byteorder.h>
    45 #include <sys/types.h>
    4646#include <sys/typefmt.h>
    4747#include <inttypes.h>
  • uspace/app/dnscfg/dnscfg.c

    re48947e r8d2dd7f2  
    4242#include <stdio.h>
    4343#include <stdlib.h>
     44#include <stdint.h>
    4445#include <str_error.h>
    45 #include <sys/types.h>
    4646
    4747#define NAME "dnscfg"
  • uspace/app/edit/search.h

    re48947e r8d2dd7f2  
    3838
    3939#include <str.h>
     40#include <sys/types.h>
    4041
    4142struct search;
  • uspace/app/getterm/getterm.c

    re48947e r8d2dd7f2  
    3535 */
    3636
    37 #include <sys/types.h>
     37#include <stdint.h>
    3838#include <stdio.h>
    3939#include <task.h>
  • uspace/app/inet/inet.c

    re48947e r8d2dd7f2  
    4141#include <stdio.h>
    4242#include <stdlib.h>
     43#include <stdint.h>
    4344#include <str_error.h>
    44 #include <sys/types.h>
    4545
    4646#define NAME  "inet"
  • uspace/app/loc/loc.c

    re48947e r8d2dd7f2  
    3737#include <stdio.h>
    3838#include <stdlib.h>
     39#include <stdint.h>
    3940#include <str.h>
    40 #include <sys/types.h>
    4141#include <sys/typefmt.h>
    4242
  • uspace/app/mkexfat/exfat.h

    re48947e r8d2dd7f2  
    3232 */
    3333
    34 #include <sys/types.h>
    3534#include <stdint.h>
    3635#include <stdbool.h>
  • uspace/app/mkexfat/mkexfat.c

    re48947e r8d2dd7f2  
    3838
    3939#include <stdio.h>
     40#include <stdbool.h>
     41#include <stdint.h>
    4042#include <block.h>
    4143#include <assert.h>
     
    4446#include <byteorder.h>
    4547#include <align.h>
    46 #include <sys/types.h>
    4748#include <sys/typefmt.h>
    48 #include <stdbool.h>
    4949#include <str.h>
    5050#include <getopt.h>
  • uspace/app/mkfat/fat.h

    re48947e r8d2dd7f2  
    3434#define FAT_FAT_H_
    3535
    36 #include <sys/types.h>
     36#include <stdint.h>
    3737
    3838#define BS_BLOCK                0
  • uspace/app/mkfat/mkfat.c

    re48947e r8d2dd7f2  
    4040#include <stdio.h>
    4141#include <stdlib.h>
     42#include <stdint.h>
    4243#include <block.h>
    4344#include <mem.h>
    4445#include <loc.h>
    4546#include <byteorder.h>
    46 #include <sys/types.h>
    4747#include <sys/typefmt.h>
    4848#include <inttypes.h>
  • uspace/app/netecho/comm.c

    re48947e r8d2dd7f2  
    4343#include <stdio.h>
    4444#include <stdlib.h>
     45#include <stdint.h>
    4546#include <str_error.h>
    46 #include <sys/types.h>
    4747
    4848#include "comm.h"
  • uspace/app/netecho/comm.h

    re48947e r8d2dd7f2  
    3737#define COMM_H
    3838
    39 #include <sys/types.h>
     39#include <stddef.h>
    4040
    4141extern int comm_open_listen(const char *);
  • uspace/app/netecho/netecho.h

    re48947e r8d2dd7f2  
    3737#define NETECHO_H
    3838
    39 #include <sys/types.h>
     39#include <stddef.h>
    4040
    4141extern void netecho_received(void *, size_t);
  • uspace/app/nic/nic.c

    re48947e r8d2dd7f2  
    3939#include <stdio.h>
    4040#include <stdlib.h>
     41#include <stddef.h>
    4142#include <str_error.h>
    42 #include <sys/types.h>
    4343
    4444#define NAME  "nic"
  • uspace/app/nterm/conn.c

    re48947e r8d2dd7f2  
    3434
    3535#include <byteorder.h>
    36 #include <stdbool.h>
    3736#include <errno.h>
    3837#include <fibril.h>
     
    4241#include <stdio.h>
    4342#include <stdlib.h>
     43#include <stdbool.h>
     44#include <stddef.h>
    4445#include <str_error.h>
    45 #include <sys/types.h>
    4646
    4747#include "conn.h"
  • uspace/app/nterm/conn.h

    re48947e r8d2dd7f2  
    3737#define CONN_H
    3838
    39 #include <sys/types.h>
     39#include <stddef.h>
    4040
    4141extern int conn_open(const char *);
  • uspace/app/nterm/nterm.h

    re48947e r8d2dd7f2  
    3737#define NTERM_H
    3838
    39 #include <sys/types.h>
     39#include <stddef.h>
    4040
    4141extern void nterm_received(void *, size_t);
  • uspace/app/ping/ping.c

    re48947e r8d2dd7f2  
    3434
    3535#include <async.h>
    36 #include <stdbool.h>
    3736#include <errno.h>
    3837#include <fibril_synch.h>
     
    4241#include <io/console.h>
    4342#include <getopt.h>
     43#include <stdbool.h>
    4444#include <stdio.h>
    4545#include <stdlib.h>
     46#include <stddef.h>
     47#include <stdint.h>
    4648#include <str.h>
    4749#include <str_error.h>
    48 #include <sys/types.h>
    4950
    5051#define NAME "ping"
  • uspace/app/redir/redir.c

    re48947e r8d2dd7f2  
    3535 */
    3636
    37 #include <sys/types.h>
    3837#include <stdlib.h>
    3938#include <str.h>
  • uspace/app/sbi/src/bigint_t.h

    re48947e r8d2dd7f2  
    3030#define BIGINT_T_H_
    3131
    32 #include <sys/types.h>
    3332#include <stdint.h>
     33#include <stddef.h>
     34#include <stdbool.h>
    3435
    3536typedef uint8_t bigint_word_t;
     
    4748
    4849        /** Sign. */
    49         bool_t negative;
     50        bool negative;
    5051
    5152        /** Digits starting from the least significant. */
  • uspace/app/sysinfo/sysinfo.c

    re48947e r8d2dd7f2  
    3737#include <stdio.h>
    3838#include <stddef.h>
     39#include <stdint.h>
    3940#include <sysinfo.h>
    4041#include <malloc.h>
    41 #include <sys/types.h>
    4242
    4343static void dump_bytes_hex(char *data, size_t size)
  • uspace/app/sysinst/futil.c

    re48947e r8d2dd7f2  
    3838#include <stdio.h>
    3939#include <stdlib.h>
     40#include <stddef.h>
    4041#include <vfs/vfs.h>
    41 #include <sys/types.h>
    4242#include <dirent.h>
    4343
  • uspace/app/sysinst/futil.h

    re48947e r8d2dd7f2  
    3939
    4040#include <ipc/loc.h>
    41 #include <sys/types.h>
     41#include <stddef.h>
    4242
    4343extern int futil_copy_file(const char *, const char *);
  • uspace/app/taskdump/elf_core.c

    re48947e r8d2dd7f2  
    5252#include <stdio.h>
    5353#include <stdlib.h>
     54#include <stdint.h>
     55#include <stddef.h>
    5456#include <errno.h>
    55 #include <sys/types.h>
    5657#include <mem.h>
    57 #include <stdint.h>
    5858#include <as.h>
    5959#include <udebug.h>
  • uspace/app/taskdump/include/symtab.h

    re48947e r8d2dd7f2  
    3737
    3838#include <elf/elf.h>
    39 #include <sys/types.h>
     39#include <stddef.h>
    4040
    4141typedef struct {
  • uspace/app/taskdump/symtab.c

    re48947e r8d2dd7f2  
    3939#include <stdio.h>
    4040#include <stdlib.h>
     41#include <stddef.h>
    4142#include <errno.h>
    42 #include <sys/types.h>
    4343#include <vfs/vfs.h>
    4444
  • uspace/app/taskdump/taskdump.c

    re48947e r8d2dd7f2  
    3838#include <stdio.h>
    3939#include <stdlib.h>
     40#include <stddef.h>
     41#include <stdbool.h>
    4042#include <errno.h>
    4143#include <udebug.h>
    4244#include <task.h>
    4345#include <as.h>
    44 #include <sys/types.h>
    4546#include <sys/typefmt.h>
    4647#include <libarch/istate.h>
    4748#include <macros.h>
    4849#include <assert.h>
    49 #include <stdbool.h>
    5050
    5151#include <symtab.h>
  • uspace/app/tester/hw/misc/virtchar1.c

    re48947e r8d2dd7f2  
    3838#include <errno.h>
    3939#include <str_error.h>
    40 #include <sys/types.h>
     40#include <stddef.h>
    4141#include <async.h>
    4242#include <char_dev_iface.h>
  • uspace/app/tester/hw/serial/serial1.c

    re48947e r8d2dd7f2  
    4040#include <stdio.h>
    4141#include <stddef.h>
    42 #include <sys/types.h>
    4342#include <async.h>
    4443#include <thread.h>
  • uspace/app/tester/mm/common.h

    re48947e r8d2dd7f2  
    3636#define MM_COMMON_H_
    3737
    38 #include <sys/types.h>
     38#include <stddef.h>
    3939#include <stdbool.h>
    4040#include <adt/list.h>
  • uspace/app/tester/tester.h

    re48947e r8d2dd7f2  
    3636#define TESTER_H_
    3737
    38 #include <sys/types.h>
    3938#include <stdbool.h>
    4039#include <stacktrace.h>
  • uspace/app/tester/vfs/vfs1.c

    re48947e r8d2dd7f2  
    3030#include <stdio.h>
    3131#include <stdlib.h>
     32#include <stddef.h>
    3233#include <str.h>
    3334#include <vfs/vfs.h>
    3435#include <dirent.h>
    3536#include <loc.h>
    36 #include <sys/types.h>
    3737#include "../tester.h"
    3838
  • uspace/app/testread/testread.c

    re48947e r8d2dd7f2  
    4949#include <stdio.h>
    5050#include <stdlib.h>
     51#include <stddef.h>
     52#include <stdint.h>
    5153#include <mem.h>
    5254#include <loc.h>
    5355#include <byteorder.h>
    54 #include <sys/types.h>
    5556#include <sys/typefmt.h>
    5657#include <inttypes.h>
  • uspace/app/tetris/screen.h

    re48947e r8d2dd7f2  
    5555#define putpad(s)  tputs(s, 1, put)
    5656
    57 #include <sys/types.h>
     57#include <libarch/types.h>
    5858#include <io/console.h>
    5959#include <async.h>
  • uspace/app/tetris/tetris.c

    re48947e r8d2dd7f2  
    5656
    5757#include <sys/time.h>
    58 #include <sys/types.h>
    5958#include <err.h>
    6059#include <errno.h>
  • uspace/app/trace/trace.c

    re48947e r8d2dd7f2  
    3535#include <stdio.h>
    3636#include <stdlib.h>
     37#include <stdbool.h>
     38#include <stdint.h>
     39#include <stddef.h>
    3740#include <fibril.h>
    3841#include <errno.h>
     
    4245#include <mem.h>
    4346#include <str.h>
    44 #include <stdbool.h>
    4547#include <loader/loader.h>
    4648#include <io/console.h>
    4749#include <io/keycode.h>
    4850#include <fibril_synch.h>
    49 #include <sys/types.h>
    5051#include <sys/typefmt.h>
    5152#include <vfs/vfs.h>
  • uspace/app/trace/trace.h

    re48947e r8d2dd7f2  
    3636#define TRACE_H_
    3737
    38 #include <sys/types.h>
     38#include <libarch/types.h>
    3939
    4040/**
  • uspace/app/vuhid/items.h

    re48947e r8d2dd7f2  
    3636#define VUK_ITEM_H_
    3737
    38 #include <sys/types.h>
     38#include <stdint.h>
    3939
    4040typedef uint8_t report_descriptor_data_t[];
  • uspace/app/websrv/websrv.c

    re48947e r8d2dd7f2  
    3434 */
    3535
    36 #include <stdbool.h>
    3736#include <errno.h>
    3837#include <assert.h>
     38#include <stdbool.h>
    3939#include <stdio.h>
    40 #include <sys/types.h>
     40#include <stdint.h>
     41#include <stddef.h>
    4142#include <stdlib.h>
    4243#include <task.h>
Note: See TracChangeset for help on using the changeset viewer.