source: trunk/kernel/ksh/mkfifo_func.c @ 24

Last change on this file since 24 was 1, checked in by alain, 8 years ago

First import

File size: 1.2 KB
Line 
1/*
2         This file is part of MutekP.
3       
4         MutekP is free software; you can redistribute it and/or modify it
5         under the terms of the GNU General Public License as published by
6         the Free Software Foundation; either version 2 of the License, or
7         (at your option) any later version.
8       
9         MutekP is distributed in the hope that it will be useful, but
10         WITHOUT ANY WARRANTY; without even the implied warranty of
11         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12         General Public License for more details.
13       
14         You should have received a copy of the GNU General Public License
15         along with MutekP; if not, write to the Free Software Foundation,
16         Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17       
18         UPMC / LIP6 / SOC (c) 2008
19         Copyright Ghassan Almaless <ghassan.almaless@gmail.com>
20*/
21
22#include <stdint.h>
23#include <vfs.h>
24#include <kminiShell.h>
25 
26error_t mkfifo_func(void *param)
27{
28
29        return ENOSYS;
30#if 0
31        ms_args_t *arg;
32        struct ku_obj kuo;
33        error_t err;
34        uint32_t argc;
35        uint32_t i;
36
37        arg  = (struct ms_argument_s *) param;
38        argc = arg->argc;
39        argv = &arg->argv[0];
40        err  = 0;
41       
42        for(i=0; i< argc; i++)
43        {
44                KK_BUFF(kuo, argv[i]);
45         
46                if((err=vfs_mkfifo(ms_n_cwd, &kuo, 0)))
47                        return err;
48        }
49#endif
50
51        return 0;
52}
Note: See TracBrowser for help on using the repository browser.