Changeset 407 for trunk/kernel/syscalls/sys_opendir.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_opendir.c
r23 r407 23 23 24 24 #include <hal_types.h> 25 #include <thread.h> 26 #include <process.h> 27 #include <printk.h> 28 #include <errno.h> 25 29 #include <vfs.h> 26 30 #include <syscalls.h> 31 #include <shared_syscalls.h> 27 32 28 33 /////////////////////////////////// 29 int sys_opendir ( char * pathname ) 34 int sys_opendir ( char * pathname, 35 DIR ** dirp ) 30 36 { 31 uint32_t mode = 0; 32 uint32_t flags = O_DIR; 33 34 return sys_open( pathname , flags , mode ); 35 } 37 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ ); 38 CURRENT_THREAD->errno = ENOMEM; 39 return -1; 40 } // end sys opendir()
Note: See TracChangeset
for help on using the changeset viewer.