ReactOS 0.4.16-dev-311-g9382aa2
|
#include <wintirpc.h>
#include <reentrant.h>
#include <stdio.h>
#include <errno.h>
#include <netconfig.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <rpc/rpc.h>
#include "rpc_com.h"
Go to the source code of this file.
Classes | |
struct | netconfig_info |
struct | netconfig_list |
struct | netconfig_vars |
Macros | |
#define | NC_NONETCONFIG ENOENT |
#define | NC_NOMEM ENOMEM |
#define | NC_NOTINIT EINVAL /* setnetconfig was not called first */ |
#define | NC_BADFILE EBADF /* format for netconfig file is bad */ |
#define | NC_NOTFOUND WSAENOPROTOOPT /* specified netid was not found */ |
#define | NC_TPI_CLTS_S "tpi_clts" |
#define | NC_TPI_COTS_S "tpi_cots" |
#define | NC_TPI_COTS_ORD_S "tpi_cots_ord" |
#define | NC_TPI_RAW_S "tpi_raw" |
#define | NC_NOFLAG_C '-' |
#define | NC_VISIBLE_C 'v' |
#define | NC_BROADCAST_C 'b' |
#define | NC_NOLOOKUP "-" |
#define | NC_VALID 0xfeed |
#define | NC_STORAGE 0xf00d |
#define | NC_INVALID 0 |
#define | MAXNETCONFIGLINE 1000 |
#define | nc_error (*(__nc_error())) |
Functions | |
static void | wintirpc_debug (char *fmt,...) |
static int * | __nc_error (void) |
static int | parse_ncp (char *, struct netconfig *) |
static struct netconfig * | dup_ncp (struct netconfig *) |
void * | setnetconfig () |
struct netconfig * | getnetconfig (void *handlep) |
int | endnetconfig (void *handlep) |
struct netconfig * | getnetconfigent (char *netid) const |
void | freenetconfigent (struct netconfig *netconfigp) |
char * | nc_sperror () |
void | nc_perror (char *s) const |
Variables | |
static const char *const | _nc_errors [] |
static FILE * | nc_file |
static struct netconfig_info | ni = { 0, 0, NULL, NULL} |
#define MAXNETCONFIGLINE 1000 |
Definition at line 160 of file getnetconfig.c.
Definition at line 97 of file getnetconfig.c.
Definition at line 113 of file getnetconfig.c.
#define nc_error (*(__nc_error())) |
Definition at line 196 of file getnetconfig.c.
#define NC_INVALID 0 |
Definition at line 149 of file getnetconfig.c.
#define NC_NOFLAG_C '-' |
Definition at line 111 of file getnetconfig.c.
#define NC_NOLOOKUP "-" |
Definition at line 118 of file getnetconfig.c.
Definition at line 95 of file getnetconfig.c.
Definition at line 94 of file getnetconfig.c.
#define NC_NOTFOUND WSAENOPROTOOPT /* specified netid was not found */ |
Definition at line 98 of file getnetconfig.c.
#define NC_NOTINIT EINVAL /* setnetconfig was not called first */ |
Definition at line 96 of file getnetconfig.c.
#define NC_STORAGE 0xf00d |
Definition at line 148 of file getnetconfig.c.
#define NC_TPI_CLTS_S "tpi_clts" |
Definition at line 103 of file getnetconfig.c.
#define NC_TPI_COTS_ORD_S "tpi_cots_ord" |
Definition at line 105 of file getnetconfig.c.
#define NC_TPI_COTS_S "tpi_cots" |
Definition at line 104 of file getnetconfig.c.
#define NC_TPI_RAW_S "tpi_raw" |
Definition at line 106 of file getnetconfig.c.
#define NC_VALID 0xfeed |
Definition at line 147 of file getnetconfig.c.
Definition at line 112 of file getnetconfig.c.
Definition at line 163 of file getnetconfig.c.
Definition at line 689 of file getnetconfig.c.
Referenced by getnetconfigent().
Definition at line 373 of file getnetconfig.c.
Referenced by __rpc_endconf(), __rpc_getconfip(), __rpcbind_is_up(), _des_crypt_call(), endnetpath(), getkeyserv_handle(), local_rpcb(), and setnetpath().
Definition at line 530 of file getnetconfig.c.
Referenced by __rpc_sockinfo2netid(), __rpcb_findaddr_timed(), cache_get(), cache_set(), endnetpath(), get_client_for_netaddr(), nfs41_server_resolve(), pmap_set(), pmap_unset(), and svc_reg().
Definition at line 253 of file getnetconfig.c.
Referenced by __rpc_getconf(), __rpc_getconfip(), __rpcbind_is_up(), _des_crypt_call(), getkeyserv_handle(), getnetpath(), and local_rpcb().
Definition at line 432 of file getnetconfig.c.
Referenced by __rpc_getconfip(), __rpc_sockinfo2netid(), __rpcb_findaddr_timed(), __rpcgettp(), cache_get(), cache_set(), get_client_for_netaddr(), getnetpath(), local_rpcb(), and nfs41_server_resolve().
Definition at line 679 of file getnetconfig.c.
Definition at line 648 of file getnetconfig.c.
Referenced by nc_perror().
Definition at line 555 of file getnetconfig.c.
Referenced by getnetconfig(), and getnetconfigent().
Definition at line 217 of file getnetconfig.c.
Referenced by __rpc_getconfip(), __rpc_setconf(), __rpcbind_is_up(), _des_crypt_call(), getkeyserv_handle(), getnetpath(), local_rpcb(), and setnetpath().
Definition at line 49 of file getnetconfig.c.
Referenced by getnetconfig(), and parse_ncp().
Definition at line 120 of file getnetconfig.c.
Referenced by nc_sperror().
|
static |
Definition at line 157 of file getnetconfig.c.
Referenced by endnetconfig(), getnetconfig(), and setnetconfig().
|
static |
Definition at line 158 of file getnetconfig.c.
Referenced by _CmdWndProc(), create_name(), endnetconfig(), getnetconfig(), getnetconfigent(), setnetconfig(), and UPDOWN_DoAction().