summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/protid-make.c11
-rw-r--r--libports/allocate-port.c12
-rw-r--r--libports/intern-external-port.c6
-rw-r--r--libtrivfs/handle-port.c7
4 files changed, 26 insertions, 10 deletions
diff --git a/libdiskfs/protid-make.c b/libdiskfs/protid-make.c
index 7843be80..fdf267b4 100644
--- a/libdiskfs/protid-make.c
+++ b/libdiskfs/protid-make.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1994, 1995, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
@@ -46,17 +46,17 @@ diskfs_finish_protid (struct protid *cred, uid_t *uids, int nuids,
nuids = 1;
if (!gids)
ngids = 1;
-
+
cred->uids = malloc (nuids * sizeof (uid_t));
cred->gids = malloc (ngids * sizeof (uid_t));
cred->nuids = nuids;
cred->ngids = ngids;
-
+
if (uids)
bcopy (uids, cred->uids, nuids * sizeof (uid_t));
else
*cred->uids = 0;
-
+
if (gids)
bcopy (gids, cred->gids, ngids * sizeof (uid_t));
else
@@ -86,3 +86,6 @@ diskfs_make_protid (struct peropen *po, uid_t *uids, int nuids,
cred = 0;
return cred;
}
+
+#include "linkwarn.h"
+obsolete (diskfs_make_protid, diskfs_create_protid)
diff --git a/libports/allocate-port.c b/libports/allocate-port.c
index 950ffc8e..61e093c8 100644
--- a/libports/allocate-port.c
+++ b/libports/allocate-port.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
@@ -21,8 +21,8 @@
#include "ports.h"
/* Backward compatibility. */
-void *ports_allocate_port (struct port_bucket *bucket,
- size_t size,
+void *ports_allocate_port (struct port_bucket *bucket,
+ size_t size,
struct port_class *class)
{
void *result;
@@ -30,3 +30,9 @@ void *ports_allocate_port (struct port_bucket *bucket,
result = 0;
return result;
}
+
+
+#include "linkwarn.h"
+
+link_warning (ports_allocate_port,
+ "ports_allocate_port is obsolete; use ports_create_port instead")
diff --git a/libports/intern-external-port.c b/libports/intern-external-port.c
index d6182188..8ece48e4 100644
--- a/libports/intern-external-port.c
+++ b/libports/intern-external-port.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
@@ -31,3 +31,7 @@ void *ports_intern_external_port (struct port_bucket *bucket,
result = 0;
return result;
}
+
+#include "linkwarn.h"
+link_warning (ports_intern_external_port,
+ "ports_intern_external_port is obsolete; use ports_import_port")
diff --git a/libtrivfs/handle-port.c b/libtrivfs/handle-port.c
index e96a2dd3..31626169 100644
--- a/libtrivfs/handle-port.c
+++ b/libtrivfs/handle-port.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
@@ -19,7 +19,7 @@
/* Backwards compatibility. Use trivfs_create_control. */
mach_port_t
-trivfs_handle_port (mach_port_t realnode,
+trivfs_handle_port (mach_port_t realnode,
struct port_class *control_class,
struct port_bucket *control_bucket,
struct port_class *protid_class,
@@ -41,3 +41,6 @@ trivfs_handle_port (mach_port_t realnode,
return right;
}
+
+#include "linkwarn.h"
+obslete (trivfs_handle_port, trivfs_create_control)