grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / rexxsupport / makedir.c
blob3df96b170ef9e9d626f17005f6e88e11936f6156
1 /*
2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Make a directory
6 Lang: English
7 */
9 #include <proto/exec.h>
10 #include <proto/dos.h>
11 #include <proto/rexxsyslib.h>
12 #include <exec/types.h>
13 #include <exec/memory.h>
14 #include <rexx/storage.h>
15 #include <rexx/errors.h>
17 #include <ctype.h>
18 #include <stdlib.h>
20 #include "rexxsupport_intern.h"
21 #include "rxfunctions.h"
23 LONG rxsupp_makedir(struct Library *RexxSupportBase, struct RexxMsg *msg, UBYTE **argstring)
25 BPTR lock;
27 lock = CreateDir(ARG1(msg));
28 if (lock == (BPTR)NULL)
29 *argstring = CreateArgstring("0", 1);
30 else
32 UnLock(lock);
33 *argstring = CreateArgstring("1", 1);
36 return RC_OK;