Changeset 2a53f71 in mainline for uspace/lib/posix/unistd.c
- Timestamp:
- 2011-07-31T04:59:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27a8d1d
- Parents:
- 11544f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/unistd.c
r11544f4 r2a53f71 186 186 * Close a file. 187 187 * 188 * @param fildes 188 * @param fildes File descriptor of the opened file. 189 189 * @return 0 on success, -1 on error. 190 190 */ … … 223 223 * Requests outstanding data to be written to the underlying storage device. 224 224 * 225 * @param fildes 225 * @param fildes File descriptor of the opened file. 226 * @return Zero on success, -1 otherwise. 226 227 */ 227 228 int posix_fsync(int fildes) … … 230 231 } 231 232 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 */ 232 240 int posix_ftruncate(int fildes, posix_off_t length) 233 241 { … … 257 265 } 258 266 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 */ 259 273 int posix_dup(int fildes) 260 274 { … … 262 276 } 263 277 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 */ 264 286 int posix_dup2(int fildes, int fildes2) 265 287 {
Note:
See TracChangeset
for help on using the changeset viewer.