Commit Graph

164 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
John Benediktsson 7badef25ce libc: reduce code duplication. 2014-11-21 10:19:12 -08:00
John Benediktsson 39093727b1 libc: rename (io-error) to throw-errno. 2014-11-21 09:29:45 -08:00
Doug Coleman 0fe5b2d90f io.directories: Add unit test for #890. 2014-11-18 14:11:13 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
Doug Coleman be232dac9b io.backend: Remove duplicate definition of file-mode. Add mkdir-mode using non-magic symbols. Cleanup imports. 2014-10-24 17:16:40 -07:00
John Benediktsson ab969b072c io.directories.search: some cleanup. 2014-05-20 14:46:01 -07:00
John Benediktsson 3fb1532bd6 io.directories.search: add quot stack effects, simplify find-all-files. 2014-05-20 12:29:02 -07:00
John Benediktsson 7e4f2ec618 io.directories.search: faster directory traversal. 2014-05-20 12:06:11 -07:00
John Benediktsson 4ca5b2ccb3 Revert "unix.ffi: be more explicit about dirent64."
This reverts commit edf456149330d44995b1c8bdf61a1c5d2617ed9c.
2014-04-29 14:02:30 -07:00
John Benediktsson 5dd26a9066 unix.ffi: be more explicit about dirent64. 2014-04-29 13:54:27 -07:00
John Benediktsson 09dec78603 io.directories.unix.linux: fix using. 2014-04-29 13:38:27 -07:00
John Benediktsson 26ff963758 io.directories: faster directory-entries by caching dirent structs. 2014-04-29 13:22:56 -07:00
Björn Lindqvist eaca04de3b libc: several vocabs now need to depend on libc 2014-04-02 12:13:00 -05:00
Doug Coleman e407981e12 io.directories: Add with-resource-directory word and use it. 2013-09-24 13:13:39 -07:00
Doug Coleman ec1ecbe549 io.directories.unix: If you mount a .iso, all the file types are +unknown+ according to directory-files.
Fall back to file-info on +unknown+ file types and use with-directory in with-unix-directory so the paths are correct for file-info.
Fixes #911.
2013-07-11 09:46:26 -07:00
Doug Coleman 7a35d85f30 io.directories.search: Show directory entries instead of throwing them away. 2013-04-13 16:18:54 -07:00
Doug Coleman 84a93dd998 io.directories.search.windows: Windows8 doesn't find ProgramFiles with the
existing methods, find it in an os-env.
2013-04-09 12:19:06 -07:00
John Benediktsson 5a99bbaf1d io.directories.unix: style fix to line up code. 2013-03-25 19:47:56 -07:00
John Benediktsson 85d0c607b0 io.directories: fix docs for (directory-entries). 2013-03-06 17:35:53 -08:00
John Benediktsson 83712ad87e io.directories: defining "?delete-file". 2012-10-25 10:07:15 -07:00
John Benediktsson 4e72d80256 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson 2f7e8c0352 io.directories: fix mistaken refactor. 2012-07-17 08:39:31 -07:00
John Benediktsson c507293d41 io.directories.hierarchy: faster directory-tree-files. 2012-07-17 08:25:53 -07:00
John Benediktsson b519b52fa3 io.directories: cleanup and some performance improvements with move/copy. 2012-07-16 22:03:49 -07:00
John Benediktsson 2f325e4fee using if-zero in even more places. 2012-07-16 19:38:49 -07:00
Doug Coleman eccf5a82ae io.files.info.windows: Fix file-systems word in two ways. First, don't
allocate 32k on the local alloc stack (which causes a 'double fault.')
Second, if the volume doesnt look up to a real path, don't make a dummy
object for that. volume
Use alien>native-string and native-string>alien wherever possible instead of
utf16n for Windows.
2012-06-21 08:32:53 -07:00
Joe Groff 25ec33dc10 io.directories.unix: remove redundant using 2011-11-28 20:36:46 -08:00
Joe Groff 4c0d73da3c io.files.info: fix circularity
Remove the undocumented and redundant "copy-file-and-info" word, since "copy-file" does the same thing, and the circular dependency on "io.directories" was causing some deploys to fail
2011-11-28 19:37:01 -08:00
Joe Groff 7754ab2c06 io.directories.unix: make copy-file copy perms
Like the docs claim it does
2011-11-27 12:37:54 -08:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman 62f652a5a1 io.directories: fix delete-file on windows, add unit test 2011-11-12 18:28:07 -08:00
Doug Coleman 94db86a6db Make "foo.private" require load foo instead.
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201.
2011-11-02 11:50:03 -07:00
Doug Coleman b58688f87d Add throw-win32-error, use it in (delete-file) 2011-10-19 02:51:36 -07:00
Doug Coleman 5608178389 When deleting a file, if it fails with "Access is denied" then set the file
attributes to normal and try again. Some files in the .git directory are set
to read-only, preventing the build machines from deleting old builds.
2011-10-19 02:28:45 -07:00
Doug Coleman 5c694767cd Report which file doesn't get deleted on Windows. 2011-10-18 00:59:57 -07:00
Doug Coleman bf2a96e9e0 Remove Windows CE from core/ basis/ and build-support/
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.
2011-09-18 23:19:06 -05:00
Slava Pestov a8633d28c7 unix.*, io.directories.unix: remove unnecessary dependency on io.backend.unix 2011-09-01 22:31:45 -07:00
Erik Charlebois 662bc3b07b Fix bugs in unix ffi usage 2011-05-23 23:36:14 -04:00
Slava Pestov 75560699ea Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Keita Haga 7a9591674c io.directories.search: fix a couple of examples 2010-12-23 05:15:20 +09:00
Keita Haga ae7b44e5eb io.directories: fix typo in example 2010-11-14 17:18:56 +09:00
Doug Coleman 4ca9bd0bba Remove usages of <void*> and *void* 2010-10-25 13:22:50 -05:00
Slava Pestov 3bd23f2414 io.directories.hierarchy: add some tests 2010-09-20 21:36:22 -07:00
Slava Pestov f3b264522c io.directories: move directory-tree-files words to io.directories.hierarchy, where all the other *-tree stuff is 2010-09-11 18:43:47 -07:00
Doug Coleman 026499e64f Use flags{ instead of flags all over the place 2010-04-01 14:44:03 -05:00
Joe Groff e7968ceffc mop up compiler errors from macosx load-all 2010-03-09 00:56:07 -08:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Joe Groff f06e278e17 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/tools/deploy/shaker/shaker.factor
2010-02-15 11:50:43 -08:00
Slava Pestov 4893ebf183 Small cleanups 2010-02-16 04:04:09 +13:00
Joe Groff 1632fa6448 io.directories: directory-tree-files should include the directories too, not just their contents 2010-02-13 13:57:58 -08:00
Joe Groff 2b05f90c7b io.directories: add "directory-tree-files" and "with-directory-tree-files" words 2010-02-13 12:52:32 -08:00
Slava Pestov 080609c281 Minor doc fixes 2010-02-03 22:56:32 +13:00
Brad Christensen 7381d47103 More documentation cleanup. 2010-02-03 00:05:04 -07:00
Doug Coleman 7c40fc1a36 unix-system-call io-error -> unix-system-call drop
make unix.ffi, unix.ffi.linux unportable
fix spacing in io.cpp before refactoring
2010-01-23 09:07:35 -06:00
Doug Coleman 8c1d202b4c Rename accumulator to collector, pusher to selector 2010-01-22 15:00:53 -06:00
Doug Coleman 3c09c7052c Fix using 2010-01-22 12:59:33 -06:00
Doug Coleman 8d952277a2 Handle EINTR in a lot of cases where it wasn't handled before. Split off unix into unix.ffi and unix. 2010-01-22 12:59:24 -06:00
Doug Coleman 07fcb43a06 Make unix-system-call retry the call immediately upon hitting EINTR. Use unix-system-call wherever EAGAIN or EINPROGRESS are not handled. Handle EINTR if connect returns it. 2010-01-22 12:59:17 -06:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman e376a0ece2 (normalize-path) -> absolute-path, canonicalize-path -> resolve-symlinks 2009-10-28 17:25:50 -05:00
Doug Coleman 42751cb148 fix io.directories.search on windows 2009-10-15 22:00:46 -05:00
Doug Coleman 0dc734195c fix enumerating fully qualified paths by calling normalize-path first 2009-10-15 00:12:11 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman d88cdffa47 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 23:39:20 -05:00
Doug Coleman d8be0561fb make a struct for dirents on linux, not a <c-object> 2009-08-30 22:49:35 -05:00
Doug Coleman 14973eacb5 update dirent for structs 2009-08-30 22:11:42 -05:00
Doug Coleman dedc1eb0cb more WIN32_FIND_DATA structs 2009-08-29 19:43:56 -05:00
Doug Coleman b8164120f5 oops, forgot to update a struct 2009-08-29 14:37:09 -05:00
Joe Groff a6c8e91f88 fix directory-entries so we can bootstrap again 2009-08-25 23:50:27 -05:00
Slava Pestov 1214e22839 copy-tree now preserves file permissions on Unix 2009-05-14 17:36:07 -05:00
Doug Coleman 0ef5826b86 remove the rest of the unportable fields from dirent for now 2009-05-11 22:03:07 -05:00
Doug Coleman e3a3aea5de d_off is missing on macosx, remove for now 2009-05-11 21:56:09 -05:00
erg 9aaa04acea Merge branch 'master' of git://factorcode.org/git/factor 2009-05-09 10:21:38 -05:00
U-C4\Administrator ba1795c854 add a find-by-extensions word 2009-05-10 19:20:04 -05:00
erg 3bf8e41eef fix bootstrap errors, add missing files 2009-05-07 16:53:32 -05:00
erg 8c19ab04c9 use open64 instead of open on linux. use stat64 instead of stat on
linux. add word to report if a file is sparse
2009-05-07 16:41:37 -05:00
Doug Coleman 5e5042fe5f fix help-lint, compilation issue in io.directories.search 2009-04-24 19:01:26 -05:00
Doug Coleman 0220609928 handle errors when traversing directories 2009-04-24 16:24:31 -05:00
Doug Coleman c3c51e2c60 more tests for io.directories.search, fix docs, refactoring 2009-04-24 15:22:12 -05:00
Doug Coleman 33743c1a3d refactor io.directories.search 2009-04-24 14:49:31 -05:00
Doug Coleman 0759ddcfca fix io.directories.search -- doens't call link-info twice on every file now 2009-04-24 01:18:29 -05:00
Doug Coleman e8d695e314 refactoring directory searching 2009-04-20 19:01:33 -05:00
Doug Coleman bf0b1e63c8 use link-info instead of file-info 2009-04-20 17:50:26 -05:00
Doug Coleman 5c236d6585 add a size-on-disk slot to file-info, the each-file combinator now works better, add a path>sizes word 2009-04-20 16:52:18 -05:00
Doug Coleman d3bd574820 inline a couple of combinators to fix compile warnings 2009-03-28 16:34:52 -05:00
Doug Coleman 7bbcb569d4 fix find-in-directories and add unit tests 2009-03-12 17:01:44 -05:00
Slava Pestov cd53c2bd37 produce and produce-as: don't need third quotation either 2009-02-28 15:31:34 -06:00
Doug Coleman de9154fc5e make find-all-files and find-in-program-files not take the traversal method 2009-02-26 21:50:01 -06:00
Doug Coleman 19acf89d82 fix find-in-program-files 2009-02-20 12:12:00 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Slava Pestov 2fe934ba9d Remove some code duplication in io.directories.unix 2009-02-15 20:36:04 -06:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Doug Coleman c1e09147e3 fix docs typo 2009-01-29 21:11:18 -06:00
Slava Pestov 56260087ae Merge branch 'master' of git://factorcode.org/git/factor 2009-01-26 23:20:45 -06:00
Slava Pestov 92f9338978 Smart quotes 2009-01-26 23:20:27 -06:00
Doug Coleman 67d0fd934c fix unit test 2009-01-26 20:16:18 -06:00
Slava Pestov f34c14a0f5 Remove some usages of tuck 2009-01-23 18:20:47 -06:00
Slava Pestov c7c37f5f5c Update I/O docs to talk about elements instead of characters, and add each-block combinator which generalizes contents just like each-line generalizes lines 2009-01-22 19:08:20 -06:00
Slava Pestov 7eb831d349 Fix various documentation errors 2009-01-16 13:30:43 -06:00
Doug Coleman a33c3139a6 dont search empty pathnames on windows 2009-01-16 12:36:08 -06:00