Changeset 5a6cc679 in mainline for uspace/app/sbi/src/os
- Timestamp:
- 2018-01-31T02:21:24Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- Location:
- uspace/app/sbi/src/os
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/os/helenos.c
r132ab5d1 r5a6cc679 151 151 * EIO on decoding error. 152 152 */ 153 int os_str_get_char(const char *str, int index, int *out_char)153 errno_t os_str_get_char(const char *str, int index, int *out_char) 154 154 { 155 155 size_t offset; … … 210 210 * @param ptr Place to store pointer to new string. 211 211 */ 212 int os_input_line(const char *prompt, char **ptr)212 errno_t os_input_line(const char *prompt, char **ptr) 213 213 { 214 214 char *line; 215 int rc;215 errno_t rc; 216 216 217 217 if (tinput == NULL) { … … 247 247 * Command is present just one, not duplicated. 248 248 */ 249 int os_exec(char *const cmd[])249 errno_t os_exec(char *const cmd[]) 250 250 { 251 251 task_id_t tid; 252 252 task_wait_t twait; 253 253 task_exit_t texit; 254 int rc;254 errno_t rc; 255 255 int retval; 256 256 -
uspace/app/sbi/src/os/os.h
r132ab5d1 r5a6cc679 35 35 char *os_str_dup(const char *str); 36 36 size_t os_str_length(const char *str); 37 int os_str_get_char(const char *str, int index, int *out_char);37 errno_t os_str_get_char(const char *str, int index, int *out_char); 38 38 char *os_chr_to_astr(wchar_t chr); 39 39 void os_input_disp_help(void); 40 int os_input_line(const char *prompt, char **ptr);41 int os_exec(char * const cmd[]);40 errno_t os_input_line(const char *prompt, char **ptr); 41 errno_t os_exec(char * const cmd[]); 42 42 43 43 void os_store_ef_path(char *path); -
uspace/app/sbi/src/os/posix.c
r132ab5d1 r5a6cc679 114 114 * @return Zero if equal, nonzero if not equal 115 115 */ 116 int os_str_cmp(const char *a, const char *b)116 errno_t os_str_cmp(const char *a, const char *b) 117 117 { 118 118 return strcmp(a, b); … … 147 147 * EIO on decoding error. 148 148 */ 149 int os_str_get_char(const char *str, int index, int *out_char)149 errno_t os_str_get_char(const char *str, int index, int *out_char) 150 150 { 151 151 size_t len; … … 193 193 * @param ptr Place to store pointer to new string. 194 194 */ 195 int os_input_line(const char *prompt, char **ptr)195 errno_t os_input_line(const char *prompt, char **ptr) 196 196 { 197 197 printf("%s", prompt); … … 214 214 * Command is present just one, not duplicated. 215 215 */ 216 int os_exec(char *const cmd[])216 errno_t os_exec(char *const cmd[]) 217 217 { 218 218 pid_t pid;
Note:
See TracChangeset
for help on using the changeset viewer.
