Changeset 2a53f71 in mainline
- Timestamp:
- 2011-07-31T04:59:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27a8d1d
- Parents:
- 11544f4
- Location:
- uspace/lib/posix
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.c
r11544f4 r2a53f71 726 726 * Rename a file or directory. 727 727 * 728 * @param old 729 * @param new 728 * @param old Old pathname. 729 * @param new New pathname. 730 730 * @return Zero on success, -1 (with errno set) otherwise. 731 731 */ -
uspace/lib/posix/stdlib.h
r11544f4 r2a53f71 113 113 extern void posix_free(void *ptr); 114 114 115 /* Temporary files */115 /* Temporary Files */ 116 116 extern int posix_mkstemp(char *tmpl); 117 117 -
uspace/lib/posix/sys/wait.c
r11544f4 r2a53f71 67 67 68 68 /** 69 * Wait for any child process to stop or terminate. 69 70 * 70 * @param stat_ptr 71 * @return 71 * @param stat_ptr Location of the final status code of the child process. 72 * @return ID of the child process for which status is reported, 73 * -1 on signal interrupt, (pid_t)-1 otherwise. 72 74 */ 73 75 posix_pid_t posix_wait(int *stat_ptr) … … 79 81 80 82 /** 83 * Wait for a child process to stop or terminate. 81 84 * 82 * @param pid 83 * @param stat_ptr 84 * @param options 85 * @return 85 * @param pid What child process shall the caller wait for. See POSIX manual 86 * for details. 87 * @param stat_ptr Location of the final status code of the child process. 88 * @param options Constraints of the waiting. See POSIX manual for details. 89 * @return ID of the child process for which status is reported, 90 * -1 on signal interrupt, 0 if non-blocking wait is requested but there is 91 * no child process whose status can be reported, (pid_t)-1 otherwise. 86 92 */ 87 93 posix_pid_t posix_waitpid(posix_pid_t pid, int *stat_ptr, int options) -
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 { -
uspace/lib/posix/unistd.h
r11544f4 r2a53f71 72 72 /* File Manipulation */ 73 73 extern int posix_close(int fildes); 74 75 74 extern ssize_t posix_read(int fildes, void *buf, size_t nbyte); 76 75 extern ssize_t posix_write(int fildes, const void *buf, size_t nbyte); 77 78 76 extern int posix_fsync(int fildes); 79 77 extern int posix_ftruncate(int fildes, posix_off_t length); 80 81 78 extern int posix_rmdir(const char *path); 82 79 extern int posix_unlink(const char *path); 83 84 80 extern int posix_dup(int fildes); 85 81 extern int posix_dup2(int fildes, int fildes2);
Note:
See TracChangeset
for help on using the changeset viewer.