21static char sccsid[] =
"@(#)ruserpass.c 5.1 (Berkeley) 3/1/89";
28#define MAXHOSTNAMELEN 64
56static int token(
void);
58int ruserpass(
const char *
host,
char **aname,
char **apass,
char **aacct)
60 const char *hdir, *mydomain;
63 int t,
i,
c, usedefault = 0;
80 if ((mydomain =
index(myname,
'.')) ==
NULL)
83 while ((
t =
token()))
switch(
t) {
129 if (
strcmp(*aname,
"anonymous") &&
136 if (
token() && *apass == 0) {
148 if (
token() && *aacct == 0) {
159 if (
c ==
EOF ||
c ==
'\n') {
160 printf(
"Missing macdef name argument.\n");
164 printf(
"Limit of 16 macros have already been defined\n");
174 printf(
"Macro definition missing null line terminator.\n");
182 printf(
"Macro definition missing null line terminator.\n");
192 while (tmp !=
macbuf + 4096) {
194 printf(
"Macro definition missing null line terminator.\n");
199 if (*(tmp-1) ==
'\0') {
207 if (tmp ==
macbuf + 4096) {
208 printf(
"4K macro buffer exceeded\n");
235 (
c ==
'\r' ||
c ==
'\n' ||
c ==
'\t' ||
c ==
' ' ||
c ==
','))
249 &&
c !=
'\n' &&
c !=
'\t' &&
c !=
' ' &&
c !=
',' &&
c !=
'\r') {
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_ _CRTIMP int __cdecl feof(_In_ FILE *_File)
_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
int ruserpass(const char *host, char **aname, char **apass, char **aacct)