summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libiohelp/ChangeLog18
-rw-r--r--libiohelp/Makefile2
-rw-r--r--libiohelp/iohelp.h4
-rw-r--r--libiohelp/iouser-create.c1
-rw-r--r--libiohelp/iouser-dup.c1
-rw-r--r--libiohelp/iouser-reauth.c1
-rw-r--r--libiohelp/shared.c41
7 files changed, 66 insertions, 2 deletions
diff --git a/libiohelp/ChangeLog b/libiohelp/ChangeLog
index a4dce1f8..6607c808 100644
--- a/libiohelp/ChangeLog
+++ b/libiohelp/ChangeLog
@@ -1,3 +1,21 @@
+Mon Nov 18 16:37:59 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * iouser-reauth.c: Include <hurd/auth.h>.
+
+Sat Nov 16 17:54:50 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * Makefile (SRCS): Add shared.c.
+ * shared.c: New file.
+
+Fri Nov 15 13:39:46 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * iouser-create.c (iohelp_create_iouser): Set NEW->hook to zero.
+ * iouser-dup.c (iohelp_dup_iouser): Likewise.
+
+Tue Nov 12 21:51:29 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * iohelp.h: Include <idvec.h>.
+
Wed Nov 6 19:26:14 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* Makefile (SRCS): Add iouser-create.c, iouser-dup.c
diff --git a/libiohelp/Makefile b/libiohelp/Makefile
index 61d20aa9..ccdf8b3d 100644
--- a/libiohelp/Makefile
+++ b/libiohelp/Makefile
@@ -20,7 +20,7 @@ makemode := library
SRCS = get_conch.c handle_io_get_conch.c handle_io_release_conch.c \
initialize_conch.c verify_user_conch.c iouser-create.c \
- iouser-dup.c iouser-reauth.c iouser-free.c
+ iouser-dup.c iouser-reauth.c iouser-free.c shared.c
OBJS = $(SRCS:.c=.o)
LCLHDRS = iohelp.h
HURDLIBS = threads
diff --git a/libiohelp/iohelp.h b/libiohelp/iohelp.h
index f4a8615e..e07993a0 100644
--- a/libiohelp/iohelp.h
+++ b/libiohelp/iohelp.h
@@ -67,6 +67,8 @@ void iohelp_put_shared_data (void *);
/* User identification */
+#include <idvec.h>
+
struct iouser
{
struct idvec *uids, *gids;
@@ -80,7 +82,7 @@ struct iouser *iohelp_dup_iouser (struct iouser *iouser);
void iohelp_free_iouser (struct iouser *iouser);
/* Create a new IOUSER for the specified idvecs */
-struc iouser *iohelp_create_iouser (struct idvec *uids, struct idvec *gids);
+struct iouser *iohelp_create_iouser (struct idvec *uids, struct idvec *gids);
/* Conduct a reauthentication transaction, returning a new iouser.
AUTHSERVER is the I/O servers auth port. The rendezvous port
diff --git a/libiohelp/iouser-create.c b/libiohelp/iouser-create.c
index 69b9f7e1..fab77787 100644
--- a/libiohelp/iouser-create.c
+++ b/libiohelp/iouser-create.c
@@ -27,6 +27,7 @@ iohelp_create_iouser (struct idvec *uids, struct idvec *gids)
new->uids = uids;
new->gids = gids;
+ new->hook = 0;
return new;
}
diff --git a/libiohelp/iouser-dup.c b/libiohelp/iouser-dup.c
index f6839ac2..7bc1f87f 100644
--- a/libiohelp/iouser-dup.c
+++ b/libiohelp/iouser-dup.c
@@ -29,6 +29,7 @@ iohelp_dup_iouser (struct iouser *iouser)
new->uids = make_idvec ();
new->gids = make_idvec ();
+ new->hook = 0;
if (!new->uids || !new->gids)
goto lose;
diff --git a/libiohelp/iouser-reauth.c b/libiohelp/iouser-reauth.c
index d4b67ff6..a41ea734 100644
--- a/libiohelp/iouser-reauth.c
+++ b/libiohelp/iouser-reauth.c
@@ -16,6 +16,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "iohelp.h"
+#include <hurd/auth.h>
/* Conduct a reauthentication transaction, returning a new iouser.
AUTHSERVER is the I/O servers auth port. The rendezvous port
diff --git a/libiohelp/shared.c b/libiohelp/shared.c
new file mode 100644
index 00000000..42180985
--- /dev/null
+++ b/libiohelp/shared.c
@@ -0,0 +1,41 @@
+/* Default functions
+ Copyright (C) 1996 Free Software Foundation
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+
+#include "iohelp.h"
+
+/* These definitions exist to satisfy the linker. */
+
+
+void
+iohelp_fetch_shared_data (void *foo)
+{
+ abort ();
+}
+
+void
+iohelp_put_shared_data (void *foo)
+{
+ abort ();
+}
+
+
+void
+iohelp_fetch_shared_data (void *foo) __attribute__ ((weak));
+void
+iohelp_put_shared_data (void *foo) __attribute__ ((weak));
+