Changeset 2a53f71 in mainline for uspace/lib/posix/unistd.c


Ignore:
Timestamp:
2011-07-31T04:59:20Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27a8d1d
Parents:
11544f4
Message:

Added missing comments to the newly implemented functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/unistd.c

    r11544f4 r2a53f71  
    186186 * Close a file.
    187187 *
    188  * @param fildes
     188 * @param fildes File descriptor of the opened file.
    189189 * @return 0 on success, -1 on error.
    190190 */
     
    223223 * Requests outstanding data to be written to the underlying storage device.
    224224 *
    225  * @param fildes
     225 * @param fildes File descriptor of the opened file.
     226 * @return Zero on success, -1 otherwise.
    226227 */
    227228int posix_fsync(int fildes)
     
    230231}
    231232
     233/**
     234 * Truncate a file to a specified length.
     235 *
     236 * @param fildes File descriptor of the opened file.
     237 * @param length New length of the file.
     238 * @return Zero on success, -1 otherwise.
     239 */
    232240int posix_ftruncate(int fildes, posix_off_t length)
    233241{
     
    257265}
    258266
     267/**
     268 * Duplicate an open file descriptor.
     269 *
     270 * @param fildes File descriptor to be duplicated.
     271 * @return On success, new file descriptor for the same file, otherwise -1.
     272 */
    259273int posix_dup(int fildes)
    260274{
     
    262276}
    263277
     278/**
     279 * Duplicate an open file descriptor.
     280 *
     281 * @param fildes File descriptor to be duplicated.
     282 * @param fildes2 File descriptor to be paired with the same file description
     283 *     as is paired fildes.
     284 * @return fildes2 on success, -1 otherwise.
     285 */
    264286int posix_dup2(int fildes, int fildes2)
    265287{
Note: See TracChangeset for help on using the changeset viewer.