Changeset 1b20da0 in mainline for uspace/lib/posix


Ignore:
Timestamp:
2018-02-28T17:52:03Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3061bc1
Parents:
df6ded8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
Message:

style: Remove trailing whitespace on non-empty lines, in certain file types.

Command used: tools/srepl '\([^[:space:]]\)\s\+$' '\1' -- *.c *.h *.py *.sh *.s *.S *.ag

Location:
uspace/lib/posix
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/float.h

    rdf6ded8 r1b20da0  
    7575#undef LDBL_MAX
    7676#define LDBL_MAX __LDBL_MAX__
    77 #undef LDBL_MANT_DIG 
     77#undef LDBL_MANT_DIG
    7878#define LDBL_MANT_DIG __LDBL_MANT_DIG__
    7979#else
  • uspace/lib/posix/src/fnmatch.c

    rdf6ded8 r1b20da0  
    3737 * of adding POSIX-like locale support to the system in the future. Functions
    3838 * that are only necessary for locale support currently simply use single
    39  * characters for "collation elements". 
     39 * characters for "collation elements".
    4040 * When (or if) locales are properly implemented, extending this implementation
    4141 * will be fairly straightforward.
     
    194194/**
    195195 * Compare function for binary search in the _char_classes array.
    196  * 
     196 *
    197197 * @param key Key of the searched element.
    198198 * @param elem Element of _char_classes array.
     
    207207/**
    208208 * Returns whether the given character belongs to the specified character class.
    209  * 
     209 *
    210210 * @param cname Name of the character class.
    211211 * @param c Character.
     
    231231 * Tries to parse an initial part of the pattern as a character class pattern,
    232232 * and if successful, matches the beginning of the given string against the class.
    233  * 
     233 *
    234234 * @param pattern Pointer to the pattern to match. Must begin with a class
    235235 *    specifier and is repositioned to the first character after the specifier
     
    257257 * Reads the next collating element in the pattern, taking into account
    258258 * locale (if supported) and flags (see fnmatch()).
    259  * 
     259 *
    260260 * @param pattern Pattern.
    261261 * @param flags Flags given to fnmatch().
     
    309309 * Matches the beginning of the given string against a bracket expression
    310310 * the pattern begins with.
    311  * 
     311 *
    312312 * @param pattern Pointer to the beginning of a bracket expression in a pattern.
    313313 *     On success, the pointer is moved to the first character after the
     
    405405 * Matches a portion of the pattern containing no asterisks (*) against
    406406 * the given string.
    407  * 
     407 *
    408408 * @param pattern Pointer to the unmatched portion of the pattern.
    409409 *     On success, the pointer is moved to the first asterisk, or to the
     
    508508/**
    509509 * Match string against a pattern.
    510  * 
     510 *
    511511 * @param pattern Pattern.
    512512 * @param string String to match.
     
    571571/**
    572572 * Transform the entire string to lowercase.
    573  * 
     573 *
    574574 * @param s Input string.
    575575 * @return Newly allocated copy of the input string with all uppercase
  • uspace/lib/posix/src/locale.c

    rdf6ded8 r1b20da0  
    8080/**
    8181 * Set program locale.
    82  * 
     82 *
    8383 * @param category What category to set.
    8484 * @param locale Locale name.
     
    9797/**
    9898 * Return locale-specific information.
    99  * 
     99 *
    100100 * @return Information about the current locale.
    101101 */
     
    108108/**
    109109 * Duplicate locale object.
    110  * 
     110 *
    111111 * @param locobj Object to duplicate.
    112112 * @return Duplicated object.
     
    129129/**
    130130 * Free locale object.
    131  * 
     131 *
    132132 * @param locobj Object to free.
    133133 */
     
    141141/**
    142142 * Create or modify a locale object.
    143  * 
     143 *
    144144 * @param category_mask Mask of categories to be set or modified.
    145145 * @param locale Locale to be used.
     
    169169/**
    170170 * Set locale for the current thread.
    171  * 
     171 *
    172172 * @param newloc Locale to use.
    173173 * @return The previously set locale or LC_GLOBAL_LOCALE
  • uspace/lib/posix/src/signal.c

    rdf6ded8 r1b20da0  
    6565/* Actions associated with each signal number. */
    6666static struct sigaction _signal_actions[_TOP_SIGNAL + 1] = {
    67         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
    68         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
    69         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
    70         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
    71         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
    72         DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, 
     67        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
     68        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
     69        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
     70        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
     71        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
     72        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER,
    7373        DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER, DEFAULT_HANDLER
    7474};
     
    147147/**
    148148 * Empty function to be used as ignoring handler.
    149  * 
     149 *
    150150 * @param signo Signal number.
    151151 */
     
    157157/**
    158158 * Clear the signal set.
    159  * 
     159 *
    160160 * @param set Pointer to the signal set.
    161161 * @return Always returns zero.
     
    171171/**
    172172 * Fill the signal set (i.e. add all signals).
    173  * 
     173 *
    174174 * @param set Pointer to the signal set.
    175175 * @return Always returns zero.
     
    185185/**
    186186 * Add a signal to the set.
    187  * 
     187 *
    188188 * @param set Pointer to the signal set.
    189189 * @param signo Signal number to add.
     
    200200/**
    201201 * Delete a signal from the set.
    202  * 
     202 *
    203203 * @param set Pointer to the signal set.
    204204 * @param signo Signal number to remove.
     
    215215/**
    216216 * Inclusion test for a signal set.
    217  * 
     217 *
    218218 * @param set Pointer to the signal set.
    219219 * @param signo Signal number to query.
     
    231231 * Doesn't do any checking of its arguments and
    232232 * does not deal with thread-safety.
    233  * 
     233 *
    234234 * @param sig
    235235 * @param act
     
    252252/**
    253253 * Sets a new action for the given signal number.
    254  * 
     254 *
    255255 * @param sig Signal number to set action for.
    256256 * @param act If not NULL, contents of this structure are
    257257 *     used as the new action for the signal.
    258258 * @param oact If not NULL, the original action associated with the signal
    259  *     is stored in the structure pointer to. 
     259 *     is stored in the structure pointer to.
    260260 * @return -1 with errno set on failure, 0 on success.
    261261 */
     
    286286/**
    287287 * Sets a new handler for the given signal number.
    288  * 
     288 *
    289289 * @param sig Signal number to set handler for.
    290290 * @param func Handler function.
     
    404404/**
    405405 * Raise a signal for the calling process.
    406  * 
     406 *
    407407 * @param sig Signal number.
    408408 * @return -1 with errno set on failure, 0 on success.
     
    424424/**
    425425 * Raises a signal for a selected process.
    426  * 
     426 *
    427427 * @param pid PID of the process for which the signal shall be raised.
    428428 * @param signo Signal to raise.
     
    463463 * Send a signal to a process group. Always fails at the moment because of
    464464 * lack of this functionality in HelenOS.
    465  * 
     465 *
    466466 * @param pid PID of the process group.
    467467 * @param sig Signal number.
     
    476476/**
    477477 * Outputs information about the signal to the standard error stream.
    478  * 
     478 *
    479479 * @param pinfo SigInfo struct to write.
    480480 * @param message String to output alongside human-readable signal description.
     
    489489/**
    490490 * Outputs information about the signal to the standard error stream.
    491  * 
     491 *
    492492 * @param signum Signal number.
    493493 * @param message String to output alongside human-readable signal description.
     
    505505/**
    506506 * Manipulate the signal mask of the calling thread.
    507  * 
     507 *
    508508 * @param how What to do with the mask.
    509509 * @param set Signal set to work with.
     
    545545/**
    546546 * Manipulate the signal mask of the process.
    547  * 
     547 *
    548548 * @param how What to do with the mask.
    549549 * @param set Signal set to work with.
  • uspace/lib/posix/src/stdio.c

    rdf6ded8 r1b20da0  
    148148/**
    149149 * Read a stream until the newline (or EOF) is encountered.
    150  * 
     150 *
    151151 * @param lineptr Pointer to the output buffer in which there will be stored
    152152 *     nul-terminated string together with the delimiter (if encountered).
     
    208208/**
    209209 * Reposition a file-position indicator in a stream.
    210  * 
     210 *
    211211 * @param stream Stream to seek in.
    212212 * @param offset Direction and amount of bytes to seek.
     
    221221/**
    222222 * Discover current file offset in a stream.
    223  * 
     223 *
    224224 * @param stream Stream for which the offset shall be retrieved.
    225225 * @return Current offset or -1 if not possible.
     
    265265/**
    266266 * Write wide string to the opened file.
    267  * 
     267 *
    268268 * @param str String to be written.
    269269 * @param size Size of the string (in bytes).
     
    298298/**
    299299 * Print formatted output to the opened file.
    300  * 
     300 *
    301301 * @param fildes File descriptor of the opened file.
    302302 * @param format Format description.
     
    317317/**
    318318 * Print formatted output to the string.
    319  * 
     319 *
    320320 * @param s Output string.
    321321 * @param format Format description.
     
    334334/**
    335335 * Print formatted output to the string.
    336  * 
     336 *
    337337 * @param s Output string.
    338338 * @param format Format description.
     
    348348/**
    349349 * Convert formatted input from the stream.
    350  * 
     350 *
    351351 * @param stream Input stream.
    352352 * @param format Format description.
     
    364364/**
    365365 * Convert formatted input from the standard input.
    366  * 
     366 *
    367367 * @param format Format description.
    368368 * @return The number of converted output items or EOF on failure.
     
    379379/**
    380380 * Convert formatted input from the standard input.
    381  * 
     381 *
    382382 * @param format Format description.
    383383 * @param arg Output items.
     
    391391/**
    392392 * Convert formatted input from the string.
    393  * 
     393 *
    394394 * @param s Input string.
    395395 * @param format Format description.
     
    472472/**
    473473 * Put a byte on the standard output stream (thread-unsafe).
    474  * 
     474 *
    475475 * @param c Byte to output.
    476476 * @return Either written byte or EOF.
  • uspace/lib/posix/src/stdio/scanf.c

    rdf6ded8 r1b20da0  
    384384 * Decides whether provided character specifies integer conversion. If so, the
    385385 * semantics of the conversion is stored through provided pointers..
    386  * 
     386 *
    387387 * @param c Candidate on the integer conversion.
    388388 * @param is_unsigned Pointer to store whether the conversion is signed or not.
     
    484484 *
    485485 * NOT SUPPORTED: locale (see strtold), wide chars, numbered output arguments
    486  * 
     486 *
    487487 * @param in Input provider.
    488488 * @param fmt Format description.
  • uspace/lib/posix/src/stdlib.c

    rdf6ded8 r1b20da0  
    5151
    5252/**
    53  * 
     53 *
    5454 * @param array
    5555 * @param count
     
    6666/**
    6767 * Integer absolute value.
    68  * 
     68 *
    6969 * @param i Input value.
    7070 * @return Absolute value of the parameter.
     
    7777/**
    7878 * Long integer absolute value.
    79  * 
     79 *
    8080 * @param i Input value.
    8181 * @return Absolute value of the parameter.
     
    8888/**
    8989 * Long long integer absolute value.
    90  * 
     90 *
    9191 * @param i Input value.
    9292 * @return Absolute value of the parameter.
     
    184184
    185185/**
    186  * 
     186 *
    187187 * @param name
    188188 * @param resolved
     
    212212/**
    213213 * Resolve absolute pathname.
    214  * 
     214 *
    215215 * @param name Pathname to be resolved.
    216216 * @param resolved Either buffer for the resolved absolute pathname or NULL.
  • uspace/lib/posix/src/stdlib/strtold.c

    rdf6ded8 r1b20da0  
    232232 * Function expects the string pointer to be already pointed at the first
    233233 * digit (i.e. leading optional sign was already consumed by the caller).
    234  * 
     234 *
    235235 * @param sptr Pointer to the storage of the string pointer. Upon successful
    236236 *     conversion, the string pointer is updated to point to the first
     
    303303/**
    304304 * Derive a hexadecimal digit from its character representation.
    305  * 
     305 *
    306306 * @param ch Character representation of the hexadecimal digit.
    307307 * @return Digit value represented by an integer.
  • uspace/lib/posix/src/sys/stat.c

    rdf6ded8 r1b20da0  
    9393/**
    9494 * Retrieve file status for symbolic link.
    95  * 
     95 *
    9696 * @param path Path to the symbolic link.
    9797 * @param st Status structure to be filled with information.
     
    121121/**
    122122 * Change permission bits for the file if possible.
    123  * 
     123 *
    124124 * @param path Path to the file.
    125125 * @param mode Permission bits to be set.
     
    134134/**
    135135 * Set the file mode creation mask of the process.
    136  * 
     136 *
    137137 * @param mask Set permission bits are cleared in the related creation
    138138 *     functions. Non-permission bits are ignored.
     
    147147/**
    148148 * Create a directory.
    149  * 
     149 *
    150150 * @param path Path to the new directory.
    151151 * @param mode Permission bits to be set.
  • uspace/lib/posix/src/sys/wait.c

    rdf6ded8 r1b20da0  
    6868/**
    6969 * Wait for any child process to stop or terminate.
    70  * 
     70 *
    7171 * @param stat_ptr Location of the final status code of the child process.
    7272 * @return ID of the child process for which status is reported,
     
    8282/**
    8383 * Wait for a child process to stop or terminate.
    84  * 
     84 *
    8585 * @param pid What child process shall the caller wait for. See POSIX manual
    8686 *     for details.
  • uspace/lib/posix/src/time.c

    rdf6ded8 r1b20da0  
    7878/**
    7979 * Converts a time value to a broken-down UTC time.
    80  * 
     80 *
    8181 * @param timer Time to convert.
    8282 * @param result Structure to store the result to.
     
    110110/**
    111111 * Converts a time value to a broken-down local time.
    112  * 
     112 *
    113113 * @param timer Time to convert.
    114114 * @param result Structure to store the result to.
     
    173173 * Converts the calendar time to a string in format
    174174 * "Sun Jan 1 00:00:00 1970\n" (Obsolete)
    175  * 
     175 *
    176176 * @param timer Time to convert.
    177177 * @param buf Buffer to store string to. Must be at least ASCTIME_BUF_LEN
     
    228228/**
    229229 * Get time. Only CLOCK_REALTIME is supported.
    230  * 
     230 *
    231231 * @param clock_id ID of the clock to query.
    232232 * @param tp Pointer to the variable where the time is to be written.
     
    254254 * Set time on a specified clock. As HelenOS doesn't support this yet,
    255255 * this function always fails.
    256  * 
     256 *
    257257 * @param clock_id ID of the clock to set.
    258258 * @param tp Time to set.
     
    279279/**
    280280 * Sleep on a specified clock.
    281  * 
     281 *
    282282 * @param clock_id ID of the clock to sleep on (only CLOCK_REALTIME supported).
    283283 * @param flags Flags (none supported).
  • uspace/lib/posix/src/unistd.c

    rdf6ded8 r1b20da0  
    124124char *getcwd(char *buf, size_t size)
    125125{
    126         if (failed(vfs_cwd_get(buf, size))) 
     126        if (failed(vfs_cwd_get(buf, size)))
    127127                return NULL;
    128128        return buf;
     
    174174/**
    175175 * Get the real group ID of the calling process.
    176  * 
     176 *
    177177 * @return Group ID.
    178178 */
     
    309309/**
    310310 * Remove a link to a file.
    311  * 
     311 *
    312312 * @param path File pathname.
    313313 * @return Zero on success, -1 otherwise.
     
    334334/**
    335335 * Duplicate an open file descriptor.
    336  * 
     336 *
    337337 * @param fildes File descriptor to be duplicated.
    338338 * @param fildes2 File descriptor to be paired with the same file description
     
    378378/**
    379379 * Get configurable system variables.
    380  * 
     380 *
    381381 * @param name Variable name.
    382382 * @return Variable value.
     
    421421
    422422/**
    423  * 
     423 *
    424424 * @param path
    425425 * @param name
     
    434434
    435435/**
    436  * 
     436 *
    437437 * @return
    438438 */
     
    445445
    446446/**
    447  * 
     447 *
    448448 * @param path
    449449 * @param argv
     
    458458
    459459/**
    460  * 
     460 *
    461461 * @param file
    462462 * @param argv
     
    471471
    472472/**
    473  * 
     473 *
    474474 * @param fildes
    475475 * @return
Note: See TracChangeset for help on using the changeset viewer.