xmname.c 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /* $XConsortium: xmname.c /main/3 1995/11/01 15:59:34 rswiston $ */
  24. /* Copyright (c) 1991, 1992 UNIX System Laboratories, Inc. */
  25. /* All Rights Reserved */
  26. /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
  27. /* UNIX System Laboratories, Inc. */
  28. /* The copyright notice above does not evidence any */
  29. /* actual or intended publication of such source code. */
  30. #define mount _AST_mount
  31. #include <ast.h>
  32. #include <signal.h>
  33. #include "shtable.h"
  34. #include "name.h"
  35. #ifdef KSHELL
  36. # include "builtins.h"
  37. # include "jobs.h"
  38. # include "FEATURE/cmds"
  39. #if defined(__STDC__) || defined(__STDPP__)
  40. # define bltin(x) (b_##x)
  41. #else
  42. # define bltin(x) (b_/**/x)
  43. #endif
  44. #else
  45. # define bltin(x) 0
  46. #endif
  47. #include <X11/X.h>
  48. #include <X11/Intrinsic.h>
  49. #include <X11/IntrinsicP.h>
  50. #define NO_AST
  51. #include "dtksh.h"
  52. #undef NO_AST
  53. #include "dtextra.h"
  54. #include "xmextra.h"
  55. #include "msgs.h"
  56. #define VALPTR(x) ((char*)x)
  57. const struct shtable3 dtk_functions[] = {
  58. DTK_EXTRA_TABLE
  59. DTK_EXTRA_TABLE2
  60. DTK_TK_EXTRA_TABLE
  61. DTK_TK_LIST_TABLE
  62. DTK_TK_TEXT_TABLE
  63. { NULL, 0, NULL }
  64. };
  65. const struct shtable2 dtk_aliases[] = {
  66. DTK_EXTRA_ALIAS
  67. DTK_TK_EXTRA_ALIAS
  68. { NULL, 0, NULL }
  69. };