Linux Manuals session 3

Section 3: library functions

  • |

    Tcl_NewBignumObj (3) Linux Manual Page

    Tcl_NewIntObj, Tcl_NewLongObj, Tcl_NewWideIntObj, Tcl_SetIntObj, Tcl_SetLongObj, Tcl_SetWideIntObj, Tcl_GetIntFromObj, Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, Tcl_NewBignumObj, Tcl_SetBignumObj, Tcl_GetBignumFromObj, Tcl_TakeBignumFromObj – manipulate Tcl objects as integer values Synopsis#include <tcl.h> Tcl_Obj * Tcl_NewIntObj(intValue) Tcl_Obj * Tcl_NewLongObj(longValue) Tcl_Obj * Tcl_NewWideIntObj(wideValue) Tcl_SetIntObj(objPtr, intValue) Tcl_SetLongObj(objPtr, longValue) Tcl_SetWideIntObj(objPtr, wideValue) int Tcl_GetIntFromObj(interp, objPtr, intPtr) int Tcl_GetLongFromObj(interp, objPtr, longPtr) int Tcl_GetWideIntFromObj(interp, objPtr, widePtr) #include <tclTomMath.h> Tcl_Obj * Tcl_NewBignumObj(bigValue) Tcl_SetBignumObj(objPtr,…

  • |

    Tcl_NRExprObj (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NREvalObjv (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NREvalObj (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NRCreateCommand (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NRCmdSwap (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NRCallObjProc (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_NRAddCallback (3) Linux Manual Page

    Tcl_NRCreateCommand, Tcl_NRCallObjProc, Tcl_NREvalObj, Tcl_NREvalObjv, Tcl_NRCmdSwap, Tcl_NRExprObj, Tcl_NRAddCallback – Non-Recursive (stackless) evaluation of Tcl scripts. Synopsis#include <tcl.h> Tcl_Command Tcl_NRCreateCommand(interp, cmdName, proc, nreProc, clientData, deleteProc) int Tcl_NRCallObjProc(interp, nreProc, clientData, objc, objv) int Tcl_NREvalObj(interp, objPtr, flags) int Tcl_NREvalObjv(interp, objc, objv, flags) int Tcl_NRCmdSwap(interp, cmd, objc, objv, flags) int Tcl_NRExprObj(interp, objPtr, resultPtr) void Tcl_NRAddCallback(interp, postProcPtr, data0, data1, data2, data3)ArgumentsTcl_Interp…

  • |

    Tcl_MutexUnlock (3) Linux Manual Page

    Tcl_ConditionNotify, Tcl_ConditionWait, Tcl_ConditionFinalize, Tcl_GetThreadData, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_MutexFinalize, Tcl_CreateThread, Tcl_JoinThread – Tcl thread support Synopsis#include <tcl.h> void Tcl_ConditionNotify(condPtr) void Tcl_ConditionWait(condPtr, mutexPtr, timePtr) void Tcl_ConditionFinalize(condPtr) Void * Tcl_GetThreadData(keyPtr, size) void Tcl_MutexLock(mutexPtr) void Tcl_MutexUnlock(mutexPtr) void Tcl_MutexFinalize(mutexPtr) int Tcl_CreateThread(idPtr, threadProc, clientData, stackSize, flags) int Tcl_JoinThread(id, result)ArgumentsTcl_Condition *condPtr (in) A condition variable, which must be associated with a mutex lock….

  • |

    Tcl_MutexLock (3) Linux Manual Page

    Tcl_ConditionNotify, Tcl_ConditionWait, Tcl_ConditionFinalize, Tcl_GetThreadData, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_MutexFinalize, Tcl_CreateThread, Tcl_JoinThread – Tcl thread support Synopsis#include <tcl.h> void Tcl_ConditionNotify(condPtr) void Tcl_ConditionWait(condPtr, mutexPtr, timePtr) void Tcl_ConditionFinalize(condPtr) Void * Tcl_GetThreadData(keyPtr, size) void Tcl_MutexLock(mutexPtr) void Tcl_MutexUnlock(mutexPtr) void Tcl_MutexFinalize(mutexPtr) int Tcl_CreateThread(idPtr, threadProc, clientData, stackSize, flags) int Tcl_JoinThread(id, result)ArgumentsTcl_Condition *condPtr (in) A condition variable, which must be associated with a mutex lock….

  • |

    Tcl_MutexFinalize (3) Linux Manual Page

    Tcl_ConditionNotify, Tcl_ConditionWait, Tcl_ConditionFinalize, Tcl_GetThreadData, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_MutexFinalize, Tcl_CreateThread, Tcl_JoinThread – Tcl thread support Synopsis#include <tcl.h> void Tcl_ConditionNotify(condPtr) void Tcl_ConditionWait(condPtr, mutexPtr, timePtr) void Tcl_ConditionFinalize(condPtr) Void * Tcl_GetThreadData(keyPtr, size) void Tcl_MutexLock(mutexPtr) void Tcl_MutexUnlock(mutexPtr) void Tcl_MutexFinalize(mutexPtr) int Tcl_CreateThread(idPtr, threadProc, clientData, stackSize, flags) int Tcl_JoinThread(id, result)ArgumentsTcl_Condition *condPtr (in) A condition variable, which must be associated with a mutex lock….

  • |

    Tcl_MethodName (3) Linux Manual Page

    Tcl_ClassSetConstructor, Tcl_ClassSetDestructor, Tcl_MethodDeclarerClass, Tcl_MethodDeclarerObject, Tcl_MethodIsPublic, Tcl_MethodIsType, Tcl_MethodName, Tcl_NewInstanceMethod, Tcl_NewMethod, Tcl_ObjectContextInvokeNext, Tcl_ObjectContextIsFiltering, Tcl_ObjectContextMethod, Tcl_ObjectContextObject, Tcl_ObjectContextSkippedArgs – manipulate methods and method-call contexts Synopsis#include <tclOO.h> Tcl_Method Tcl_NewMethod(interp, class, nameObj, isPublic, methodTypePtr, clientData) Tcl_Method Tcl_NewInstanceMethod(interp, object, nameObj, isPublic, methodTypePtr, clientData) Tcl_ClassSetConstructor(interp, class, method) Tcl_ClassSetDestructor(interp, class, method) Tcl_Class Tcl_MethodDeclarerClass(method) Tcl_Object Tcl_MethodDeclarerObject(method) Tcl_Obj * Tcl_MethodName(method) int Tcl_MethodIsPublic(method) int Tcl_MethodIsType(method, methodTypePtr, clientDataPtr)…

  • |

    Tcl_MethodIsType (3) Linux Manual Page

    Tcl_ClassSetConstructor, Tcl_ClassSetDestructor, Tcl_MethodDeclarerClass, Tcl_MethodDeclarerObject, Tcl_MethodIsPublic, Tcl_MethodIsType, Tcl_MethodName, Tcl_NewInstanceMethod, Tcl_NewMethod, Tcl_ObjectContextInvokeNext, Tcl_ObjectContextIsFiltering, Tcl_ObjectContextMethod, Tcl_ObjectContextObject, Tcl_ObjectContextSkippedArgs – manipulate methods and method-call contexts Synopsis#include <tclOO.h> Tcl_Method Tcl_NewMethod(interp, class, nameObj, isPublic, methodTypePtr, clientData) Tcl_Method Tcl_NewInstanceMethod(interp, object, nameObj, isPublic, methodTypePtr, clientData) Tcl_ClassSetConstructor(interp, class, method) Tcl_ClassSetDestructor(interp, class, method) Tcl_Class Tcl_MethodDeclarerClass(method) Tcl_Object Tcl_MethodDeclarerObject(method) Tcl_Obj * Tcl_MethodName(method) int Tcl_MethodIsPublic(method) int Tcl_MethodIsType(method, methodTypePtr, clientDataPtr)…

  • |

    Tcl_MethodIsPublic (3) Linux Manual Page

    Tcl_ClassSetConstructor, Tcl_ClassSetDestructor, Tcl_MethodDeclarerClass, Tcl_MethodDeclarerObject, Tcl_MethodIsPublic, Tcl_MethodIsType, Tcl_MethodName, Tcl_NewInstanceMethod, Tcl_NewMethod, Tcl_ObjectContextInvokeNext, Tcl_ObjectContextIsFiltering, Tcl_ObjectContextMethod, Tcl_ObjectContextObject, Tcl_ObjectContextSkippedArgs – manipulate methods and method-call contexts Synopsis#include <tclOO.h> Tcl_Method Tcl_NewMethod(interp, class, nameObj, isPublic, methodTypePtr, clientData) Tcl_Method Tcl_NewInstanceMethod(interp, object, nameObj, isPublic, methodTypePtr, clientData) Tcl_ClassSetConstructor(interp, class, method) Tcl_ClassSetDestructor(interp, class, method) Tcl_Class Tcl_MethodDeclarerClass(method) Tcl_Object Tcl_MethodDeclarerObject(method) Tcl_Obj * Tcl_MethodName(method) int Tcl_MethodIsPublic(method) int Tcl_MethodIsType(method, methodTypePtr, clientDataPtr)…

  • |

    Tcl_MethodDeclarerObject (3) Linux Manual Page

    Tcl_ClassSetConstructor, Tcl_ClassSetDestructor, Tcl_MethodDeclarerClass, Tcl_MethodDeclarerObject, Tcl_MethodIsPublic, Tcl_MethodIsType, Tcl_MethodName, Tcl_NewInstanceMethod, Tcl_NewMethod, Tcl_ObjectContextInvokeNext, Tcl_ObjectContextIsFiltering, Tcl_ObjectContextMethod, Tcl_ObjectContextObject, Tcl_ObjectContextSkippedArgs – manipulate methods and method-call contexts Synopsis#include <tclOO.h> Tcl_Method Tcl_NewMethod(interp, class, nameObj, isPublic, methodTypePtr, clientData) Tcl_Method Tcl_NewInstanceMethod(interp, object, nameObj, isPublic, methodTypePtr, clientData) Tcl_ClassSetConstructor(interp, class, method) Tcl_ClassSetDestructor(interp, class, method) Tcl_Class Tcl_MethodDeclarerClass(method) Tcl_Object Tcl_MethodDeclarerObject(method) Tcl_Obj * Tcl_MethodName(method) int Tcl_MethodIsPublic(method) int Tcl_MethodIsType(method, methodTypePtr, clientDataPtr)…

  • |

    Tcl_MethodDeclarerClass (3) Linux Manual Page

    Tcl_ClassSetConstructor, Tcl_ClassSetDestructor, Tcl_MethodDeclarerClass, Tcl_MethodDeclarerObject, Tcl_MethodIsPublic, Tcl_MethodIsType, Tcl_MethodName, Tcl_NewInstanceMethod, Tcl_NewMethod, Tcl_ObjectContextInvokeNext, Tcl_ObjectContextIsFiltering, Tcl_ObjectContextMethod, Tcl_ObjectContextObject, Tcl_ObjectContextSkippedArgs – manipulate methods and method-call contexts Synopsis#include <tclOO.h> Tcl_Method Tcl_NewMethod(interp, class, nameObj, isPublic, methodTypePtr, clientData) Tcl_Method Tcl_NewInstanceMethod(interp, object, nameObj, isPublic, methodTypePtr, clientData) Tcl_ClassSetConstructor(interp, class, method) Tcl_ClassSetDestructor(interp, class, method) Tcl_Class Tcl_MethodDeclarerClass(method) Tcl_Object Tcl_MethodDeclarerObject(method) Tcl_Obj * Tcl_MethodName(method) int Tcl_MethodIsPublic(method) int Tcl_MethodIsType(method, methodTypePtr, clientDataPtr)…

  • |

    Tcl_Merge (3) Linux Manual Page

    Tcl_SplitList, Tcl_Merge, Tcl_ScanElement, Tcl_ConvertElement, Tcl_ScanCountedElement, Tcl_ConvertCountedElement – manipulate Tcl lists Synopsis#include <tcl.h> int Tcl_SplitList(interp, list, argcPtr, argvPtr) char * Tcl_Merge(argc, argv) int Tcl_ScanElement(src, flagsPtr) int Tcl_ScanCountedElement(src, length, flagsPtr) int Tcl_ConvertElement(src, dst, flags) int Tcl_ConvertCountedElement(src, length, dst, flags)ArgumentsTcl_Interp *interp (out) Interpreter to use for error reporting. If NULL, then no error message is left. char *list…

  • |

    Tcl_MakeTcpClientChannel (3) Linux Manual Page

    Tcl_OpenTcpClient, Tcl_MakeTcpClientChannel, Tcl_OpenTcpServer – procedures to open channels using TCP sockets Synopsis#include <tcl.h> Tcl_Channel Tcl_OpenTcpClient(interp, port, host, myaddr, myport, async) Tcl_Channel Tcl_MakeTcpClientChannel(sock) Tcl_Channel Tcl_OpenTcpServer(interp, port, myaddr, proc, clientData)ArgumentsTcl_Interp *interp (in) Tcl interpreter to use for error reporting. If non-NULL and an error occurs, an error message is left in the interpreter’s result. int port (in)…

  • |

    Tcl_MakeSafe (3) Linux Manual Page

    Tcl_IsSafe, Tcl_MakeSafe, Tcl_CreateSlave, Tcl_GetSlave, Tcl_GetMaster, Tcl_GetInterpPath, Tcl_CreateAlias, Tcl_CreateAliasObj, Tcl_GetAlias, Tcl_GetAliasObj, Tcl_ExposeCommand, Tcl_HideCommand – manage multiple Tcl interpreters, aliases and hidden commands Synopsis#include <tcl.h> int Tcl_IsSafe(interp) int Tcl_MakeSafe(interp) Tcl_Interp * Tcl_CreateSlave(interp, slaveName, isSafe) Tcl_Interp * Tcl_GetSlave(interp, slaveName) Tcl_Interp * Tcl_GetMaster(interp) int Tcl_GetInterpPath(askingInterp, slaveInterp) int Tcl_CreateAlias(slaveInterp, slaveCmd, targetInterp, targetCmd, argc, argv) int Tcl_CreateAliasObj(slaveInterp, slaveCmd, targetInterp, targetCmd, objc,…

  • |

    Tcl_MakeFileChannel (3) Linux Manual Page

    Tcl_OpenFileChannel, Tcl_OpenCommandChannel, Tcl_MakeFileChannel, Tcl_GetChannel, Tcl_GetChannelNames, Tcl_GetChannelNamesEx, Tcl_RegisterChannel, Tcl_UnregisterChannel, Tcl_DetachChannel, Tcl_IsStandardChannel, Tcl_Close, Tcl_ReadChars, Tcl_Read, Tcl_GetsObj, Tcl_Gets, Tcl_WriteObj, Tcl_WriteChars, Tcl_Write, Tcl_Flush, Tcl_Seek, Tcl_Tell, Tcl_TruncateChannel, Tcl_GetChannelOption, Tcl_SetChannelOption, Tcl_Eof, Tcl_InputBlocked, Tcl_InputBuffered, Tcl_OutputBuffered, Tcl_Ungets, Tcl_ReadRaw, Tcl_WriteRaw – buffered I/O facilities using channels Synopsis#include <tcl.h> Tcl_Channel Tcl_OpenFileChannel(interp, fileName, mode, permissions) Tcl_Channel Tcl_OpenCommandChannel(interp, argc, argv, flags) Tcl_Channel Tcl_MakeFileChannel(handle, readOrWrite) Tcl_Channel Tcl_GetChannel(interp, channelName,…