Changeset 38aaacc2 in mainline for uspace/app/sbi/src/os/helenos.c
- Timestamp:
- 2010-04-23T21:41:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4f866c
- Parents:
- 074444f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/os/helenos.c
r074444f r38aaacc2 47 47 static tinput_t *tinput = NULL; 48 48 49 /** Concatenate two strings. */ 49 /** Concatenate two strings. 50 * 51 * @param a First string 52 * @param b Second string 53 * @return New string, concatenation of @a a and @a b. 54 */ 50 55 char *os_str_acat(const char *a, const char *b) 51 56 { … … 69 74 } 70 75 71 /** Compare two strings. */ 76 /** Compare two strings. 77 * 78 * @param a First string 79 * @param b Second string 80 * @return Zero if equal, nonzero if not equal 81 */ 72 82 int os_str_cmp(const char *a, const char *b) 73 83 { … … 75 85 } 76 86 77 /** Return number of characters in string. */ 87 /** Return number of characters in string. 88 * 89 * @param str String 90 * @return Number of characters in @a str. 91 */ 78 92 size_t os_str_length(const char *str) 79 93 { … … 81 95 } 82 96 83 /** Duplicate string. */ 97 /** Duplicate string. 98 * 99 * @param str String 100 * @return New string, duplicate of @a str. 101 */ 84 102 char *os_str_dup(const char *str) 85 103 { … … 87 105 } 88 106 89 /** Get character from string at the given index. */ 107 /** Get character from string at the given index. 108 * 109 * @param str String 110 * @param index Character index (starting from zero). 111 * @param out_char Place to store character. 112 * @return EOK on success, EINVAL if index is out of bounds, 113 * EIO on decoding error. 114 */ 90 115 int os_str_get_char(const char *str, int index, int *out_char) 91 116 { … … 116 141 } 117 142 118 /** Read one line of input from the user. */ 143 /** Read one line of input from the user. 144 * 145 * @param ptr Place to store pointer to new string. 146 */ 119 147 int os_input_line(char **ptr) 120 148 { … … 147 175 } 148 176 149 /** Simple command execution. */ 177 /** Simple command execution. 178 * 179 * @param cmd Command and arguments (NULL-terminated list of strings.) 180 * Command is present just one, not duplicated. 181 */ 150 182 int os_exec(char *const cmd[]) 151 183 { … … 166 198 } 167 199 168 /** Store the executable file path via which we were executed. */ 200 /** Store the executable file path via which we were executed. 201 * 202 * @param path Executable path via which we were executed. 203 */ 169 204 void os_store_ef_path(char *path) 170 205 {
Note:
See TracChangeset
for help on using the changeset viewer.