]> git.ipfire.org Git - thirdparty/bash.git/blame - externs.h
Imported from ../bash-2.0.tar.gz.
[thirdparty/bash.git] / externs.h
CommitLineData
726f6388
JA
1/* externs.h -- extern function declarations which do not appear in their
2 own header file. */
3
4/* Copyright (C) 1993 Free Software Foundation, Inc.
5
6 This file is part of GNU Bash, the Bourne Again SHell.
7
8 Bash is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2, or (at your option) any later
11 version.
12
13 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with Bash; see the file COPYING. If not, write to the Free Software
20 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21
22/* Make sure that this is included *after* config.h! */
23
ccc6cda3
JA
24#if !defined (_EXTERNS_H_)
25# define _EXTERNS_H_
726f6388
JA
26
27#include "stdc.h"
28
29/* Functions from expr.c. */
30extern long evalexp __P((char *));
31
ccc6cda3
JA
32/* Functions from getcwd.c */
33#if !defined (HAVE_GETCWD)
34extern char *getcwd ();
35#endif
36
726f6388
JA
37/* Functions from print_cmd.c. */
38extern char *make_command_string __P((COMMAND *));
39extern void print_command __P((COMMAND *));
40extern void print_simple_command __P((SIMPLE_COM *));
41extern char *named_function_string __P((char *, COMMAND *, int));
ccc6cda3
JA
42extern void print_word_list __P((WORD_LIST *, char *));
43extern void xtrace_print_word_list __P((WORD_LIST *));
726f6388
JA
44
45/* Functions from shell.c. */
ccc6cda3
JA
46extern int exit_shell __P((int));
47extern void disable_priv_mode __P((void));
48
49#if defined (RESTRICTED_SHELL)
50extern int maybe_make_restricted __P((char *));
51#endif
52
53/* Functions from eval.c. */
54extern int reader_loop __P((void));
55extern int parse_command __P((void));
56extern int read_command __P((void));
726f6388
JA
57
58/* Functions from test.c. */
59extern int group_member ();
ccc6cda3 60extern int test_command ();
726f6388
JA
61
62/* Functions from braces.c. */
63#if defined (BRACE_EXPANSION)
64extern char **brace_expand __P((char *));
65#endif
66
ccc6cda3
JA
67/* Miscellaneous functions from parse.y */
68extern int yyparse ();
69extern void reset_parser ();
70
71/* Functions from version.c. */
72extern char *shell_version_string __P((void));
73extern void show_shell_version __P((int));
74
75/* Declarations for functions defined in locale.c */
76extern void set_default_locale __P((void));
77extern void set_default_locale_vars __P((void));
78extern int set_locale_var __P((char *, char *));
79extern int set_lang __P((char *, char *));
80extern char *get_locale_var __P((char *));
81extern char *localetrans __P((char *, int, int *));
82
83/* Declarations for functions defined in list.c. */
84extern void map_over_list __P((GENERIC_LIST *, Function *));
85extern void map_over_words __P((WORD_LIST *, Function *));
86extern GENERIC_LIST *reverse_list ();
87extern int list_length ();
88extern GENERIC_LIST *list_append ();
89extern GENERIC_LIST *delete_element ();
90
91/* Declarations for functions defined in oslib.c */
92extern long get_clk_tck __P((void));
93
94#if !defined (strerror)
95extern char *strerror __P((int));
96#endif
97
98#if !defined (HAVE_STRCASECMP)
99extern int strncasecmp __P((char *, char *, int));
100extern int strcasecmp __P((char *, char *));
101#endif /* HAVE_STRCASECMP */
102
103extern int dup2 __P((int, int));
726f6388 104
ccc6cda3
JA
105#if !defined (HAVE_GETHOSTNAME)
106extern int gethostname __P((char *, int));
107#endif /* !HAVE_GETHOSTNAME */
108
109#if !defined (HAVE_GETDTABLESIZE)
110extern int getdtablesize __P((void));
111#endif /* !HAVE_GETDTABLESIZE */
112
113#if !defined (HAVE_SETLINEBUF)
114extern int setlinebuf ();
115#endif
726f6388 116
ccc6cda3
JA
117/* Declarations for functions defined in stringlib.c */
118extern char *ansicstr __P((char *, int, int *));
119extern int find_name_in_array __P((char *, char **));
120extern int array_len __P((char **));
121extern void free_array_members __P((char **));
122extern void free_array __P((char **));
123extern char **copy_array __P((char **));
124extern int qsort_string_compare ();
125extern void sort_char_array __P((char **));
126extern char **word_list_to_argv __P((WORD_LIST *, int, int, int *));
127extern WORD_LIST *argv_to_word_list __P((char **, int, int));
128
129extern char *strsub __P((char *, char *, char *, int));
130extern void strip_leading __P((char *));
131extern void strip_trailing __P((char *, int));
132extern char *strindex __P((char *, char *));
133extern void xbcopy __P((char *, char *, int));
134
135#endif /* _EXTERNS_H_ */