summaryrefslogtreecommitdiffstats
path: root/contrib/amd/hlfsd
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-09-15 05:45:17 +0000
committerobrien <obrien@FreeBSD.org>1999-09-15 05:45:17 +0000
commit5c1a3647e5e952726219b96156a3eebfa5789118 (patch)
treea1a7d61cd30dc7bc80b9778e62052c5eee5e3d67 /contrib/amd/hlfsd
parente2c605abd09c68a264a51f01f9362d297976ea63 (diff)
downloadFreeBSD-src-5c1a3647e5e952726219b96156a3eebfa5789118.zip
FreeBSD-src-5c1a3647e5e952726219b96156a3eebfa5789118.tar.gz
Fix conflicts.
Diffstat (limited to 'contrib/amd/hlfsd')
-rw-r--r--contrib/amd/hlfsd/hlfsd.85
-rw-r--r--contrib/amd/hlfsd/hlfsd.c28
-rw-r--r--contrib/amd/hlfsd/homedir.c15
3 files changed, 21 insertions, 27 deletions
diff --git a/contrib/amd/hlfsd/hlfsd.8 b/contrib/amd/hlfsd/hlfsd.8
index 7151b48..77a2b80 100644
--- a/contrib/amd/hlfsd/hlfsd.8
+++ b/contrib/amd/hlfsd/hlfsd.8
@@ -1,5 +1,5 @@
.\"
-.\" Copyright (c) 1997-1998 Erez Zadok
+.\" Copyright (c) 1997-1999 Erez Zadok
.\" Copyright (c) 1989 Jan-Simon Pendry
.\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine
.\" Copyright (c) 1989 The Regents of the University of California.
@@ -36,7 +36,8 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: hlfsd.8,v 1.3 1998/09/12 04:04:58 obrien Exp $
+.\" $Id: hlfsd.8,v 1.2 1999/01/10 21:54:32 ezk Exp $
+.\" $FreeBSD$
.\"
.\" HLFSD was written at Columbia University Computer Science Department, by
.\" Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@smarts.com>
diff --git a/contrib/amd/hlfsd/hlfsd.c b/contrib/amd/hlfsd/hlfsd.c
index c9bf37b..dc5b2ac 100644
--- a/contrib/amd/hlfsd/hlfsd.c
+++ b/contrib/amd/hlfsd/hlfsd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-1998 Erez Zadok
+ * Copyright (c) 1997-1999 Erez Zadok
* Copyright (c) 1989 Jan-Simon Pendry
* Copyright (c) 1989 Imperial College of Science, Technology & Medicine
* Copyright (c) 1989 The Regents of the University of California.
@@ -38,7 +38,8 @@
*
* %W% (Berkeley) %G%
*
- * $Id: hlfsd.c,v 1.3 1998/11/14 03:13:31 obrien Exp $
+ * $Id: hlfsd.c,v 1.5 1999/09/08 23:36:51 ezk Exp $
+ * $FreeBSD$
*
* HLFSD was written at Columbia University Computer Science Department, by
* Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu>
@@ -83,10 +84,6 @@ char *alt_spooldir = ALT_SPOOLDIR;
char *home_subdir = HOME_SUBDIR;
char *logfile = DEFAULT_LOGFILE;
char *passwdfile = NULL; /* alternate passwd file to use */
-#if 0
-char *progname;
-int foreground = 1; /* This is the top-level server */
-#endif
char *slinkname = 0;
char hostname[MAXHOSTNAMELEN + 1] = "localhost";
int cache_interval = DEFAULT_CACHE_INTERVAL;
@@ -96,10 +93,6 @@ int noverify = 0;
int orig_umask = 022;
int serverpid = 0;
nfstime startup;
-#if 0
-pid_t mypid; /* Current process id */
-#endif
-serv_state amd_state;
u_short nfs_port;
/* symbol must be available always */
@@ -109,12 +102,6 @@ char *mnttab_file_name = MNTTAB_FILE_NAME;
char *mnttab_file_name = NULL;
#endif /* not MOUNT_TABLE_ON_FILE */
-#if 0
-#ifdef DEBUG
-int debug_flags = 0;
-#endif /* DEBUG */
-#endif
-
/* forward declarations */
void hlfsd_going_down(int rc);
@@ -949,8 +936,13 @@ fatal(char *mess)
lessmess[messlen - 4] = '\0';
if (errno < sys_nerr)
- fprintf(stderr, "%s: %s: %s\n", am_get_progname(),
- lessmess, sys_errlist[errno]);
+ fprintf(stderr, "%s: %s: %s\n", am_get_progname(), lessmess,
+#ifdef HAVE_STRERROR
+ strerror(errno)
+#else /* not HAVE_STRERROR */
+ sys_errlist[errno]
+#endif /* not HAVE_STRERROR */
+ );
else
fprintf(stderr, "%s: %s: Error %d\n",
am_get_progname(), lessmess, errno);
diff --git a/contrib/amd/hlfsd/homedir.c b/contrib/amd/hlfsd/homedir.c
index e8e2257..582acc8 100644
--- a/contrib/amd/hlfsd/homedir.c
+++ b/contrib/amd/hlfsd/homedir.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-1998 Erez Zadok
+ * Copyright (c) 1997-1999 Erez Zadok
* Copyright (c) 1989 Jan-Simon Pendry
* Copyright (c) 1989 Imperial College of Science, Technology & Medicine
* Copyright (c) 1989 The Regents of the University of California.
@@ -38,7 +38,8 @@
*
* %W% (Berkeley) %G%
*
- * $Id: homedir.c,v 1.2 1998/08/23 22:52:09 obrien Exp $
+ * $Id: homedir.c,v 1.4 1999/01/13 23:31:19 ezk Exp $
+ * $FreeBSD$
*
* HLFSD was written at Columbia University Computer Science Department, by
* Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu>
@@ -159,8 +160,8 @@ homedir(int userid)
if (found->child) { /* PARENT */
#ifdef DEBUG
if (lastchild)
- plog(XLOG_INFO, "cache spill uid = %d, pid = %d, home = %s",
- lastchild->uid, lastchild->child,
+ plog(XLOG_INFO, "cache spill uid = %ld, pid = %ld, home = %s",
+ (long) lastchild->uid, (long) lastchild->child,
lastchild->home);
#endif /* DEBUG */
lastchild = found;
@@ -270,7 +271,7 @@ delay(uid2home_t *found, int secs)
#ifdef DEBUG
if (found)
- dlog("delaying on child %d for %d seconds", found->child, secs);
+ dlog("delaying on child %ld for %d seconds", (long) found->child, secs);
#endif /* DEBUG */
tv.tv_usec = 0;
@@ -536,8 +537,8 @@ readent:
/* the rest of the fields are unimportant and not being considered */
- plog(XLOG_USER, "hlfsd_getpwent: name=%s, uid=%d, dir=%s",
- passwd_ent.pw_name, passwd_ent.pw_uid, passwd_ent.pw_dir);
+ plog(XLOG_USER, "hlfsd_getpwent: name=%s, uid=%ld, dir=%s",
+ passwd_ent.pw_name, (long) passwd_ent.pw_uid, passwd_ent.pw_dir);
return &passwd_ent;
}
OpenPOWER on IntegriCloud