mknetid.c (16793) | mknetid.c (17115) |
---|---|
1/* 2 * Copyright (c) 1995, 1996 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 * 32 * netid map generator program 33 * 34 * Written by Bill Paul <wpaul@ctr.columbia.edu> 35 * Center for Telecommunications Research 36 * Columbia University, New York City 37 * | 1/* 2 * Copyright (c) 1995, 1996 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 * 32 * netid map generator program 33 * 34 * Written by Bill Paul <wpaul@ctr.columbia.edu> 35 * Center for Telecommunications Research 36 * Columbia University, New York City 37 * |
38 * $Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $ | 38 * $Id: mknetid.c,v 1.2 1996/06/27 05:42:01 wpaul Exp $ |
39 */ 40 | 39 */ 40 |
41#include <stdio.h> 42#include <stdlib.h> 43#include <string.h> 44#include <grp.h> 45#include <pwd.h> 46#include <netdb.h> 47#include <err.h> | 41#include <sys/types.h> 42 |
48#include <rpc/rpc.h> 49#include <rpcsvc/yp_prot.h> 50#include <rpcsvc/ypclnt.h> | 43#include <rpc/rpc.h> 44#include <rpcsvc/yp_prot.h> 45#include <rpcsvc/ypclnt.h> |
46 47#include <err.h> 48#include <grp.h> 49#include <pwd.h> 50#include <netdb.h> 51#include <stdio.h> 52#include <stdlib.h> 53#include <string.h> 54 |
|
51#include "hash.h" 52 53#ifndef lint | 55#include "hash.h" 56 57#ifndef lint |
54static const char rcsid[] = "$Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $"; | 58static const char rcsid[] = "$Id: mknetid.c,v 1.2 1996/06/27 05:42:01 wpaul Exp $"; |
55#endif 56 57#define LINSIZ 1024 58#define OPSYS "unix" 59 60/* Default location of group file. */ 61char *groupfile = _PATH_GROUP; 62/* Default location of master.passwd file. */ --- 227 unchanged lines hidden --- | 59#endif 60 61#define LINSIZ 1024 62#define OPSYS "unix" 63 64/* Default location of group file. */ 65char *groupfile = _PATH_GROUP; 66/* Default location of master.passwd file. */ --- 227 unchanged lines hidden --- |