Changeset a000878c in mainline for uspace/srv
- Timestamp:
- 2010-02-25T19:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- uspace/srv
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/adb_mouse/adb_dev.c
ra634485 ra000878c 50 50 int adb_dev_init(void) 51 51 { 52 c har *input = "/dev/adb/mouse";52 const char *input = "/dev/adb/mouse"; 53 53 int input_fd; 54 54 -
uspace/srv/hid/char_mouse/chardev.c
ra634485 ra000878c 52 52 int mouse_port_init(void) 53 53 { 54 c har *input = "/dev/char/ps2b";54 const char *input = "/dev/char/ps2b"; 55 55 int input_fd; 56 56 -
uspace/srv/hid/fb/serial_console.c
ra634485 ra000878c 100 100 }; 101 101 102 void serial_puts(c har *str)102 void serial_puts(const char *str) 103 103 { 104 104 while (*str) -
uspace/srv/hid/fb/serial_console.h
ra634485 ra000878c 43 43 typedef void (*putc_function_t)(char); 44 44 45 void serial_puts(c har *str);45 void serial_puts(const char *str); 46 46 void serial_goto(const unsigned int col, const unsigned int row); 47 47 void serial_clrscr(void); -
uspace/srv/hid/kbd/port/adb.c
ra634485 ra000878c 53 53 int kbd_port_init(void) 54 54 { 55 c har *input = "/dev/adb/kbd";55 const char *input = "/dev/adb/kbd"; 56 56 int input_fd; 57 57 -
uspace/srv/hid/kbd/port/chardev.c
ra634485 ra000878c 52 52 int kbd_port_init(void) 53 53 { 54 c har *input = "/dev/char/ps2a";54 const char *input = "/dev/char/ps2a"; 55 55 int input_fd; 56 56 -
uspace/srv/loader/elf_load.c
ra634485 ra000878c 60 60 #define DPRINTF(...) 61 61 62 static c har *error_codes[] = {62 static const char *error_codes[] = { 63 63 "no error", 64 64 "invalid image", … … 95 95 * pointed to by @a info. 96 96 * 97 * @param file_name 98 * @param so_bias 99 * @param info 100 * 97 * @param file_name Path to the ELF file. 98 * @param so_bias Bias to use if the file is a shared object. 99 * @param info Pointer to a structure for storing information 100 * extracted from the binary. 101 101 * 102 102 * @return EOK on success or negative error code. 103 */ 104 int elf_load_file(char *file_name, size_t so_bias, elf_info_t *info) 103 * 104 */ 105 int elf_load_file(const char *file_name, size_t so_bias, elf_info_t *info) 105 106 { 106 107 elf_ld_t elf; … … 130 131 * earlier with elf_load_file(). This function does not return. 131 132 * 132 * @param info Info structure filled earlier by elf_load_file() 133 * @param info Info structure filled earlier by elf_load_file() 134 * 133 135 */ 134 136 void elf_run(elf_info_t *info, pcb_t *pcb) … … 280 282 * @return NULL terminated description of error. 281 283 */ 282 c har *elf_error(unsigned int rc)284 const char *elf_error(unsigned int rc) 283 285 { 284 286 assert(rc < sizeof(error_codes) / sizeof(char *)); -
uspace/srv/loader/include/elf.h
ra634485 ra000878c 337 337 #endif 338 338 339 extern c har *elf_error(unsigned int rc);339 extern const char *elf_error(unsigned int rc); 340 340 341 341 #endif -
uspace/srv/loader/include/elf_load.h
ra634485 ra000878c 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 51 51 52 52 /** ELF interpreter name or NULL if statically-linked */ 53 c har *interp;53 const char *interp; 54 54 55 55 /** Pointer to the dynamic section */ … … 74 74 } elf_ld_t; 75 75 76 int elf_load_file(c har *file_name, size_t so_bias, elf_info_t *info);76 int elf_load_file(const char *file_name, size_t so_bias, elf_info_t *info); 77 77 void elf_run(elf_info_t *info, pcb_t *pcb); 78 78 void elf_create_pcb(elf_info_t *info, pcb_t *pcb); -
uspace/srv/net/il/ip/ip.c
ra634485 ra000878c 479 479 ERROR_DECLARE; 480 480 481 measured_string_t names[] = {{ "IPV", 3 }, { "IP_CONFIG", 9 }, { "IP_ADDR", 7 }, { "IP_NETMASK", 10 }, { "IP_GATEWAY", 10 }, { "IP_BROADCAST", 12 }, { "ARP", 3 }, { "IP_ROUTING", 10 }};481 measured_string_t names[] = {{ str_dup("IPV"), 3 }, { str_dup("IP_CONFIG"), 9 }, { str_dup("IP_ADDR"), 7 }, { str_dup("IP_NETMASK"), 10 }, { str_dup("IP_GATEWAY"), 10 }, { str_dup("IP_BROADCAST"), 12 }, { str_dup("ARP"), 3 }, { str_dup("IP_ROUTING"), 10 }}; 482 482 measured_string_ref configuration; 483 483 size_t count = sizeof( names ) / sizeof( measured_string_t ); -
uspace/srv/net/net/net.c
ra634485 ra000878c 154 154 * @returns Other error codes as defined for the add_configuration() function. 155 155 */ 156 int read_netif_configuration( c har * name, netif_ref netif );156 int read_netif_configuration( const char * name, netif_ref netif ); 157 157 158 158 /** Networking module global data. … … 413 413 } 414 414 415 int read_netif_configuration( c har * name, netif_ref netif ){415 int read_netif_configuration( const char * name, netif_ref netif ){ 416 416 // read the netif configuration file 417 417 return read_configuration_file( CONF_DIR, name, & netif->configuration ); … … 485 485 486 486 #ifdef CONFIG_NETIF_DP8390 487 c har * conf_files[] = { "lo", "ne2k" };487 const char * conf_files[] = { "lo", "ne2k" }; 488 488 #else 489 c har * conf_files[] = { "lo" };489 const char * conf_files[] = { "lo" }; 490 490 #endif 491 491 -
uspace/srv/net/net/start/netstart.c
ra634485 ra000878c 69 69 * @returns Other error codes as defined for the task_spawn() function. 70 70 */ 71 task_id_t spawn( c har * fname );71 task_id_t spawn( const char * fname ); 72 72 73 73 int main( int argc, char * argv[] ){ … … 97 97 } 98 98 99 task_id_t spawn( c har * fname ){100 c har * argv[ 2 ];99 task_id_t spawn( const char * fname ){ 100 const char * argv[ 2 ]; 101 101 task_id_t res; 102 102 -
uspace/srv/net/netif/lo/lo.c
ra634485 ra000878c 102 102 int netif_get_addr_message( device_id_t device_id, measured_string_ref address ){ 103 103 if( ! address ) return EBADMEM; 104 address->value = DEFAULT_ADDR;104 address->value = str_dup(DEFAULT_ADDR); 105 105 address->length = DEFAULT_ADDR_LEN; 106 106 return EOK; -
uspace/srv/net/nil/eth/eth.c
ra634485 ra000878c 308 308 eth_device_ref device; 309 309 int index; 310 measured_string_t names[ 2 ] = {{ "ETH_MODE", 8 }, { "ETH_DUMMY", 9 }};310 measured_string_t names[ 2 ] = {{ str_dup("ETH_MODE"), 8 }, { str_dup("ETH_DUMMY"), 9 }}; 311 311 measured_string_ref configuration; 312 312 size_t count = sizeof( names ) / sizeof( measured_string_t ); -
uspace/srv/net/structures/module_map.c
ra634485 ra000878c 49 49 GENERIC_CHAR_MAP_IMPLEMENT( modules, module_t ) 50 50 51 int add_module( module_ref * module, modules_ref modules, c har * name,char * filename, services_t service, task_id_t task_id, connect_module_t connect_module ){51 int add_module( module_ref * module, modules_ref modules, const char * name, const char * filename, services_t service, task_id_t task_id, connect_module_t connect_module ){ 52 52 ERROR_DECLARE; 53 53 … … 86 86 } 87 87 88 task_id_t spawn( c har * fname ){89 c har * argv[ 2 ];88 task_id_t spawn( const char * fname ){ 89 const char * argv[ 2 ]; 90 90 task_id_t res; 91 91 -
uspace/srv/net/structures/module_map.h
ra634485 ra000878c 79 79 /** Module name. 80 80 */ 81 c har * name;81 const char * name; 82 82 /** Module full path filename. 83 83 */ 84 c har * filename;84 const char * filename; 85 85 /** Connecting function. 86 86 */ … … 99 99 * @returns ENOMEM if there is not enough memory left. 100 100 */ 101 int add_module( module_ref * module, modules_ref modules, c har * name,char * filename, services_t service, task_id_t task_id, connect_module_t * connect_module );101 int add_module( module_ref * module, modules_ref modules, const char * name, const char * filename, services_t service, task_id_t task_id, connect_module_t * connect_module ); 102 102 103 103 /** Searches and returns the specified module. … … 116 116 * @returns 0 if there is no such module. 117 117 */ 118 task_id_t spawn( c har * fname );118 task_id_t spawn( const char * fname ); 119 119 120 120 #endif -
uspace/srv/net/tl/icmp/icmp.c
ra634485 ra000878c 464 464 ERROR_DECLARE; 465 465 466 measured_string_t names[] = {{ "ICMP_ERROR_REPORTING", 20 }, { "ICMP_ECHO_REPLYING", 18 }};466 measured_string_t names[] = {{ str_dup("ICMP_ERROR_REPORTING"), 20 }, { str_dup("ICMP_ECHO_REPLYING"), 18 }}; 467 467 measured_string_ref configuration; 468 468 size_t count = sizeof( names ) / sizeof( measured_string_t ); -
uspace/srv/net/tl/udp/udp.c
ra634485 ra000878c 192 192 ERROR_DECLARE; 193 193 194 measured_string_t names[] = {{ "UDP_CHECKSUM_COMPUTING", 22 }, { "UDP_AUTOBINDING", 15 }};194 measured_string_t names[] = {{ str_dup("UDP_CHECKSUM_COMPUTING"), 22 }, { str_dup("UDP_AUTOBINDING"), 15 }}; 195 195 measured_string_ref configuration; 196 196 size_t count = sizeof( names ) / sizeof( measured_string_t ); -
uspace/srv/taskmon/taskmon.c
ra634485 ra000878c 49 49 static void fault_event(ipc_callid_t callid, ipc_call_t *call) 50 50 { 51 c har *argv[6];52 c har *fname;51 const char *argv[6]; 52 const char *fname; 53 53 char *dump_fname; 54 54 char *s_taskid; 55 c har **s;55 const char **s; 56 56 57 57 task_id_t taskid; … … 89 89 90 90 printf(NAME ": Executing"); 91 s = argv; 91 92 s = argv; 92 93 while (*s != NULL) { 93 94 printf(" %s", *s);
Note:
See TracChangeset
for help on using the changeset viewer.