tclUnixFCmd.c File Reference

#include "tclInt.h"
#include <utime.h>
#include <grp.h>
#include <sys/statfs.h>

Go to the source code of this file.

Defines

#define DOTREE_PRED   1
#define DOTREE_POSTD   2
#define DOTREE_F   3
#define MAX_READDIR_UNLINK_THRESHOLD   130
#define Realpath   realpath
#define haveRealpath   1
#define BINMODE

Typedefs

typedef int( TraversalProc )(Tcl_DString *srcPtr, Tcl_DString *dstPtr, CONST Tcl_StatBuf *statBufPtr, int type, Tcl_DString *errorPtr)

Enumerations

enum  { UNIX_GROUP_ATTRIBUTE, UNIX_OWNER_ATTRIBUTE, UNIX_PERMISSIONS_ATTRIBUTE, UNIX_INVALID_ATTRIBUTE }

Functions

int TclpObjRenameFile (Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr)
int TclpObjCopyFile (Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr)
int TclUnixCopyFile (CONST char *src, CONST char *dst, CONST Tcl_StatBuf *statBufPtr, int dontCopyAtts)
int TclpObjDeleteFile (Tcl_Obj *pathPtr)
int TclpDeleteFile (CONST char *path)
int TclpObjCreateDirectory (Tcl_Obj *pathPtr)
int TclpObjCopyDirectory (Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr, Tcl_Obj **errorPtr)
int TclpObjRemoveDirectory (Tcl_Obj *pathPtr, int recursive, Tcl_Obj **errorPtr)
Tcl_ObjTclpObjListVolumes (void)
int TclpObjNormalizePath (Tcl_Interp *interp, Tcl_Obj *pathPtr, int nextCheckpoint)

Variables

MODULE_SCOPE CONST char * tclpFileAttrStrings []
CONST char * tclpFileAttrStrings []
MODULE_SCOPE CONST TclFileAttrProcs tclpFileAttrProcs []
CONST TclFileAttrProcs tclpFileAttrProcs []


Define Documentation

#define BINMODE

Referenced by TclUnixCopyFile().

#define DOTREE_F   3

Definition at line 68 of file tclUnixFCmd.c.

#define DOTREE_POSTD   2

Definition at line 67 of file tclUnixFCmd.c.

#define DOTREE_PRED   1

Definition at line 66 of file tclUnixFCmd.c.

#define haveRealpath   1

Definition at line 235 of file tclUnixFCmd.c.

Referenced by TclpObjNormalizePath().

#define MAX_READDIR_UNLINK_THRESHOLD   130

Definition at line 176 of file tclUnixFCmd.c.

#define Realpath   realpath

Definition at line 219 of file tclUnixFCmd.c.

Referenced by TclpObjNormalizePath().


Typedef Documentation

typedef int( TraversalProc)(Tcl_DString *srcPtr, Tcl_DString *dstPtr, CONST Tcl_StatBuf *statBufPtr, int type, Tcl_DString *errorPtr)

Definition at line 101 of file tclUnixFCmd.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
UNIX_GROUP_ATTRIBUTE 
UNIX_OWNER_ATTRIBUTE 
UNIX_PERMISSIONS_ATTRIBUTE 
UNIX_INVALID_ATTRIBUTE 

Definition at line 122 of file tclUnixFCmd.c.


Function Documentation

int TclpDeleteFile ( CONST char *  path  ) 

Definition at line 633 of file tclUnixFCmd.c.

References TCL_ERROR, and TCL_OK.

int TclpObjCopyDirectory ( Tcl_Obj srcPathPtr,
Tcl_Obj destPathPtr,
Tcl_Obj **  errorPtr 
)

int TclpObjCopyFile ( Tcl_Obj srcPathPtr,
Tcl_Obj destPathPtr 
)

Definition at line 410 of file tclUnixFCmd.c.

References CONST, TCL_ERROR, Tcl_FSGetNativePath(), and TclOSlstat.

int TclpObjCreateDirectory ( Tcl_Obj pathPtr  ) 

Definition at line 669 of file tclUnixFCmd.c.

References Tcl_FSGetNativePath().

int TclpObjDeleteFile ( Tcl_Obj pathPtr  ) 

Definition at line 626 of file tclUnixFCmd.c.

References Tcl_FSGetNativePath(), and TclpDeleteFile().

Tcl_Obj* TclpObjListVolumes ( void   ) 

Definition at line 1682 of file tclUnixFCmd.c.

References Tcl_IncrRefCount, and Tcl_NewStringObj().

int TclpObjRemoveDirectory ( Tcl_Obj pathPtr,
int  recursive,
Tcl_Obj **  errorPtr 
)

int TclpObjRenameFile ( Tcl_Obj srcPathPtr,
Tcl_Obj destPathPtr 
)

Definition at line 294 of file tclUnixFCmd.c.

References Tcl_FSGetNativePath().

int TclUnixCopyFile ( CONST char *  src,
CONST char *  dst,
CONST Tcl_StatBuf statBufPtr,
int  dontCopyAtts 
)

Definition at line 511 of file tclUnixFCmd.c.

References BINMODE, ckalloc, ckfree, TCL_ERROR, TCL_OK, and TclOSopen.


Variable Documentation

Initial value:

 {
    {GetGroupAttribute, SetGroupAttribute},
    {GetOwnerAttribute, SetOwnerAttribute},
    {GetPermissionsAttribute, SetPermissionsAttribute},









}

Definition at line 147 of file tclUnixFCmd.c.

MODULE_SCOPE CONST TclFileAttrProcs tclpFileAttrProcs[]

Definition at line 146 of file tclUnixFCmd.c.

CONST char* tclpFileAttrStrings[]

Initial value:

 {
    "-group", "-owner", "-permissions",






    NULL
}

Definition at line 135 of file tclUnixFCmd.c.

MODULE_SCOPE CONST char* tclpFileAttrStrings[]

Definition at line 134 of file tclUnixFCmd.c.



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