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') {
char *CDECL getenv(const char *name)
void CDECL perror(const char *str)
int CDECL fclose(FILE *file)
int WINAPIV fprintf(FILE *file, const char *format,...)
int CDECL getc(FILE *file)
int CDECL feof(FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
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
static unsigned __int64 next
int ruserpass(const char *host, char **aname, char **apass, char **aacct)