summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
020b1fb)
SCCS-vsn: usr.bin/passwd/passwd.c 4.31
SCCS-vsn: lib/libc/gen/getpwnamuid.c 5.3
SCCS-vsn: usr.bin/f77/libI77/rsnmle.c 5.4
SCCS-vsn: old/lex/libln/reject.c 4.2
SCCS-vsn: usr.sbin/lpr/lpc/lpc.c 5.4
SCCS-vsn: usr.sbin/sendmail/src/main.c 5.14
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getpwnamuid.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)getpwnamuid.c 5.3 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
#include <stdio.h>
#endif LIBC_SCCS and not lint
#include <stdio.h>
cp = key.dptr;
tp = line;
cp = key.dptr;
tp = line;
-#define EXPAND(e) passwd.pw_/**/e = tp; while (*tp++ = *cp++);
- EXPAND(name);
- EXPAND(passwd);
+#define EXPAND(e) passwd.e = tp; while (*tp++ = *cp++);
+ EXPAND(pw_name);
+ EXPAND(pw_passwd);
bcopy(cp, (char *)&passwd.pw_uid, sizeof (int));
cp += sizeof (int);
bcopy(cp, (char *)&passwd.pw_gid, sizeof (int));
cp += sizeof (int);
bcopy(cp, (char *)&passwd.pw_quota, sizeof (int));
cp += sizeof (int);
bcopy(cp, (char *)&passwd.pw_uid, sizeof (int));
cp += sizeof (int);
bcopy(cp, (char *)&passwd.pw_gid, sizeof (int));
cp += sizeof (int);
bcopy(cp, (char *)&passwd.pw_quota, sizeof (int));
cp += sizeof (int);
- EXPAND(comment);
- EXPAND(gecos);
- EXPAND(dir);
- EXPAND(shell);
+ EXPAND(pw_comment);
+ EXPAND(pw_gecos);
+ EXPAND(pw_dir);
+ EXPAND(pw_shell);
-/* @(#)reject.c 4.1 %G% */
+/* @(#)reject.c 4.2 %G% */
-extern struct {int *yyaa, *yybb; int *yystops;} *yylstate [], **yylsp, **yyolsp;
-yyreject ()
-{
extern FILE *yyout, *yyin;
extern int yyprevious , *yyfnd;
extern char yyextra[];
extern char yytext[];
extern int yyleng;
extern FILE *yyout, *yyin;
extern int yyprevious , *yyfnd;
extern char yyextra[];
extern char yytext[];
extern int yyleng;
+extern struct {int *yyaa, *yybb; int *yystops;} *yylstate [], **yylsp, **yyolsp;
+
+yyreject ()
+{
for( ; yylsp < yyolsp; yylsp++)
yytext[yyleng++] = yyinput();
if (*yyfnd > 0)
for( ; yylsp < yyolsp; yylsp++)
yytext[yyleng++] = yyinput();
if (*yyfnd > 0)
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- if(ch == 'EOF') return EOF;
+ if(ch == EOF) return EOF;
if(cnt == 0 ) return F_ERNMLIST;
if(sign== -1) value = -value;
*subval = value;
if(cnt == 0 ) return F_ERNMLIST;
if(sign== -1) value = -value;
*subval = value;
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)passwd.c 4.30 (Berkeley) %G%";
+static char sccsid[] = "@(#)passwd.c 4.31 (Berkeley) %G%";
-#define COMPACT(e) tp = pwd->pw_/**/e; while (*cp++ = *tp++);
- COMPACT(name);
- COMPACT(passwd);
+#define COMPACT(e) tp = pwd->e; while (*cp++ = *tp++);
+ COMPACT(pw_name);
+ COMPACT(pw_passwd);
bcopy((char *)&pwd->pw_uid, cp, sizeof (int));
cp += sizeof (int);
bcopy((char *)&pwd->pw_gid, cp, sizeof (int));
cp += sizeof (int);
bcopy((char *)&pwd->pw_quota, cp, sizeof (int));
cp += sizeof (int);
bcopy((char *)&pwd->pw_uid, cp, sizeof (int));
cp += sizeof (int);
bcopy((char *)&pwd->pw_gid, cp, sizeof (int));
cp += sizeof (int);
bcopy((char *)&pwd->pw_quota, cp, sizeof (int));
cp += sizeof (int);
- COMPACT(comment);
- COMPACT(gecos);
- COMPACT(dir);
- COMPACT(shell);
+ COMPACT(pw_comment);
+ COMPACT(pw_gecos);
+ COMPACT(pw_dir);
+ COMPACT(pw_shell);
content.dptr = buf;
content.dsize = cp - buf;
key.dptr = pwd->pw_name;
content.dptr = buf;
content.dsize = cp - buf;
key.dptr = pwd->pw_name;
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)lpc.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)lpc.c 5.4 (Berkeley) %G%";
int top;
{
register struct cmd *c;
int top;
{
register struct cmd *c;
- extern struct cmd cmdtab[];
- extern int help();
+extern struct cmd cmdtab[];
+
struct cmd *
getcmd(name)
register char *name;
struct cmd *
getcmd(name)
register char *name;
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char SccsId[] = "@(#)main.c 5.13 (Berkeley) %G%";
+static char SccsId[] = "@(#)main.c 5.14 (Berkeley) %G%";
#endif not lint
# define _DEFINE
#endif not lint
# define _DEFINE
+ extern char edata, end;
extern char Version[];
extern caddr_t brk();
extern char Version[];
extern caddr_t brk();