59{
60 const char *hdir, *mydomain;
63 int t,
i,
c, usedefault = 0;
65
68 hdir = ".";
74 return(0);
75 }
76
77
79 myname[0] = '\0';
80 if ((mydomain =
index(myname,
'.')) ==
NULL)
81 mydomain = "";
83 while ((
t =
token()))
switch(
t) {
84
86 usedefault = 1;
87
88
90 if (!usedefault) {
92 continue;
93
94
95
96
97
112 continue;
113 }
116
119 if (*aname == 0) {
122 } else {
125 }
126 }
127 break;
129 if (
strcmp(*aname,
"anonymous") &&
131 (stb.st_mode & 077) != 0) {
134 goto bad;
135 }
136 if (
token() && *apass == 0) {
139 }
140 break;
143 && (stb.st_mode & 077) != 0) {
146 goto bad;
147 }
148 if (
token() && *aacct == 0) {
151 }
152 break;
156 return(0);
157 }
159 if (
c ==
EOF ||
c ==
'\n') {
160 printf(
"Missing macdef name argument.\n");
161 goto bad;
162 }
164 printf(
"Limit of 16 macros have already been defined\n");
165 goto bad;
166 }
172 }
174 printf(
"Macro definition missing null line terminator.\n");
175 goto bad;
176 }
177 *tmp = '\0';
180 }
182 printf(
"Macro definition missing null line terminator.\n");
183 goto bad;
184 }
187 }
188 else {
190 }
192 while (tmp !=
macbuf + 4096) {
194 printf(
"Macro definition missing null line terminator.\n");
195 goto bad;
196 }
198 if (*tmp == '\n') {
199 if (*(tmp-1) == '\0') {
201 break;
202 }
203 *tmp = '\0';
204 }
205 tmp++;
206 }
207 if (tmp ==
macbuf + 4096) {
208 printf(
"4K macro buffer exceeded\n");
209 goto bad;
210 }
211 break;
212 default:
214 break;
215 }
216 goto done;
217 }
218done:
220 return(0);
221bad:
223 return(-1);
224}
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
INT WSAAPI gethostname(OUT char FAR *name, IN INT namelen)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
#define sprintf(buf, format,...)
static unsigned __int64 next