diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-07-22 09:46:48 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-07-22 09:46:48 +0000 |
commit | 2b3e9d9b244e279ef5693a7cf5dacc7903164af5 (patch) | |
tree | 955e5242d4d08a8ec747c8350f55003bb9d4b519 /c/src/exec/librpc/src/rpc/rtems_rpc.c | |
parent | Remove everything. (diff) | |
download | rtems-2b3e9d9b244e279ef5693a7cf5dacc7903164af5.tar.bz2 |
Remove, moved to cpukit.
Diffstat (limited to 'c/src/exec/librpc/src/rpc/rtems_rpc.c')
-rw-r--r-- | c/src/exec/librpc/src/rpc/rtems_rpc.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/c/src/exec/librpc/src/rpc/rtems_rpc.c b/c/src/exec/librpc/src/rpc/rtems_rpc.c deleted file mode 100644 index d2666e2f91..0000000000 --- a/c/src/exec/librpc/src/rpc/rtems_rpc.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * RTEMS multi-tasking support - */ - -#include <rpc/rpc.h> -#include <rtems.h> -#include <stdlib.h> - -/* - * RPC variables for single-thread - */ -static struct rtems_rpc_task_variables rpc_default = { - -1, /* svc_maxfd */ -}; - -/* - * RPC values for initializing a new per-task set of variables - */ -static const struct rtems_rpc_task_variables rpc_init = { - -1, /* svc_maxfd */ -}; - -/* - * Per-task pointer to RPC data - */ -void *rtems_rpc_task_variables = &rpc_default; - -/* - * Set up per-task RPC variables - */ -int rtems_rpc_task_init (void) -{ - rtems_status_code sc; - struct rtems_rpc_task_variables *tvp; - - if (rtems_rpc_task_variables == &rpc_default) { - tvp = malloc (sizeof *tvp); - if (tvp == NULL) - return RTEMS_NO_MEMORY; - /* - * FIXME: Should have destructor which cleans up - * all RPC stuff: - * - Close all files - * - Go through and free linked list elements - * - Free other allocated memory (e.g. clnt_perror_buf) - */ - sc = rtems_task_variable_add (RTEMS_SELF, &rtems_rpc_task_variables, NULL); - if (sc != RTEMS_SUCCESSFUL) { - free (tvp); - return sc; - } - *tvp = rpc_init; - rtems_rpc_task_variables = tvp; - } - return RTEMS_SUCCESSFUL; -} |