|
1 /* Generated automatically */ |
|
2 #ifndef have_Src_utils_globals |
|
3 #define have_Src_utils_globals |
|
4 |
|
5 extern char*scriptname; |
|
6 extern mod_import_function void zerr _((const char*fmt,const char*str,int num)); |
|
7 extern mod_import_function void zerrnam _((const char*cmd,const char*fmt,const char*str,int num)); |
|
8 extern mod_import_function void zwarn _((const char*fmt,const char*str,int num)); |
|
9 extern mod_import_function void zwarnnam _((const char*cmd,const char*fmt,const char*str,int num)); |
|
10 extern void zerrmsg _((const char*fmt,const char*str,int num)); |
|
11 extern mod_import_function int putraw _((int c)); |
|
12 extern mod_import_function int putshout _((int c)); |
|
13 extern mod_import_function char*nicechar _((int c)); |
|
14 extern size_t nicestrlen _((char*s)); |
|
15 extern char*findpwd _((char*s)); |
|
16 extern int ispwd _((char*s)); |
|
17 extern char*xsymlink _((char*s)); |
|
18 extern void print_if_link _((char*s)); |
|
19 extern void fprintdir _((char*s,FILE*f)); |
|
20 extern uid_t cached_uid; |
|
21 extern char*cached_username; |
|
22 extern char*get_username _((void)); |
|
23 extern Nameddir finddir _((char*s)); |
|
24 extern mod_import_function void adduserdir _((char*s,char*t,int flags,int always)); |
|
25 extern char*getnameddir _((char*name)); |
|
26 extern mod_import_variable LinkList prepromptfns; |
|
27 extern time_t lastmailcheck; |
|
28 extern time_t lastwatch; |
|
29 extern mod_import_function int callhookfunc _((char*name,LinkList lnklst)); |
|
30 extern void preprompt _((void)); |
|
31 extern FILE*xtrerr; |
|
32 extern void printprompt4 _((void)); |
|
33 extern mod_import_function void freestr _((void*a)); |
|
34 extern void gettyinfo _((struct ttyinfo*ti)); |
|
35 extern mod_import_function void settyinfo _((struct ttyinfo*ti)); |
|
36 extern mod_import_variable struct ttyinfo shttyinfo; |
|
37 extern mod_import_variable int resetneeded; |
|
38 extern mod_import_variable int winchanged; |
|
39 extern void adjustwinsize _((int from)); |
|
40 extern mod_import_function int movefd _((int fd)); |
|
41 extern mod_import_function void redup _((int x,int y)); |
|
42 extern mod_import_function int zclose _((int fd)); |
|
43 extern mod_import_function char*gettempname _((const char*prefix,int use_heap)); |
|
44 extern mod_import_function int gettempfile _((const char*prefix,int use_heap,char**tempname)); |
|
45 extern mod_import_function int has_token _((const char*s)); |
|
46 extern mod_import_function void chuck _((char*str)); |
|
47 extern mod_import_function int tulower _((int c)); |
|
48 extern mod_import_function int tuupper _((int c)); |
|
49 extern void ztrncpy _((char*s,char*t,int len)); |
|
50 extern mod_import_function void strucpy _((char**s,char*t)); |
|
51 extern mod_import_function void struncpy _((char**s,char*t,int n)); |
|
52 extern mod_import_function int arrlen _((char**s)); |
|
53 extern mod_import_function int skipparens _((char inpar,char outpar,char**s)); |
|
54 extern mod_import_function zlong zstrtol _((const char*s,char**t,int base)); |
|
55 extern int setblock_fd _((int turnonblocking,int fd,long*modep)); |
|
56 extern int setblock_stdin _((void)); |
|
57 extern mod_import_function int read_poll _((int fd,int*readchar,int polltty,zlong microseconds)); |
|
58 extern int checkrmall _((char*s)); |
|
59 extern int read1char _((void)); |
|
60 extern mod_import_function int noquery _((int purge)); |
|
61 extern int getquery _((char*valid_chars,int purge)); |
|
62 extern mod_import_function void spckword _((char**s,int hist,int cmd,int ask)); |
|
63 extern mod_import_function int ztrftime _((char*buf,int bufsize,char*fmt,struct tm*tm)); |
|
64 extern mod_import_function char*zjoin _((char**arr,int delim,int heap)); |
|
65 extern char**colonsplit _((char*s,int uniq)); |
|
66 extern mod_import_function char**spacesplit _((char*s,int allownull,int heap,int quote)); |
|
67 extern char*findword _((char**s,char*sep)); |
|
68 extern int wordcount _((char*s,char*sep,int mul)); |
|
69 extern mod_import_function char*sepjoin _((char**s,char*sep,int heap)); |
|
70 extern char**sepsplit _((char*s,char*sep,int allownull,int heap)); |
|
71 extern mod_import_function Eprog getshfunc _((char*nam)); |
|
72 extern char**mkarray _((char*s)); |
|
73 extern mod_import_function void zbeep _((void)); |
|
74 extern mod_import_function void freearray _((char**s)); |
|
75 extern int equalsplit _((char*s,char**t)); |
|
76 extern mod_import_variable short int typtab[256]; |
|
77 extern void inittyptab _((void)); |
|
78 extern mod_import_function char**arrdup _((char**s)); |
|
79 extern mod_import_function char**zarrdup _((char**s)); |
|
80 extern void setcbreak _((void)); |
|
81 extern mod_import_function void attachtty _((pid_t pgrp)); |
|
82 extern pid_t gettygrp _((void)); |
|
83 extern long getbaudrate _((struct ttyinfo*shttyinfo)); |
|
84 extern mod_import_function char*metafy _((char*buf,int len,int heap)); |
|
85 extern mod_import_function char*unmetafy _((char*s,int*len)); |
|
86 extern mod_import_function int metalen _((const char*s,int len)); |
|
87 extern mod_import_function char*unmeta _((const char*file_name)); |
|
88 extern int ztrcmp _((unsigned char const*s1,unsigned char const*s2)); |
|
89 extern mod_import_function int metadiffer _((char const*s,char const*r,int len)); |
|
90 extern mod_import_function int ztrlen _((char const*s)); |
|
91 extern mod_import_function int ztrsub _((char const*t,char const*s)); |
|
92 extern mod_import_function char*zreaddir _((DIR*dir,int ignoredots)); |
|
93 extern mod_import_function int zputs _((char const*s,FILE*stream)); |
|
94 extern mod_import_function char*niceztrdup _((char const*s)); |
|
95 extern mod_import_function char*nicedupstring _((char const*s)); |
|
96 extern mod_import_function int nicezputs _((char const*s,FILE*stream)); |
|
97 extern mod_import_function size_t niceztrlen _((char const*s)); |
|
98 extern mod_import_function int hasspecial _((char const*s)); |
|
99 extern mod_import_function char*bslashquote _((const char*s,char**e,int instring)); |
|
100 extern mod_import_function int quotedzputs _((char const*s,FILE*stream)); |
|
101 extern mod_import_function char*dquotedztrdup _((char const*s)); |
|
102 extern size_t ucs4toutf8 _((char*dest,unsigned int wval)); |
|
103 extern mod_import_function char*getkeystring _((char*s,int*len,int fromwhere,int*misc)); |
|
104 extern mod_import_function int strpfx _((char*s,char*t)); |
|
105 extern mod_import_function int strsfx _((char*s,char*t)); |
|
106 extern mod_import_function int lchdir _((char const*path,struct dirsav*d,int hard)); |
|
107 extern mod_import_function int restoredir _((struct dirsav*d)); |
|
108 extern int privasserted _((void)); |
|
109 extern mod_import_function void dputs _((char*message)); |
|
110 extern mod_import_function int mode_to_octal _((mode_t mode)); |
|
111 extern int mailstat _((char*path,struct stat*st)); |
|
112 |
|
113 #endif /* !have_Src_utils_globals */ |