Imported from ../bash-2.0.tar.gz.
This commit is contained in:
parent
726f63884d
commit
ccc6cda312
502 changed files with 91988 additions and 69123 deletions
108
externs.h
108
externs.h
|
|
@ -21,47 +21,115 @@
|
|||
|
||||
/* Make sure that this is included *after* config.h! */
|
||||
|
||||
#if !defined (__EXTERNS_H__)
|
||||
# define __EXTERNS_H__
|
||||
#if !defined (_EXTERNS_H_)
|
||||
# define _EXTERNS_H_
|
||||
|
||||
#include "stdc.h"
|
||||
|
||||
/* Functions from expr.c. */
|
||||
extern long evalexp __P((char *));
|
||||
|
||||
/* Functions from getcwd.c */
|
||||
#if !defined (HAVE_GETCWD)
|
||||
extern char *getcwd ();
|
||||
#endif
|
||||
|
||||
/* Functions from print_cmd.c. */
|
||||
extern char *make_command_string __P((COMMAND *));
|
||||
extern void print_command __P((COMMAND *));
|
||||
extern void print_simple_command __P((SIMPLE_COM *));
|
||||
extern char *named_function_string __P((char *, COMMAND *, int));
|
||||
extern void print_word_list __P((WORD_LIST *, char *));
|
||||
extern void xtrace_print_word_list __P((WORD_LIST *));
|
||||
|
||||
/* Functions from shell.c. */
|
||||
extern int maybe_execute_file __P((char *, int));
|
||||
extern char *indirection_level_string __P((void));
|
||||
extern sighandler termination_unwind_protect __P((int));
|
||||
extern sighandler sigint_sighandler __P((int));
|
||||
extern void reset_terminating_signals __P((void));
|
||||
extern char *shell_version_string __P((void));
|
||||
extern void show_shell_version __P((void));
|
||||
extern int exit_shell __P((int));
|
||||
extern void disable_priv_mode __P((void));
|
||||
|
||||
#if defined (RESTRICTED_SHELL)
|
||||
extern int maybe_make_restricted __P((char *));
|
||||
#endif
|
||||
|
||||
/* Functions from eval.c. */
|
||||
extern int reader_loop __P((void));
|
||||
extern int parse_command __P((void));
|
||||
extern int read_command __P((void));
|
||||
|
||||
/* Functions from test.c. */
|
||||
extern int group_member ();
|
||||
extern int test_command ();
|
||||
|
||||
/* Functions from braces.c. */
|
||||
#if defined (BRACE_EXPANSION)
|
||||
extern char **brace_expand __P((char *));
|
||||
#endif
|
||||
|
||||
/* Functions from mailcheck.c */
|
||||
extern int time_to_check_mail __P((void));
|
||||
extern void reset_mail_timer __P((void));
|
||||
extern void reset_mail_files __P((void));
|
||||
extern void free_mail_files __P((void));
|
||||
extern char *make_default_mailpath __P((void));
|
||||
extern void remember_mail_dates __P((void));
|
||||
extern void check_mail __P((void));
|
||||
/* Miscellaneous functions from parse.y */
|
||||
extern int yyparse ();
|
||||
extern void reset_parser ();
|
||||
|
||||
/* Miscellaneous functions not declared anywhere but used. */
|
||||
extern char **glob_filename __P((char *));
|
||||
/* Functions from version.c. */
|
||||
extern char *shell_version_string __P((void));
|
||||
extern void show_shell_version __P((int));
|
||||
|
||||
#endif /* __EXTERNS_H__ */
|
||||
/* Declarations for functions defined in locale.c */
|
||||
extern void set_default_locale __P((void));
|
||||
extern void set_default_locale_vars __P((void));
|
||||
extern int set_locale_var __P((char *, char *));
|
||||
extern int set_lang __P((char *, char *));
|
||||
extern char *get_locale_var __P((char *));
|
||||
extern char *localetrans __P((char *, int, int *));
|
||||
|
||||
/* Declarations for functions defined in list.c. */
|
||||
extern void map_over_list __P((GENERIC_LIST *, Function *));
|
||||
extern void map_over_words __P((WORD_LIST *, Function *));
|
||||
extern GENERIC_LIST *reverse_list ();
|
||||
extern int list_length ();
|
||||
extern GENERIC_LIST *list_append ();
|
||||
extern GENERIC_LIST *delete_element ();
|
||||
|
||||
/* Declarations for functions defined in oslib.c */
|
||||
extern long get_clk_tck __P((void));
|
||||
|
||||
#if !defined (strerror)
|
||||
extern char *strerror __P((int));
|
||||
#endif
|
||||
|
||||
#if !defined (HAVE_STRCASECMP)
|
||||
extern int strncasecmp __P((char *, char *, int));
|
||||
extern int strcasecmp __P((char *, char *));
|
||||
#endif /* HAVE_STRCASECMP */
|
||||
|
||||
extern int dup2 __P((int, int));
|
||||
|
||||
#if !defined (HAVE_GETHOSTNAME)
|
||||
extern int gethostname __P((char *, int));
|
||||
#endif /* !HAVE_GETHOSTNAME */
|
||||
|
||||
#if !defined (HAVE_GETDTABLESIZE)
|
||||
extern int getdtablesize __P((void));
|
||||
#endif /* !HAVE_GETDTABLESIZE */
|
||||
|
||||
#if !defined (HAVE_SETLINEBUF)
|
||||
extern int setlinebuf ();
|
||||
#endif
|
||||
|
||||
/* Declarations for functions defined in stringlib.c */
|
||||
extern char *ansicstr __P((char *, int, int *));
|
||||
extern int find_name_in_array __P((char *, char **));
|
||||
extern int array_len __P((char **));
|
||||
extern void free_array_members __P((char **));
|
||||
extern void free_array __P((char **));
|
||||
extern char **copy_array __P((char **));
|
||||
extern int qsort_string_compare ();
|
||||
extern void sort_char_array __P((char **));
|
||||
extern char **word_list_to_argv __P((WORD_LIST *, int, int, int *));
|
||||
extern WORD_LIST *argv_to_word_list __P((char **, int, int));
|
||||
|
||||
extern char *strsub __P((char *, char *, char *, int));
|
||||
extern void strip_leading __P((char *));
|
||||
extern void strip_trailing __P((char *, int));
|
||||
extern char *strindex __P((char *, char *));
|
||||
extern void xbcopy __P((char *, char *, int));
|
||||
|
||||
#endif /* _EXTERNS_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue