summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-21/+30
| | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.) FossilOrigin-Name: 3995dbcf90f781e3ada9e350f501dbb1bf5550be
* Final part of result generation conversion (modulo any minor blunders)dkf2012-08-051-7/+6
| | | FossilOrigin-Name: 1fb35ca910ce286ab4f7cc7f304d120bed86723b
* Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-6/+5
| | | FossilOrigin-Name: 4dd736c95fc5e333c574e4d23aeccb7e0bdd41ae
* mergejan.nijtmans2012-06-271-3/+3
|\ | | | | FossilOrigin-Name: 21f0d00d5ca4e46cbc55abc02d25ac494ee8f4cd
| * mergejan.nijtmans2012-06-271-3/+3
| |\ | | | | | | FossilOrigin-Name: 940b45c17a446a8f897c1f5ae557f71f8f693080
| | * fix bug in cygwin's [info nameofexecutable]jan.nijtmans2012-06-271-1/+1
| | | | | | | | | | | | | | | install dde and registry dll for cygwin FossilOrigin-Name: 1fe8106c703242c06581d8a8f45177a86a1867bc
* | | use cygwin_conv_path() in stead of deprecated cygwin_conv_to_full_posix_pathjan.nijtmans2012-06-261-4/+3
|\ \ \ | |/ / | | | FossilOrigin-Name: 0bde6cbf35418840a1620ec6db89670a7ad5e2b1
| * | use cygwin_conv_path() in stead of deprecated cygwin_conv_to_full_posix_pathjan.nijtmans2012-06-261-4/+3
| |\ \ | | |/ | | | FossilOrigin-Name: 23aec1435f170c91768f86642ab34552883c7f8e
| | * use cygwin_conv_path() in stead of deprecated cygwin_conv_to_full_posix_pathjan.nijtmans2012-06-261-4/+3
| | | | | | | | | FossilOrigin-Name: bf8c3e8ec6d204c22fdc7521c1b39d823670a823
* | | Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-8/+0
|\ \ \ | |/ / | | | FossilOrigin-Name: 123ede187702b829c2ea75ccc3fd48e88a4cc9fa
| * | Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-8/+0
| |\ \ | | |/ | | | FossilOrigin-Name: 05e03611b4dc4df424998bebb80d4f77271611f3
| | * Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-8/+0
| | | | | | | | | | | | | | | Simplify stub tables for functions which work on both UNIX and windows FossilOrigin-Name: d10b6a84313e53bdd9d639c96eaf93875fd8a398
* | | Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongsjan.nijtmans2012-04-271-5/+6
|\ \ \ | |/ / | | | FossilOrigin-Name: add6ea13976b7c891bec7653ccab6d3b9acd9eac
| * | Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongsjan.nijtmans2012-04-271-14/+12
| | | | | | | | | FossilOrigin-Name: 533c11d007d8e745310500281326a69c5252bdc5
* | | Repair more build breakage.dgp2012-04-261-7/+5
| | | | | | | | | FossilOrigin-Name: 0589ebf465de4e2c7218a376d2ce7f4eebd6f040
* | | fix Linux build ;-(jan.nijtmans2012-04-261-4/+3
|\ \ \ | |/ / | | | FossilOrigin-Name: e25c56f93462e3df7d49e784049b5ac5a9c0f20f
* | | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-18/+4
| | | | | | | | | | | | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one. FossilOrigin-Name: 2e12143e3906901f7fe95b8ce11211f9310e741f
| | |
| \ \
| \ \
| \ \
*---. \ \ [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-1/+29
|\ \ \ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin FossilOrigin-Name: 3caedf05df5f633fcf7be0aae735bb26a6de081b
| | | * | gcc warningsjan.nijtmans2012-04-241-2/+1
| | |/ / | | | | | | | | FossilOrigin-Name: d2d01508c4863228ff5439afb0b5b59d4151b6c0
| | * | [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-2/+31
| | |\ \ | |/ / / | | | _ | | | | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin FossilOrigin-Name: fcc5957e5911f8e7bd56f6da83842ec3b2054999
| | * [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-04-241-5/+33
| | |\ | | | | | | | | | | | | | | | | | | | | Implement TclWinGetSockOpt, TclWinGetServByName and TclWinCPUID for Cygwin FossilOrigin-Name: ae92de6078051cad28f8d5c66edb2078c5259d32
| | | * tclpGetPid signature change (stub entry only, not for macro),jan.nijtmans2012-04-061-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | for win64 compatibility with future cygwin64 correctly use win32 as default when cross-compiling under cygwin FossilOrigin-Name: 7fd5826902e165985ea782a2f70f5b1d58c01aab
| | | * implement TclpGetPid for Cygwinjan.nijtmans2012-04-041-5/+33
| | |/ | | | | | | FossilOrigin-Name: dcc7f6a5b49b24bd0ea6f4f73111f660ed19b483
| | * [Bug 3288345] Wrong Tcl_StatBuf used on Cygwinjan.nijtmans2012-03-201-1/+43
| | | | | | | | | | | | | | | (backported from Tcl 8.5) FossilOrigin-Name: 77f914d3725ba27f162091c7a59053ef6add8df9
* | | [Bug 3288345] Wrong Tcl_StatBuf used on Cygwinjan.nijtmans2012-03-151-0/+34
|\ \ \ | |/ / | | | FossilOrigin-Name: 7ad5febe39a26b2054a311d158502e552a71eb4d
| * | xjan.nijtmans2012-03-151-0/+34
| | | | | | | | | FossilOrigin-Name: 50a7f8cea56f6aa6005d3bc698cb92e1735b1d4f
* | | More isspace() callers.dgp2011-04-281-1/+1
|\ \ \ | |/ / | | | FossilOrigin-Name: 41acfe91eae4a425fa99d8d60b26e32d775a2bc6
| * | More isspace() callers.dgp2011-04-281-1/+1
| | | | | | | | | FossilOrigin-Name: 88095bbde01c7ae249326f391cd8e8f071a9b4c6
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-2/+2
| | | | | | | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | | | | | | | cause more harm than good. Purged them (except in zlib files). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * ensure translated path is freedvincentdarley2003-10-311-1/+2
| | | | | | | | | FossilOrigin-Name: 414a62cb23ef267f915c018f31991483eb98d929
| | * backporting of filesystem tests, docsvincentdarley2003-10-031-4/+9
| | | | | | | | | FossilOrigin-Name: 9cc6cd11c033e2c40d3aba0f11cb4f1ce995b1cb
| * | Stop calling endpwent() and endgrent(); unneeded. [Bug 1942222]dkf2009-08-021-4/+2
| | | | | | | | | FossilOrigin-Name: f405ee19560cb7c85a8c764f0568ee0de296cabd
* | | Eliminate various unnecessary type casts, use function typedefs whenever ↵nijtmans2010-06-211-4/+4
| | | | | | | | | | | | | | | possible FossilOrigin-Name: 8086293cfcc9a1df3403ec3bb318d43ca99209ea
* | | Move TCHAR fallback typedef from tcl.h to tclPlatDecls.h (as suggested by dgp)nijtmans2010-04-221-5/+5
| | | | | | | | | | | | | | | | | | Eliminate various unnecessary type casts. FossilOrigin-Name: 77d22c7b43802be11238dcc3c0bb21ad11e74e33
* | | Fix gcc warning: ignoring return value of ‘write’,nijtmans2009-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | declared with attribute warn_unused_result CONSTify functions TclpGetUserHome and TclSetPreInitScript (TIP #27) FossilOrigin-Name: e52afe7fa4a7ade909410cfb737f1f7bbe6c201a
* | | Stop calling endpwent() and endgrent(); unneeded. [Bug 1942222]dkf2009-08-021-4/+2
| | | | | | | | | FossilOrigin-Name: 2272f042f27238727bc8b410700daa099edb2b6f
* | | - eliminate some unnessary type castsnijtmans2009-02-031-3/+4
| | | | | | | | | | | | | | | | | | | | | - some internal const decorations - spacing FossilOrigin-Name: 4ad5e07e8ede6030f3761fe757be48b382755be1
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-147/+160
|/ / | | | | FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | coverity id 100das2007-09-171-4/+4
| | | | | | FossilOrigin-Name: b396c27797d460769f0db117b09f5106bd05c4b8
* | fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segvcoldstore2006-08-291-1/+4
| | | | | | FossilOrigin-Name: 349a10088f4b234db489609ddf5473c248f2a0c4
* | added check for NULL return value of Tcl_FSGetTranslatedPath(), coverity bug 39das2006-03-251-1/+4
| | | | | | FossilOrigin-Name: 826f64eb339d8e43d8a9cc3e1ecff69eb78a9454
* | * generic/tclInt.decls: implement globbing for HFS creator & typedas2006-03-211-11/+80
| | | | | | | | | | | | | | | | | | | | | | * macosx/tclMacOSXFCmd.c: codes and 'hidden' flag, as documented in * tests/macOSXFCmd.test: glob.n; objectified OSType handling in [glob] * unix/tclUnixFile.c: and [file attributes]; fix globbing for hidden files with pattern==NULL arg. [Bug 823329] * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: make genstubs FossilOrigin-Name: c72a1b963bebae88298ba81a6d1a67515c913790
* | More bits of ANSIfyingdkf2005-11-111-56/+59
| | | | | | FossilOrigin-Name: 884b0bcef26231ce020528ecb037336516222c6e
* | allow NULL interp in Tcl_FSMatchInDirectoryvincentdarley2005-08-311-5/+7
| | | | | | FossilOrigin-Name: 5139fcec81092f6d0fbdcccc79baeab183f41857
* | Getting more systematic about styledkf2005-07-201-224/+274
| | | | | | FossilOrigin-Name: 0c5cea4d810d972d3fc068b559c281718525451f
* | * generic/tclUtil.c: Updated Tcl_GetNameOfExecutable() todgp2004-12-011-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: make use of a ProcessGlobalValue for * generic/tclEvent.c: storing the executable name. Added internal routines Tcl(Get|Set)ObjNameOfExecutable() to access that storage in Tcl_Obj, rather than string format. * unix/tclUnixFile.c: Rewrote TclpFindExecutable() to use * win/tclWinFile.c: TclSetObjNameOfExecutable to store the executable name it computes. * generic/tclInt.h: Added internal stub entries for * generic/tclInt.decls: TclpFindExecutable and Tcl(Get|Set)ObjNameOfExecutable. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclCmdIL.c: Retrieve executable name in Tcl_Obj form * win/tclWinPipe.c: instead of string form. * unix/tclUnixTest.c: Update [testfindexecutable] command to use new internal interfaces. FossilOrigin-Name: 353036774ea2c180f427a71ae6bbd7812a6e45d2