tclUnixPort.h File Reference

#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/wait.h>
#include "../compat/unistd.h"
#include <utime.h>
#include <sys/socket.h>
#include <sys/utsname.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <float.h>
#include <grp.h>

Go to the source code of this file.

Defines

#define TclOSreaddir   readdir
#define TclOSseek   lseek
#define TclOSopen   open
#define TclOSstat   stat
#define TclOSlstat   lstat
#define FLT_MAX   3.402823466E+38F
#define FLT_MIN   1.175494351E-38F
#define O_NONBLOCK   0x80
#define NBIO_FLAG   O_NDELAY
#define WAIT_STATUS_TYPE   union wait
#define WIFEXITED(stat)   (((*((int *) &(stat))) & 0xff) == 0)
#define WEXITSTATUS(stat)   (((*((int *) &(stat))) >> 8) & 0xff)
#define WIFSIGNALED(stat)   (((*((int *) &(stat)))) && ((*((int *) &(stat))) == ((*((int *) &(stat))) & 0x00ff)))
#define WTERMSIG(stat)   ((*((int *) &(stat))) & 0x7f)
#define WIFSTOPPED(stat)   (((*((int *) &(stat))) & 0xff) == 0177)
#define WSTOPSIG(stat)   (((*((int *) &(stat))) >> 8) & 0xff)
#define WNOHANG   1
#define WUNTRACED   2
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define F_OK   00
#define X_OK   01
#define W_OK   02
#define R_OK   04
#define FD_CLOEXEC   1
#define lstat   stat
#define lstat64   stat64
#define TclOSlstat   TclOSstat
#define S_ISREG(m)   0
#define S_ISDIR(m)   0
#define S_ISCHR(m)   0
#define S_ISBLK(m)   0
#define S_ISFIFO(m)   0
#define S_ISLNK(m)   0
#define S_ISSOCK(m)   0
#define MAXPATHLEN   2048
#define MAXNAMLEN   255
#define L_tmpnam   100
#define SELECT_MASK   fd_set
#define NBBY   8
#define FD_SETSIZE   256
#define howmany(x, y)   (((x)+((y)-1))/(y))
#define NFDBITS   NBBY*sizeof(fd_mask)
#define MASK_SIZE   howmany(FD_SETSIZE, NFDBITS)
#define EOVERFLOW   EINVAL
#define TclpPanic   ((Tcl_PanicProc *) NULL)
#define TCL_PLATFORM_TRANSLATION   TCL_TRANSLATE_LF
#define TclpGetPid(pid)   ((unsigned long) (pid))
#define TclpReleaseFile(file)
#define TclpSysAlloc(size, isBin)   malloc((size_t)size)
#define TclpSysFree(ptr)   free((char*)ptr)
#define TclpSysRealloc(ptr, size)   realloc((char*)ptr, (size_t)size)
#define TclpExit   exit
#define MODULE_SCOPE   extern

Typedefs

typedef dirent Tcl_DirEntry
typedef off_t Tcl_SeekOffset

Functions

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

Variables

char ** environ


Define Documentation

#define EOVERFLOW   EINVAL

Definition at line 472 of file tclUnixPort.h.

Referenced by Tcl_ErrnoId(), Tcl_ErrnoMsg(), Tcl_Seek(), and Tcl_Stat().

#define F_OK   00

Definition at line 292 of file tclUnixPort.h.

Referenced by Tcl_FileObjCmd(), TclGlob(), and TclpObjNormalizePath().

#define FD_CLOEXEC   1

#define FD_SETSIZE   256

Definition at line 442 of file tclUnixPort.h.

Referenced by TclUnixWaitForFile().

#define FLT_MAX   3.402823466E+38F

Definition at line 157 of file tclUnixPort.h.

#define FLT_MIN   1.175494351E-38F

Definition at line 164 of file tclUnixPort.h.

#define howmany ( x,
 )     (((x)+((y)-1))/(y))

Definition at line 446 of file tclUnixPort.h.

#define L_tmpnam   100

Definition at line 405 of file tclUnixPort.h.

Referenced by TclpCreateTempFile(), and TclpTempFileName().

#define lstat   stat

Definition at line 320 of file tclUnixPort.h.

#define lstat64   stat64

Definition at line 321 of file tclUnixPort.h.

#define MASK_SIZE   howmany(FD_SETSIZE, NFDBITS)

Definition at line 451 of file tclUnixPort.h.

Referenced by TclUnixWaitForFile().

#define MAXNAMLEN   255

Definition at line 396 of file tclUnixPort.h.

#define MAXPATHLEN   2048

#define MODULE_SCOPE   extern

Definition at line 672 of file tclUnixPort.h.

#define NBBY   8

Definition at line 431 of file tclUnixPort.h.

Referenced by TclUnixWaitForFile().

#define NBIO_FLAG   O_NDELAY

Definition at line 185 of file tclUnixPort.h.

#define NFDBITS   NBBY*sizeof(fd_mask)

Definition at line 449 of file tclUnixPort.h.

#define O_NONBLOCK   0x80

Definition at line 173 of file tclUnixPort.h.

Referenced by TclGetOpenModeEx().

#define R_OK   04

Definition at line 301 of file tclUnixPort.h.

Referenced by Tcl_FileObjCmd(), Tcl_FSChdir(), and TclLoadFile().

#define S_ISBLK (  )     0

Definition at line 355 of file tclUnixPort.h.

#define S_ISCHR (  )     0

Definition at line 348 of file tclUnixPort.h.

#define S_ISDIR (  )     0

#define S_ISFIFO (  )     0

Definition at line 362 of file tclUnixPort.h.

#define S_ISLNK (  )     0

Definition at line 369 of file tclUnixPort.h.

#define S_ISREG (  )     0

Definition at line 334 of file tclUnixPort.h.

Referenced by Tcl_FileObjCmd(), and TclpFindExecutable().

#define S_ISSOCK (  )     0

Definition at line 376 of file tclUnixPort.h.

#define SEEK_CUR   1

#define SEEK_END   2

Definition at line 256 of file tclUnixPort.h.

Referenced by Tcl_FSOpenFileChannel(), Tcl_SeekObjCmd(), and TclpOpenFile().

#define SEEK_SET   0

Definition at line 250 of file tclUnixPort.h.

Referenced by Tcl_SeekObjCmd(), TclCleanupChildren(), and TclpCreateTempFile().

#define SELECT_MASK   fd_set

Definition at line 414 of file tclUnixPort.h.

Referenced by Tcl_Sleep(), and TclUnixWaitForFile().

#define TCL_PLATFORM_TRANSLATION   TCL_TRANSLATE_LF

Definition at line 606 of file tclUnixPort.h.

Referenced by Tcl_CreateChannel(), and Tcl_SetChannelOption().

#define TclOSlstat   TclOSstat

Definition at line 322 of file tclUnixPort.h.

#define TclOSlstat   lstat

Definition at line 322 of file tclUnixPort.h.

Referenced by TclpObjCopyFile(), and TclpObjLstat().

#define TclOSopen   open

Definition at line 71 of file tclUnixPort.h.

Referenced by TclpOpenFile(), TclpOpenFileChannel(), and TclUnixCopyFile().

#define TclOSreaddir   readdir

Definition at line 61 of file tclUnixPort.h.

Referenced by TclpMatchInDirectory(), and TclpReaddir().

#define TclOSseek   lseek

#define TclOSstat   stat

#define TclpExit   exit

Definition at line 630 of file tclUnixPort.h.

Referenced by Tcl_Exit().

#define TclpGetPid ( pid   )     ((unsigned long) (pid))

Definition at line 614 of file tclUnixPort.h.

Referenced by Tcl_PidObjCmd(), TclCleanupChildren(), and TclGetAndDetachPids().

#define TclpPanic   ((Tcl_PanicProc *) NULL)

Definition at line 507 of file tclUnixPort.h.

#define TclpReleaseFile ( file   ) 

Definition at line 615 of file tclUnixPort.h.

Referenced by TclCreatePipeline().

#define TclpSysAlloc ( size,
isBin   )     malloc((size_t)size)

Definition at line 621 of file tclUnixPort.h.

#define TclpSysFree ( ptr   )     free((char*)ptr)

Definition at line 622 of file tclUnixPort.h.

#define TclpSysRealloc ( ptr,
size   )     realloc((char*)ptr, (size_t)size)

Definition at line 623 of file tclUnixPort.h.

#define W_OK   02

Definition at line 298 of file tclUnixPort.h.

Referenced by Tcl_FileObjCmd().

#define WAIT_STATUS_TYPE   union wait

Definition at line 197 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WEXITSTATUS ( stat   )     (((*((int *) &(stat))) >> 8) & 0xff)

Definition at line 213 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WIFEXITED ( stat   )     (((*((int *) &(stat))) & 0xff) == 0)

Definition at line 209 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WIFSIGNALED ( stat   )     (((*((int *) &(stat)))) && ((*((int *) &(stat))) == ((*((int *) &(stat))) & 0x00ff)))

Definition at line 217 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WIFSTOPPED ( stat   )     (((*((int *) &(stat))) & 0xff) == 0177)

Definition at line 225 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WNOHANG   1

Definition at line 238 of file tclUnixPort.h.

Referenced by Tcl_ReapDetachedProcs().

#define WSTOPSIG ( stat   )     (((*((int *) &(stat))) >> 8) & 0xff)

Definition at line 229 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WTERMSIG ( stat   )     ((*((int *) &(stat))) & 0x7f)

Definition at line 221 of file tclUnixPort.h.

Referenced by TclCleanupChildren().

#define WUNTRACED   2

Definition at line 241 of file tclUnixPort.h.

#define X_OK   01

Definition at line 295 of file tclUnixPort.h.

Referenced by Tcl_FileObjCmd(), and TclpFindExecutable().


Typedef Documentation

typedef struct dirent Tcl_DirEntry

Definition at line 60 of file tclUnixPort.h.

typedef off_t Tcl_SeekOffset

Definition at line 69 of file tclUnixPort.h.


Function Documentation

MODULE_SCOPE struct group* TclpGetGrGid ( gid_t  gid  ) 

Definition at line 277 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

MODULE_SCOPE struct group* TclpGetGrNam ( const char *  name  ) 

Definition at line 221 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

MODULE_SCOPE 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.

MODULE_SCOPE struct hostent* TclpGetHostByName ( const char *  name  ) 

Definition at line 333 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

MODULE_SCOPE struct passwd* TclpGetPwNam ( const char *  name  ) 

Definition at line 109 of file tclUnixCompat.c.

References Tcl_MutexLock, Tcl_MutexUnlock, and TCL_TSD_INIT.

MODULE_SCOPE 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().


Variable Documentation



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