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