Ignore:
File:
1 edited

Legend:

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

    r9350bfdd r4c8f5e7  
    8888int posix_isatty(int fd)
    8989{
     90        // TODO
    9091        /* Always returns false, because there is no easy way to find
    9192         * out under HelenOS. */
     
    186187 * Close a file.
    187188 *
    188  * @param fildes
     189 * @param fildes File descriptor of the opened file.
    189190 * @return 0 on success, -1 on error.
    190191 */
     
    223224 * Requests outstanding data to be written to the underlying storage device.
    224225 *
    225  * @param fildes
     226 * @param fildes File descriptor of the opened file.
     227 * @return Zero on success, -1 otherwise.
    226228 */
    227229int posix_fsync(int fildes)
     
    230232}
    231233
     234/**
     235 * Truncate a file to a specified length.
     236 *
     237 * @param fildes File descriptor of the opened file.
     238 * @param length New length of the file.
     239 * @return Zero on success, -1 otherwise.
     240 */
    232241int posix_ftruncate(int fildes, posix_off_t length)
    233242{
     
    257266}
    258267
     268/**
     269 * Duplicate an open file descriptor.
     270 *
     271 * @param fildes File descriptor to be duplicated.
     272 * @return On success, new file descriptor for the same file, otherwise -1.
     273 */
    259274int posix_dup(int fildes)
    260275{
     
    262277}
    263278
     279/**
     280 * Duplicate an open file descriptor.
     281 *
     282 * @param fildes File descriptor to be duplicated.
     283 * @param fildes2 File descriptor to be paired with the same file description
     284 *     as is paired fildes.
     285 * @return fildes2 on success, -1 otherwise.
     286 */
    264287int posix_dup2(int fildes, int fildes2)
    265288{
Note: See TracChangeset for help on using the changeset viewer.