Ignore:
Timestamp:
Nov 7, 2017, 3:08:12 PM (6 years ago)
Author:
alain
Message:

First implementation of fork/exec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_opendir.c

    r23 r407  
    2323
    2424#include <hal_types.h>
     25#include <thread.h>
     26#include <process.h>
     27#include <printk.h>
     28#include <errno.h>
    2529#include <vfs.h>
    2630#include <syscalls.h>
     31#include <shared_syscalls.h>
    2732
    2833///////////////////////////////////
    29 int sys_opendir ( char * pathname )
     34int sys_opendir ( char *  pathname,
     35                  DIR  ** dirp )
    3036{
    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.