Changeset 15b9970 in mainline
- Timestamp:
- 2008-01-27T16:43:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7017572
- Parents:
- 2db4ac8
- Location:
- uspace/srv/vfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r2db4ac8 r15b9970 205 205 unsigned refcnt; 206 206 207 /** Append on write. */ 208 bool append; 209 207 210 /** Current position in the file. */ 208 211 off_t pos; -
uspace/srv/vfs/vfs_ops.c
r2db4ac8 r15b9970 371 371 vfs_file_t *file = vfs_file_get(fd); 372 372 file->node = node; 373 if (oflag & O_APPEND) 374 file->append = true; 373 375 374 376 /* … … 444 446 aid_t msg; 445 447 ipc_call_t answer; 448 if (!read && file->append) 449 file->pos = file->node->size; 446 450 msg = async_send_3(fs_phone, IPC_GET_METHOD(*request), 447 451 file->node->dev_handle, file->node->index, file->pos, &answer);
Note:
See TracChangeset
for help on using the changeset viewer.