Changeset 883fedc in mainline for uspace/app/sbi/src/os/helenos.c


Ignore:
Timestamp:
2010-04-23T23:09:56Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge from lp:~jsvoboda/helenos/sysel. New: generic classes, autoboxing, delegates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/os/helenos.c

    r80badbe r883fedc  
    4848static tinput_t *tinput = NULL;
    4949
    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 */
    5156char *os_str_acat(const char *a, const char *b)
    5257{
     
    7075}
    7176
    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 */
    7383int os_str_cmp(const char *a, const char *b)
    7484{
     
    7686}
    7787
    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 */
    7993size_t os_str_length(const char *str)
    8094{
     
    8296}
    8397
    84 /** Duplicate string. */
     98/** Duplicate string.
     99 *
     100 * @param str   String
     101 * @return      New string, duplicate of @a str.
     102 */
    85103char *os_str_dup(const char *str)
    86104{
     
    88106}
    89107
    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 */
    91116int os_str_get_char(const char *str, int index, int *out_char)
    92117{
     
    117142}
    118143
    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 */
    120148int os_input_line(char **ptr)
    121149{
     
    148176}
    149177
    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 */
    151183int os_exec(char *const cmd[])
    152184{
     
    168200}
    169201
    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 */
    171206void os_store_ef_path(char *path)
    172207{
Note: See TracChangeset for help on using the changeset viewer.