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