21
21
#include "msh.h"
22
22
#include "shell.h"
23
23
24
- #ifdef RT_USING_DFS
24
+ #ifdef RT_USING_POSIX
25
25
#include <dfs_posix.h>
26
26
#endif
27
27
@@ -186,7 +186,7 @@ static cmd_function_t msh_get_cmd(char *cmd, int size)
186
186
return cmd_func ;
187
187
}
188
188
189
- #if defined(RT_USING_MODULE ) && defined(RT_USING_DFS )
189
+ #if defined(RT_USING_MODULE ) && defined(RT_USING_POSIX )
190
190
/* Return 0 on module executed. Other value indicate error.
191
191
*/
192
192
int msh_exec_module (const char * cmd_line , int size )
@@ -257,7 +257,7 @@ int msh_exec_module(const char *cmd_line, int size)
257
257
rt_free (pg_name );
258
258
return ret ;
259
259
}
260
- #endif /* defined(RT_USING_MODULE) && defined(RT_USING_DFS ) */
260
+ #endif /* defined(RT_USING_MODULE) && defined(RT_USING_POSIX ) */
261
261
262
262
static int _msh_exec_cmd (char * cmd , rt_size_t length , int * retp )
263
263
{
@@ -290,7 +290,7 @@ static int _msh_exec_cmd(char *cmd, rt_size_t length, int *retp)
290
290
return 0 ;
291
291
}
292
292
293
- #if defined(RT_USING_LWP ) && defined(RT_USING_DFS )
293
+ #if defined(RT_USING_LWP ) && defined(RT_USING_POSIX )
294
294
static int _msh_exec_lwp (char * cmd , rt_size_t length )
295
295
{
296
296
int argc ;
@@ -350,7 +350,7 @@ int msh_exec(char *cmd, rt_size_t length)
350
350
{
351
351
return cmd_ret ;
352
352
}
353
- #ifdef RT_USING_DFS
353
+ #ifdef RT_USING_POSIX
354
354
#ifdef DFS_USING_WORKDIR
355
355
if (msh_exec_script (cmd , length ) == 0 )
356
356
{
@@ -371,7 +371,7 @@ int msh_exec(char *cmd, rt_size_t length)
371
371
return 0 ;
372
372
}
373
373
#endif /* RT_USING_LWP */
374
- #endif /* RT_USING_DFS */
374
+ #endif /* RT_USING_POSIX */
375
375
376
376
/* truncate the cmd at the first space. */
377
377
{
@@ -400,7 +400,7 @@ static int str_common(const char *str1, const char *str2)
400
400
return (str - str1 );
401
401
}
402
402
403
- #ifdef RT_USING_DFS
403
+ #ifdef RT_USING_POSIX
404
404
void msh_auto_complete_path (char * path )
405
405
{
406
406
DIR * dir = RT_NULL ;
@@ -521,7 +521,7 @@ void msh_auto_complete_path(char *path)
521
521
closedir (dir );
522
522
rt_free (full_path );
523
523
}
524
- #endif /* RT_USING_DFS */
524
+ #endif /* RT_USING_POSIX */
525
525
526
526
void msh_auto_complete (char * prefix )
527
527
{
@@ -538,7 +538,7 @@ void msh_auto_complete(char *prefix)
538
538
return ;
539
539
}
540
540
541
- #ifdef RT_USING_DFS
541
+ #ifdef RT_USING_POSIX
542
542
/* check whether a spare in the command */
543
543
{
544
544
char * ptr ;
0 commit comments