summaryrefslogtreecommitdiffstats
path: root/contrib/opie/libmissing
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-09-29 08:53:38 +0000
committerache <ache@FreeBSD.org>1997-09-29 08:53:38 +0000
commit620a15402ca567d1bb9f3ff04408b31d5195a26d (patch)
treebad95c33ccd79344b37c342113b585dc03504240 /contrib/opie/libmissing
parente1721b38212f929793aa901252e7ce3b6e495d69 (diff)
downloadFreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.zip
FreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.tar.gz
Upgrade to 2.31
Diffstat (limited to 'contrib/opie/libmissing')
-rw-r--r--contrib/opie/libmissing/Makefile.in4
-rw-r--r--contrib/opie/libmissing/endutent.c7
-rw-r--r--contrib/opie/libmissing/getutline.c15
-rw-r--r--contrib/opie/libmissing/pututline.c10
4 files changed, 27 insertions, 9 deletions
diff --git a/contrib/opie/libmissing/Makefile.in b/contrib/opie/libmissing/Makefile.in
index e00ead3..1e26e64 100644
--- a/contrib/opie/libmissing/Makefile.in
+++ b/contrib/opie/libmissing/Makefile.in
@@ -1,8 +1,8 @@
##
# Makefile.in/Makefile: Directions for building libmissing.
#
-# %%% copyright-cmetz
-# This software is Copyright 1996 by Craig Metz, All Rights Reserved.
+# %%% copyright-cmetz-96
+# This software is Copyright 1996-1997 by Craig Metz, All Rights Reserved.
# The Inner Net License Version 2 applies to this software.
# You should have received a copy of the license with this software. If
# you didn't get a copy, you may request one from <license@inner.net>.
diff --git a/contrib/opie/libmissing/endutent.c b/contrib/opie/libmissing/endutent.c
index 4a4051c..6e86321 100644
--- a/contrib/opie/libmissing/endutent.c
+++ b/contrib/opie/libmissing/endutent.c
@@ -1,18 +1,19 @@
/* endutent.c: A replacement for the endutent function
-%%% copyright-cmetz
-This software is Copyright 1996 by Craig Metz, All Rights Reserved.
+%%% copyright-cmetz-96
+This software is Copyright 1996-1997 by Craig Metz, All Rights Reserved.
The Inner Net License Version 2 applies to this software.
You should have received a copy of the license with this software. If
you didn't get a copy, you may request one from <license@inner.net>.
History:
+ Modified by cmetz for OPIE 2.31. Use VOIDRET macro.
Created by cmetz for OPIE 2.3.
*/
#include "opie_cfg.h"
#include "opie.h"
-void endutent FUNCTION_NOARGS
+VOIDRET endutent FUNCTION_NOARGS
{
}
diff --git a/contrib/opie/libmissing/getutline.c b/contrib/opie/libmissing/getutline.c
index 9653950..0ceb76b 100644
--- a/contrib/opie/libmissing/getutline.c
+++ b/contrib/opie/libmissing/getutline.c
@@ -1,13 +1,16 @@
/* getutline.c: A replacement for the getutline() function
-%%% copyright-cmetz
-This software is Copyright 1996 by Craig Metz, All Rights Reserved.
+%%% copyright-cmetz-96
+This software is Copyright 1996-1997 by Craig Metz, All Rights Reserved.
The Inner Net License Version 2 applies to this software.
You should have received a copy of the license with this software. If
you didn't get a copy, you may request one from <license@inner.net>.
History:
+ Modified by cmetz for OPIE 2.31. If the OS won't tell us where
+ _PATH_UTMP is, play the SVID game, then use
+ Autoconf-discovered values.
Created by cmetz for OPIE 2.3.
*/
@@ -18,6 +21,14 @@ you didn't get a copy, you may request one from <license@inner.net>.
static struct utmp u;
+#ifndef _PATH_UTMP
+#ifdef UTMP_FILE
+#define _PATH_UTMP UTMP_FILE
+#else /* UTMP_FILE */
+#define _PATH_UTMP PATH_UTMP_AC
+#endif /* UTMP_FILE */
+#endif /* _PATH_UTMP */
+
struct utmp *getutline FUNCTION((utmp), struct utmp *utmp)
{
FILE *f;
diff --git a/contrib/opie/libmissing/pututline.c b/contrib/opie/libmissing/pututline.c
index 62da458..2b79608 100644
--- a/contrib/opie/libmissing/pututline.c
+++ b/contrib/opie/libmissing/pututline.c
@@ -1,13 +1,15 @@
/* pututline.c: A replacement for the pututline() function
-%%% copyright-cmetz
-This software is Copyright 1996 by Craig Metz, All Rights Reserved.
+%%% copyright-cmetz-96
+This software is Copyright 1996-1997 by Craig Metz, All Rights Reserved.
The Inner Net License Version 2 applies to this software.
You should have received a copy of the license with this software. If
you didn't get a copy, you may request one from <license@inner.net>.
History:
+ Modified by cmetz for OPIE 2.31. If the OS won't tell us where
+ _PATH_UTMP is, use Autoconf-discovered values.
Created by cmetz for OPIE 2.3.
*/
@@ -16,6 +18,10 @@ you didn't get a copy, you may request one from <license@inner.net>.
#include <utmp.h>
#include "opie.h"
+#ifndef _PATH_UTMP
+#define _PATH_UTMP PATH_UTMP_AC
+#endif /* _PATH_UTMP */
+
void pututline FUNCTION((utmp), struct utmp *utmp)
{
FILE *f;
OpenPOWER on IntegriCloud