#include <wintirpc.h>
#include <sys/param.h>
#include <rpc/rpc.h>
#include "rpc_com.h"
#include <ctype.h>
#include <stdio.h>
#include <grp.h>
#include <pwd.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
◆ NGROUPS
◆ _getgroups() [1/2]
◆ _getgroups() [2/2]
Definition at line 149 of file netnamer.c.
160 while ((grp = getgrent())) {
161 for (
i = 0; grp->gr_mem[
i];
i++)
162 if (!
strcmp(grp->gr_mem[
i], uname)) {
166 "initgroups: %s is in too many groups\n", uname);
172 for (
j = 0;
j < ngroups;
j++)
173 if (
groups[
j] == grp->gr_gid) {
178 groups[ngroups++] = grp->gr_gid;
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
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 GLint GLint j
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
int strcmp(const char *String1, const char *String2)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
◆ getnetid()
Definition at line 239 of file netnamer.c.
273 else if (
res[0] ==
'+') {
298 "Bad record in %s '+' -- NIS not supported in this library copy\n",
304 mkey = strsep(&
res,
"\t ");
311 mval = strsep(&
res,
" \t#\n");
312 }
while (mval !=
NULL && !*mval);
ACPI_SIZE strlen(const char *String)
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_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)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
char * strcpy(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
Referenced by netname2host(), and netname2user().
◆ netname2host()
int netname2host |
( |
netname |
, |
|
|
char * |
hostname, |
|
|
int |
hostlen |
|
) |
| |
Definition at line 190 of file netnamer.c.
204 if ((*
val ==
'0') && (
val[1] ==
':')) {
219 if (vallen > (hostlen - 1))
220 vallen = hostlen - 1;
static int getnetid(char *, char *)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
int __rpc_get_default_domain(char **)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
int strcmp(const char *String1, const char *String2)
◆ netname2user()
Definition at line 67 of file netnamer.c.
88 p = strsep(&
res,
":");
92 p = strsep(&
res,
"\n,");
98 for (gidlen = 0; gidlen <
NGROUPS; gidlen++) {
99 p = strsep(&
res,
"\n,");
108 val1 =
strchr(netname,
'.');
117 vallen = val2 - val1;
118 if (vallen > (1024 - 1))
static int getnetid(char *, char *)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
int __rpc_get_default_domain(char **)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
static int _getgroups(char *, gid_t *)
void pwd(int argc, const char *argv[])
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
_Check_return_ long __cdecl atol(_In_z_ const char *_Str)
char * strchr(const char *String, int ch)
int strcmp(const char *String1, const char *String2)
◆ NETID
char* NETID = "netid.byname" |
|
static |
◆ NETIDFILE
char* NETIDFILE = "/etc/netid" |
|
static |
◆ OPSYS