Changeset 4339f09 in mainline
- Timestamp:
- 2013-06-28T07:46:31Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e52b4b5
- Parents:
- 3de67b4c (diff), dba3e2c (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. - Files:
-
- 2 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r3de67b4c r4339f09 105 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 107 -Wall -We xtra -Wno-unused-parameter -Wmissing-prototypes \107 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 108 108 -Werror-implicit-function-declaration -Wwrite-strings \ 109 109 -integrated-as \ -
kernel/generic/include/lib/memfnc.h
r3de67b4c r4339f09 37 37 38 38 #include <typedefs.h> 39 #include <cc.h> 39 40 40 41 extern void *memset(void *, int, size_t) 41 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));42 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 42 43 extern void *memcpy(void *, const void *, size_t) 43 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));44 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 44 45 45 46 #endif -
kernel/test/print/print4.c
r3de67b4c r4339f09 36 36 uint8_t group; 37 37 for (group = 1; group < 4; group++) { 38 TPRINTF("%# " PRIx8 ": ", group << 5);38 TPRINTF("%#x: ", group << 5); 39 39 40 40 uint8_t index; … … 52 52 53 53 for (group = 4; group < 8; group++) { 54 TPRINTF("%# " PRIx8 ": ", group << 5);54 TPRINTF("%#x: ", group << 5); 55 55 56 56 uint8_t index; -
tools/mkext2.py
r3de67b4c r4339f09 39 39 import uuid 40 40 from imgutil import * 41 42 if sys.version >= '3': 43 xrange = range 41 44 42 45 GDE_SIZE = 32 … … 530 533 data.flags = 0 531 534 blockconv = lambda x: 0 if x == None else x 532 data.direct_blocks = map(blockconv, self.direct)533 data.indirect_blocks = map(blockconv, self.indirect)535 data.direct_blocks = list(map(blockconv, self.direct)) 536 data.indirect_blocks = list(map(blockconv, self.indirect)) 534 537 data.version = 0 535 538 data.file_acl = 0 … … 567 570 head.inode_type = self.type 568 571 inode.write(head.pack()) 569 inode.write(self.name+'\0' )572 inode.write(self.name+'\0'.encode()) 570 573 inode.align_pos(4) 571 574 -
uspace/app/bdsh/cmds/modules/help/help.c
r3de67b4c r4339f09 98 98 builtin_t *cmd; 99 99 module_t *mod; 100 unsigned int i;101 100 102 101 printf("\n Bdsh built-in commands:\n"); … … 104 103 105 104 /* First, show a list of built in commands that are available in this mode */ 106 for (cmd = builtins; cmd->name != NULL; cmd++ , i++) {105 for (cmd = builtins; cmd->name != NULL; cmd++) { 107 106 if (is_builtin_alias(cmd->name)) 108 107 printf(" %-16s\tAlias for `%s'\n", cmd->name, … … 112 111 } 113 112 114 i = 0;115 116 113 /* Now, show a list of module commands that are available in this mode */ 117 for (mod = modules; mod->name != NULL; mod++ , i++) {114 for (mod = modules; mod->name != NULL; mod++) { 118 115 if (is_module_alias(mod->name)) 119 116 printf(" %-16s\tAlias for `%s'\n", mod->name, -
uspace/app/bdsh/cmds/modules/pwd/pwd.c
r3de67b4c r4339f09 55 55 } 56 56 57 memset(buff, 0, sizeof(buff));57 memset(buff, 0, PATH_MAX); 58 58 getcwd(buff, PATH_MAX); 59 59 -
uspace/app/bdsh/cmds/modules/rm/rm.c
r3de67b4c r4339f09 99 99 if (NULL == (rm->nwd = (char *) malloc(PATH_MAX))) 100 100 return 0; 101 memset(rm->nwd, 0, sizeof(rm->nwd));101 memset(rm->nwd, 0, PATH_MAX); 102 102 103 103 if (NULL == (rm->owd = (char *) malloc(PATH_MAX))) 104 104 return 0; 105 memset(rm->owd, 0, sizeof(rm->owd));105 memset(rm->owd, 0, PATH_MAX); 106 106 107 107 if (NULL == (rm->cwd = (char *) malloc(PATH_MAX))) 108 108 return 0; 109 memset(rm->cwd, 0, sizeof(rm->cwd));109 memset(rm->cwd, 0, PATH_MAX); 110 110 111 111 chdir("."); … … 298 298 break; 299 299 } 300 memset(buff, 0, sizeof(buff));300 memset(buff, 0, len); 301 301 snprintf(buff, len, "%s", argv[i]); 302 302 -
uspace/app/bdsh/exec.c
r3de67b4c r4339f09 83 83 /* We now have n places to look for the command */ 84 84 for (i = 0; search_dir[i] != NULL; i++) { 85 memset(found, 0, sizeof(found));85 memset(found, 0, PATH_MAX); 86 86 snprintf(found, PATH_MAX, "%s/%s", search_dir[i], cmd); 87 87 if (-1 != try_access(found)) { -
uspace/app/edit/search_impl.h
r3de67b4c r4339f09 40 40 41 41 /** Search state */ 42 typedefstruct search {42 struct search { 43 43 /* Note: This structure is opaque for the user. */ 44 44 … … 49 49 void *client_data; 50 50 search_ops_t ops; 51 } search_t;51 }; 52 52 53 53 #endif -
uspace/app/edit/sheet_impl.h
r3de67b4c r4339f09 40 40 41 41 /** Sheet */ 42 typedefstruct sheet {42 struct sheet { 43 43 /* Note: This structure is opaque for the user. */ 44 44 … … 48 48 49 49 list_t tags; 50 } sheet_t;50 }; 51 51 52 52 #endif -
uspace/drv/bus/usb/vhc/hub/virthubops.c
r3de67b4c r4339f09 299 299 size_t *act_size) 300 300 { 301 int rc ;301 int rc = ENOTSUP; 302 302 size_t port = request->index - 1; 303 303 usb_hub_class_feature_t feature = request->value; -
uspace/drv/char/ps2mouse/ps2mouse.c
r3de67b4c r4339f09 70 70 #define PS2_BUTTON_MASK(button) (1 << button) 71 71 72 #define MOUSE_READ_BYTE_TEST(sess, value ) \72 #define MOUSE_READ_BYTE_TEST(sess, value_) \ 73 73 do { \ 74 uint8_t value = (value_); \ 74 75 uint8_t data = 0; \ 75 76 const ssize_t size = chardev_read(sess, &data, 1); \ … … 78 79 return size < 0 ? size : EIO; \ 79 80 } \ 80 if (data != (value)) { \81 if (data != value) { \ 81 82 ddf_msg(LVL_DEBUG, "Failed testing byte: got %hhx vs. %hhx)", \ 82 data, (value)); \83 data, value); \ 83 84 return EIO; \ 84 85 } \ 85 86 } while (0) 86 87 87 #define MOUSE_WRITE_BYTE(sess, value ) \88 #define MOUSE_WRITE_BYTE(sess, value_) \ 88 89 do { \ 90 uint8_t value = (value_); \ 89 91 uint8_t data = (value); \ 90 92 const ssize_t size = chardev_write(sess, &data, 1); \ -
uspace/drv/nic/rtl8139/driver.c
r3de67b4c r4339f09 620 620 if (size == 0 || size > RTL8139_FRAME_MAX_LENGTH) { 621 621 ddf_msg(LVL_ERROR, "Receiver error -> receiver reset (size: %4" PRIu16 ", " 622 "header 0x%4" PRIx 16 ". Offset: %d)", size, frame_header,622 "header 0x%4" PRIx32 ". Offset: %" PRIu16 ")", size, frame_header, 623 623 rx_offset); 624 624 goto rx_err; -
uspace/lib/c/generic/devman.c
r3de67b4c r4339f09 413 413 sysarg_t dretval; 414 414 415 exch = devman_exchange_begin_blocking( LOC_PORT_CONSUMER);415 exch = devman_exchange_begin_blocking(DEVMAN_CLIENT); 416 416 417 417 ipc_call_t answer; -
uspace/lib/c/include/bd_srv.h
r3de67b4c r4339f09 57 57 } bd_srv_t; 58 58 59 typedefstruct bd_ops {59 struct bd_ops { 60 60 int (*open)(bd_srvs_t *, bd_srv_t *); 61 61 int (*close)(bd_srv_t *); … … 65 65 int (*get_block_size)(bd_srv_t *, size_t *); 66 66 int (*get_num_blocks)(bd_srv_t *, aoff64_t *); 67 } bd_ops_t;67 }; 68 68 69 69 extern void bd_srvs_init(bd_srvs_t *); -
uspace/lib/c/include/io/con_srv.h
r3de67b4c r4339f09 66 66 } con_srv_t; 67 67 68 typedefstruct con_ops {68 struct con_ops { 69 69 int (*open)(con_srvs_t *, con_srv_t *); 70 70 int (*close)(con_srv_t *); … … 83 83 void (*set_cursor_visibility)(con_srv_t *, bool); 84 84 int (*get_event)(con_srv_t *, cons_event_t *); 85 } con_ops_t;85 }; 86 86 87 87 extern void con_srvs_init(con_srvs_t *); -
uspace/lib/c/include/mem.h
r3de67b4c r4339f09 37 37 38 38 #include <sys/types.h> 39 #include <cc.h> 39 40 40 41 extern void *memset(void *, int, size_t) 41 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));42 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 42 43 extern void *memcpy(void *, const void *, size_t) 43 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));44 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 44 45 extern void *memmove(void *, const void *, size_t); 45 46 extern int memcmp(const void *, const void *, size_t); -
uspace/lib/draw/drawctx.h
r3de67b4c r4339f09 47 47 #include "font.h" 48 48 49 typedefstruct drawctx {49 struct drawctx { 50 50 link_t link; 51 51 list_t list; … … 62 62 sysarg_t clip_width; 63 63 sysarg_t clip_height; 64 } drawctx_t;64 }; 65 65 66 66 extern void drawctx_init(drawctx_t *, surface_t *); -
uspace/lib/gui/connection.h
r3de67b4c r4339f09 38 38 39 39 #include <sys/types.h> 40 41 struct widget; 42 typedef struct widget widget_t; 40 #include "widget.h" 43 41 44 42 typedef sysarg_t signal_t; -
uspace/lib/gui/widget.h
r3de67b4c r4339f09 51 51 * any derived widget structure. 52 52 */ 53 typedefstruct widget {53 struct widget { 54 54 link_t link; 55 55 widget_t *parent; /**< Parent widget of this widget. NULL for root widget. */ … … 116 116 * also acquire or release mouse grab. */ 117 117 void (*handle_position_event)(widget_t *, pos_event_t); 118 } widget_t;118 }; 119 119 120 120 /* -
uspace/lib/gui/window.h
r3de67b4c r4339f09 47 47 #include "widget.h" 48 48 49 typedefstruct window {49 struct window { 50 50 bool is_main; /**< True for the main window of the application. */ 51 51 bool is_decorated; /**< True if the window decorations should be rendered. */ … … 60 60 fibril_mutex_t guard; /**< Mutex guarding window surface. */ 61 61 surface_t *surface; /**< Window surface shared with compositor. */ 62 } window_t;62 }; 63 63 64 64 /** -
uspace/lib/usbhid/src/hidiface.c
r3de67b4c r4339f09 90 90 return EINVAL; 91 91 92 if ( (buf == NULL))92 if (buf == NULL) 93 93 return ENOMEM; 94 94 … … 184 184 return EINVAL; 185 185 186 if ( (buf == NULL))186 if (buf == NULL) 187 187 return ENOMEM; 188 188 -
uspace/srv/hid/input/port/adb.c
r3de67b4c r4339f09 118 118 ipc_callid_t callid = async_get_call(&call); 119 119 120 int retval ;120 int retval = EOK; 121 121 122 122 if (!IPC_GET_IMETHOD(call)) { -
uspace/srv/hid/input/port/adb_mouse.c
r3de67b4c r4339f09 54 54 ipc_callid_t callid = async_get_call(&call); 55 55 56 int retval ;56 int retval = EOK; 57 57 58 58 if (!IPC_GET_IMETHOD(call)) { -
uspace/srv/hid/input/port/chardev.c
r3de67b4c r4339f09 148 148 } 149 149 150 int retval ;150 int retval = EOK; 151 151 152 152 switch (IPC_GET_IMETHOD(call)) { -
uspace/srv/hid/isdv4_tablet/isdv4.h
r3de67b4c r4339f09 76 76 } isdv4_source_type_t; 77 77 78 typedefstruct isdv4_event {78 struct isdv4_event { 79 79 isdv4_event_type_t type; 80 80 isdv4_source_type_t source; … … 83 83 unsigned int pressure; 84 84 unsigned int button; 85 } isdv4_event_t;85 }; 86 86 87 87 extern int isdv4_init(isdv4_state_t *, async_sess_t *, isdv4_event_fn);
Note:
See TracChangeset
for help on using the changeset viewer.