Changes in uspace/app/sbi/src/os/posix.c [38aaacc2:074444f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/os/posix.c
r38aaacc2 r074444f 47 47 * The string functions are in fact standard C, but would not work under 48 48 * HelenOS. 49 *50 * XXX String functions used here only work with 8-bit text encoding.51 49 */ 52 50 53 /** Concatenate two strings. 54 * 55 * @param a First string 56 * @param b Second string 57 * @return New string, concatenation of @a a and @a b. 58 */ 51 /** Concatenate two strings. */ 59 52 char *os_str_acat(const char *a, const char *b) 60 53 { … … 78 71 } 79 72 80 /** Compare two strings. 81 * 82 * @param a First string 83 * @param b Second string 84 * @return Zero if equal, nonzero if not equal 85 */ 73 /** Compare two strings. */ 86 74 int os_str_cmp(const char *a, const char *b) 87 75 { … … 89 77 } 90 78 91 /** Return number of characters in string. 92 * 93 * @param str String 94 * @return Number of characters in @a str. 95 */ 79 /** Return number of characters in string. */ 96 80 size_t os_str_length(const char *str) 97 81 { … … 99 83 } 100 84 101 /** Duplicate string. 102 * 103 * @param str String 104 * @return New string, duplicate of @a str. 105 */ 85 /** Duplicate string. */ 106 86 char *os_str_dup(const char *str) 107 87 { … … 109 89 } 110 90 111 /** Get character from string at the given index. 112 * 113 * @param str String 114 * @param index Character index (starting from zero). 115 * @param out_char Place to store character. 116 * @return EOK on success, EINVAL if index is out of bounds, 117 * EIO on decoding error. 118 */ 91 /** Get character from string at the given index. */ 119 92 int os_str_get_char(const char *str, int index, int *out_char) 120 93 { … … 138 111 } 139 112 140 /** Read one line of input from the user. 141 * 142 * @param ptr Place to store pointer to new string. 143 */ 113 /** Read one line of input from the user. */ 144 114 int os_input_line(char **ptr) 145 115 { … … 156 126 } 157 127 158 /** Simple command execution. 159 * 160 * @param cmd Command and arguments (NULL-terminated list of strings.) 161 * Command is present just one, not duplicated. 162 */ 128 /** Simple command execution. */ 163 129 int os_exec(char *const cmd[]) 164 130 { … … 191 157 } 192 158 193 /** Store the executable file path via which we were executed. 194 * 195 * @param path Executable path via which we were executed. 196 */ 159 /** Store the executable file path via which we were executed. */ 197 160 void os_store_ef_path(char *path) 198 161 {
Note:
See TracChangeset
for help on using the changeset viewer.