Changeset 626 for trunk/kernel/syscalls/sys_fsync.c
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fsync.c
r1 r626 1 1 /* 2 * sys_fsync : sync file2 * sys_fsync.c - copy all modified pages of a given file mapper to IOC device. 3 3 * 4 * Copyright (c) 2015 UPMC Sorbonne Universites4 * Author Alain Greiner (2016,1017) 5 5 * 6 * This file is part of ALMOS-kernel.6 * Copyright (c) UPMC Sorbonne Universites 7 7 * 8 * ALMOS-kernel is free software; you can redistribute it and/or modify it 8 * This file is part of ALMOS-MKH. 9 * 10 * ALMOS-MKH is free software; you can redistribute it and/or modify it 9 11 * under the terms of the GNU General Public License as published by 10 12 * the Free Software Foundation; version 2.0 of the License. 11 13 * 12 * ALMOS- kernelis distributed in the hope that it will be useful, but14 * ALMOS-MKH is distributed in the hope that it will be useful, but 13 15 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 16 18 * 17 19 * You should have received a copy of the GNU General Public License 18 * along with ALMOS- kernel; if not, write to the Free Software Foundation,20 * along with ALMOS-MKH; if not, write to the Free Software Foundation, 19 21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 22 */ 21 23 24 #include <hal_kernel_types.h> 25 #include <vfs.h> 26 #include <process.h> 27 #include <thread.h> 28 #include <printk.h> 22 29 23 #include < types.h>30 #include <syscalls.h> 24 31 25 int sys_fsync (uint_t fd) 32 ///////////////////////////////// 33 int sys_fsync( uint32_t file_id ) 26 34 { 27 //TODO 28 return 0;35 printk("\n[ERROR] in %d : not implemented yet\n", __FUNCTION__, file_id ); 36 return ENOSYS; 29 37 }
Note: See TracChangeset
for help on using the changeset viewer.