shellutils.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /*
  24. * File: shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 rswiston $
  25. *
  26. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  27. * (c) Copyright 1993, 1994 International Business Machines Corp.
  28. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  29. * (c) Copyright 1993, 1994 Novell, Inc.
  30. */
  31. #ifndef __SHELLUTILS_H_
  32. #define __SHELLUTILS_H_
  33. #ifdef __cplusplus
  34. extern "C"
  35. {
  36. char const *const *shellscan(char const *str, int *argc = (int *)0,
  37. unsigned opts = 0);
  38. }
  39. #else
  40. extern char **shellscan();
  41. #endif
  42. #define SHX_NOGLOB 0x0001
  43. #define SHX_NOTILDE 0x0002
  44. #define SHX_NOVARS 0x0004
  45. #define SHX_NOQUOTES 0x0008
  46. #define SHX_NOSPACE 0x0010
  47. #define SHX_NOMETA 0x0020
  48. #define SHX_NOCMD 0x0040
  49. #define SHX_COMPLETE 0x0080
  50. #define SHX_NOGRAVE 0x0040 /* Obsolete, use NOCMD */
  51. #endif /* __SHELLUTILS_H_ */