Changeset a000878c in mainline for uspace/lib/libc/include


Ignore:
Timestamp:
2010-02-25T19:11:25Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
958de16
Parents:
a634485
Message:

make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only

Location:
uspace/lib/libc/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/loader/loader.h

    ra634485 ra000878c  
    5151extern int loader_set_cwd(loader_t *);
    5252extern int loader_set_pathname(loader_t *, const char *);
    53 extern int loader_set_args(loader_t *, char *const[]);
     53extern int loader_set_args(loader_t *, const char *const[]);
    5454extern int loader_set_files(loader_t *, fdi_node_t *const[]);
    5555extern int loader_load_program(loader_t *);
  • uspace/lib/libc/include/sysinfo.h

    ra634485 ra000878c  
    4040#include <string.h>
    4141
    42 sysarg_t sysinfo_value(char *name);
     42sysarg_t sysinfo_value(const char *name);
    4343
    4444#endif
  • uspace/lib/libc/include/task.h

    ra634485 ra000878c  
    4747extern task_id_t task_get_id(void);
    4848extern int task_set_name(const char *name);
    49 extern task_id_t task_spawn(const char *path, char *const argv[]);
     49extern task_id_t task_spawn(const char *path, const char *const argv[]);
    5050extern int task_wait(task_id_t id, task_exit_t *texit, int *retval);
    5151extern int task_retval(int val);
  • uspace/lib/libc/include/thread.h

    ra634485 ra000878c  
    4545extern void __thread_main(uspace_arg_t *);
    4646
    47 extern int thread_create(void (*)(void *), void *, char *, thread_id_t *);
     47extern int thread_create(void (*)(void *), void *, const char *, thread_id_t *);
    4848extern void thread_exit(int) __attribute__ ((noreturn));
    4949extern void thread_detach(thread_id_t);
Note: See TracChangeset for help on using the changeset viewer.