54 #define MSVCRT_CHECK_PMT(x) (x) 94 #define NC_NONETCONFIG ENOENT 95 #define NC_NOMEM ENOMEM 96 #define NC_NOTINIT EINVAL 97 #define NC_BADFILE EBADF 98 #define NC_NOTFOUND WSAENOPROTOOPT 103 #define NC_TPI_CLTS_S "tpi_clts" 104 #define NC_TPI_COTS_S "tpi_cots" 105 #define NC_TPI_COTS_ORD_S "tpi_cots_ord" 106 #define NC_TPI_RAW_S "tpi_raw" 111 #define NC_NOFLAG_C '-' 112 #define NC_VISIBLE_C 'v' 113 #define NC_BROADCAST_C 'b' 118 #define NC_NOLOOKUP "-" 121 "Netconfig database not found",
124 "Netconfig database has invalid format",
125 "Netid not found in netconfig database" 147 #define NC_VALID 0xfeed 148 #define NC_STORAGE 0xf00d 160 #define MAXNETCONFIGLINE 1000 185 nc_addr = (
int *)
malloc(
sizeof (
int *));
196 #define nc_error (*(__nc_error())) 235 return ((
void *)nc_vars);
269 switch (ncp->
valid) {
279 if (ncp->
flag == 0) {
307 if (malloc_verify() == 0) {
322 }
while (*stringp ==
'#');
338 list->linep = stringp;
358 ni.tail =
ni.tail->next;
361 return(
ni.tail->ncp);
393 nc_handlep->
flag = 0;
410 if (
q->ncp->nc_lookups !=
NULL)
free(
q->ncp->nc_lookups);
446 if (
strcmp(netid,
"unix") == 0) {
449 fprintf(
stderr,
"Please change this to \"local\" manually ");
451 fprintf(
stderr,
"See UPDATING entry 20021216 for details.\n");
468 if (
strcmp(
list->ncp->nc_netid, netid) == 0) {
495 }
while (*stringp ==
'#');
496 if (stringp ==
NULL) {
503 if (
strlen(netid) == (
size_t) (
len = tmpp - stringp) &&
516 }
while (stringp !=
NULL);
533 if (netconfigp !=
NULL) {
565 stringp[
strlen(stringp)-1] =
'\0';
633 while ((
cp = tokenp) !=
NULL) {
669 message =
"Unknown network selection error";
719 p->nc_lookups = (
char **)
malloc((
size_t)(
p->nc_nlookups+1) *
sizeof(
char *));
720 if (
p->nc_lookups ==
NULL) {
724 for (
i=0;
i <
p->nc_nlookups;
i++) {
struct netconfig_list * next
struct netconfig_list * head
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
static struct netconfig * dup_ncp(struct netconfig *)
ACPI_SIZE strlen(const char *String)
char * strpbrk(const char *String, const char *Delimiters)
static struct netconfig_info ni
#define thr_setspecific(k, p)
static int * __nc_error(void)
GLenum GLuint GLenum GLsizei const GLchar * message
#define NC_TPI_COTS_ORD_S
char * _get_next_token(char *, int)
static const char *const _nc_errors[]
char * strtok_s(char *str, const char *delim, char **ctx)
struct netconfig * getnetconfig(void *handlep)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void freenetconfigent(struct netconfig *netconfigp)
struct netconfig * getnetconfigent(char *netid) const
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
GLdouble GLdouble GLdouble GLdouble q
static int parse_ncp(char *, struct netconfig *)
#define thr_getspecific(k)
#define MSVCRT_CHECK_PMT(x)
DWORD WINAPI TlsAlloc(VOID)
#define TLS_OUT_OF_INDEXES
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
int endnetconfig(void *handlep)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
struct netconfig_list * nc_configs
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
__kernel_ptrdiff_t ptrdiff_t
struct netconfig_list * tail
char * strchr(const char *String, int ch)
char * strcpy(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
unsigned long nc_semantics
unsigned long nc_nlookups
static void wintirpc_debug(char *fmt,...)
void nc_perror(char *s) const