tclUnixCompat.c File Reference

#include "tclInt.h"
#include <pwd.h>
#include <grp.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Defines

#define PadBuffer(buffer, length, size)

Functions

passwd * TclpGetPwNam (const char *name)
passwd * TclpGetPwUid (uid_t uid)
group * TclpGetGrNam (const char *name)
group * TclpGetGrGid (gid_t gid)
hostent * TclpGetHostByName (const char *name)
hostent * TclpGetHostByAddr (const char *addr, int length, int type)


Define Documentation

#define PadBuffer ( buffer,
length,
size   ) 

Value:

if (((length) % (size))) {                      \
        (buffer) += ((size) - ((length) % (size))); \
        (length) += ((size) - ((length) % (size))); \
    }

Definition at line 29 of file tclUnixCompat.c.


Function Documentation

struct group* TclpGetGrGid ( gid_t  gid  ) 

Definition at line 277 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

struct group* TclpGetGrNam ( const char *  name  ) 

Definition at line 221 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

struct hostent* TclpGetHostByAddr ( const char *  addr,
int  length,
int  type 
)

Definition at line 401 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

struct hostent* TclpGetHostByName ( const char *  name  ) 

Definition at line 333 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

struct passwd* TclpGetPwNam ( const char *  name  ) 

Definition at line 109 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

struct passwd* TclpGetPwUid ( uid_t  uid  ) 

Definition at line 165 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

Referenced by TclpSetVariables().



Generated on Wed Mar 12 12:18:37 2008 by  doxygen 1.5.1