Changes in uspace/lib/posix/unistd.c [9350bfdd:4c8f5e7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/unistd.c
r9350bfdd r4c8f5e7 88 88 int posix_isatty(int fd) 89 89 { 90 // TODO 90 91 /* Always returns false, because there is no easy way to find 91 92 * out under HelenOS. */ … … 186 187 * Close a file. 187 188 * 188 * @param fildes 189 * @param fildes File descriptor of the opened file. 189 190 * @return 0 on success, -1 on error. 190 191 */ … … 223 224 * Requests outstanding data to be written to the underlying storage device. 224 225 * 225 * @param fildes 226 * @param fildes File descriptor of the opened file. 227 * @return Zero on success, -1 otherwise. 226 228 */ 227 229 int posix_fsync(int fildes) … … 230 232 } 231 233 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 */ 232 241 int posix_ftruncate(int fildes, posix_off_t length) 233 242 { … … 257 266 } 258 267 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 */ 259 274 int posix_dup(int fildes) 260 275 { … … 262 277 } 263 278 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 */ 264 287 int posix_dup2(int fildes, int fildes2) 265 288 {
Note:
See TracChangeset
for help on using the changeset viewer.