Commit Graph

142 Commits (c881f42bb74472e7387cd43c7d372801d2d73363)

Author SHA1 Message Date
Björn Lindqvist 3bbf421043 io.files: the paths are absolute so cwd prepend-path isn't needed 2016-09-14 14:02:11 +02:00
Björn Lindqvist a2e8af2581 io.files: command line params is in the system's native encoding 2015-08-24 07:23:40 -07:00
Doug Coleman 73d45cf6db io.files: Add change-file-lines and change-file-contents words. 2015-08-04 15:03:37 -07:00
Doug Coleman fbbd09f3c5 factor: system:image -> image-path, like vm-path. image is all over the place png, jpg etc 2015-07-20 00:17:09 -07:00
Doug Coleman 618330b31e factor: rename system:vm -> vm-path to differentiate it from vm:vm (which is a STRUCT:) 2015-07-20 00:10:29 -07:00
Doug Coleman 44e8e7b344 primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.
Use PRIMITIVE: in core/ and basis/
2015-06-25 18:02:03 -07:00
Doug Coleman d23ab51ce8 io.files: Move with-cd to the tests file so that nobody uses it. My bad. Basically nobody should ever use cd or cwd for anything. Fixes #1214. 2014-11-23 01:39:36 -08:00
Doug Coleman aff0150a8c io.files: add with-cd. Related to #1214. 2014-11-22 22:21:35 -08:00
Björn Lindqvist eaca04de3b libc: several vocabs now need to depend on libc 2014-04-02 12:13:00 -05:00
Björn Lindqvist 753b2f0177 io.files: make wait-for-fd generic and dispatch depending on backend
do-ssl-accept need to call wait-for-fd so it needs to be generic. On
windows it's a noop but on unix it will wait for the fd.
2014-04-02 12:12:49 -05:00
Björn Lindqvist 5f38df7741 io.sockets.secure.windows: reading and writing from ssl sockets
Unified the drain and refill generics and put their definition in
io.files. They are now used by both the windows and unix ssl backend
for io. Windows ssl kind of works now, but the error cases are not
implemented correctly.
2014-04-02 12:12:14 -05:00
John Benediktsson 5487480126 core: cleanup USING lists. 2013-03-05 10:34:47 -08:00
Joe Groff 83a3a0346b io.files: check argv when initing resource-path 2012-03-27 16:58:12 -07:00
Joe Groff 1d9838aa57 io.files: back out resource-path change
It's too brittle against varying current directories or the Factor directory being moved.
2011-11-27 12:37:58 -08:00
Joe Groff 88c9483343 io.files: use initialize to set resource-path
If a resource path is already set in the image, don't change it. Should make #364 work a bit more as expected, and let us set the resource path for deployed Mac OS X bundles.
2011-11-27 12:37:58 -08:00
Joe Groff 5a3537b90a io.files: add file-reader, file-writer mixins
This lets us do some trickery so that the stream-element-type propagates from <file-reader>/<file-writer>. For #376.
2011-11-09 14:43:39 -08:00
Joe Groff 186bf65a00 constants for special object hardcoded literals 2011-11-02 12:54:50 -07:00
Doug Coleman 1882e3de3e Use dip instead of swap swap for making file streams 2011-10-26 11:48:26 -07:00
Slava Pestov 1c10196c43 Rename kernel.private:getenv/setenv to special-object/set-special-object to mirror recent renaming on the VM side 2010-01-13 18:08:18 +13:00
Doug Coleman 6b6e56a179 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04:00
Slava Pestov b4088373b7 Merge branch 'master' of git://factorcode.org/git/factor 2009-05-04 05:16:47 -05:00
Slava Pestov a63ad6a7a5 Remove cruddy string encoding/decoding code from VM 2009-05-02 13:45:38 -05:00
Doug Coleman 471fe2c272 rename lines to stream-lines
rename cnotents to stream-contents
2009-05-01 10:41:27 -05:00
Doug Coleman d684e24ee8 file-contents and set-file-contents deal in sequences, not strings 2009-01-29 00:08:40 -06:00
Slava Pestov 50e214c152 io.files split up and general refactoring work in progress 2008-12-14 20:03:00 -06:00
Doug Coleman 7553b816f8 add another slot to file-system-info -- available-space, which is what the user can actually use, not what's free on disk 2008-12-01 21:20:33 -06:00
Doug Coleman 28e6d7d116 add more shared slots fo file-system-info 2008-12-01 14:05:46 -06:00
Slava Pestov a4d9cdfeb3 Refactor all usages of >r/r> in core to use dip, 2dip, 3dip
Non-optimizing compiler now special-cases dip, 2dip, 3dip following a
literal quotation: this allows us to break the dip/slip meta-circle
without explicit calls to >r/r>
2008-11-23 02:44:56 -06:00
Doug Coleman fb8bdfe7e5 rename last-slice1 to slice1-last 2008-11-22 20:00:37 -06:00
Doug Coleman 25d9fd68fc translate directory-type flags to our factor symbols 2008-11-19 16:22:42 -06:00
Doug Coleman 78ab09d8bb move file-systems word to core 2008-11-11 14:04:05 -06:00
Doug Coleman 03d96cc1bd rename name to mount-point 2008-10-23 13:18:00 -05:00
erg bccf9d9698 add device-name and type to file-system-info 2008-10-22 20:28:30 -05:00
erg 278b55ee57 include mount point in file-system-info 2008-10-22 20:04:10 -05:00
Doug Coleman b9e043effe move >file-system-info 2008-10-21 23:43:36 -05:00
Doug Coleman dfef28e715 make a word generic 2008-10-21 01:27:15 -05:00
Doug Coleman 0121d0f678 add file-system-info 2008-10-20 00:30:24 -05:00
Doug Coleman 83638c35da change up the way you read directories 2008-10-19 12:55:48 -05:00
Doug Coleman ab0ed9f988 redo home implementation 2008-10-18 21:24:14 -05:00
Doug Coleman 9459eaab4b all platforms support the file-info structure 2008-10-06 17:28:11 -05:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov 4ce3cc4141 Bug fixes 2008-09-18 22:08:12 -05:00
Slava Pestov 58914da662 I/O fixes 2008-09-18 18:20:26 -05:00
Slava Pestov 562118e158 Better fix for *BSD resource path 2008-09-18 00:20:51 -05:00
Slava Pestov 3a83c1e895 Improve resource-path behavior on NetBSD and OpenBSD 2008-09-17 22:40:51 -05:00
Doug Coleman b1d26e100a use if/when/unless-empty, docs 2008-09-06 17:10:32 -05:00
Doug Coleman 5ed87d4d34 rename left/right-trim to trim-left 2008-09-05 17:12:30 -05:00
Doug Coleman 922e1f4371 new accessors 2008-08-29 17:09:19 -05:00
Slava Pestov bf490cda94 Minor append-path improvement 2008-06-27 20:10:47 -05:00
Slava Pestov 9dd5c9919f Mandatory stack effect annotations 2008-06-08 15:32:55 -05:00