Commit Graph

1453 Commits (fix-linux)

Author SHA1 Message Date
John Benediktsson b54da0f22b io.backend.unix: fix handle-length on stdin. 2018-03-13 13:53:26 -07:00
John Benediktsson b2de82042c io.encodings.8-bit: adding KZ-1048 and KOI8-U. 2018-03-02 16:09:21 -08:00
John Benediktsson 6d2abd0122 io.encodings.8-bit: adding cp424. 2018-03-01 10:48:08 -08:00
John Benediktsson 6d1bb9e1ba io.encodings.8-bit: reimplement M\ 8-bit encode-string. 2018-02-28 10:35:33 -08:00
John Benediktsson f43f88e7f0 io.encodings.latin1: re-implement M\ latin1 encode-string. 2018-02-28 10:35:23 -08:00
John Benediktsson 1b3a07ca44 io.encodings.8-bit: save 37% memory space by "compressing" codetable.
Instead of a biassoc with from/to hashtables, we make a from array that
is 256 length, using indexing instead of hashing since we know 8-bit
characters are [0,255] and the to hashtable.
2018-02-28 10:22:13 -08:00
John Benediktsson 557a6cca69 io.encodings.8-bit: remove latin1 help for now. 2018-02-28 09:56:04 -08:00
John Benediktsson 0ab7ed6979 io.encodings: use new latin1 instead of 8-bit encoding from file. 2018-02-28 08:56:01 -08:00
John Benediktsson 093e6411be io.encodings.latin1: adding a memory efficient latin1 encoding. 2018-02-28 08:56:01 -08:00
John Benediktsson 7dd32181dd io.encodings.euc: make encoding table read-only. 2018-02-28 08:56:01 -08:00
John Benediktsson ce1de81ec6 cleanup a few resource paths. 2018-02-26 17:38:07 -08:00
John Benediktsson ca2612b906 io.encodings.8-bit: simplify by not implementing encode-string. 2018-02-26 15:19:53 -08:00
John Benediktsson be5c7055ef io.encodings.japanese: not used. 2018-02-26 15:02:44 -08:00
John Benediktsson b74e8d3c22 Revert "io.encodings.8-bit: adding CP874."
This reverts commit 9cccb4de95.
2018-02-26 12:30:11 -08:00
John Benediktsson 9cccb4de95 io.encodings.8-bit: adding CP874. 2018-02-26 11:45:11 -08:00
John Benediktsson 85b69b5b49 io.encodings.8-bit: more encodings, and reduce hierarchy. 2018-02-26 10:21:35 -08:00
John Benediktsson f1030159af io.encodings.iana: need IN: form for tests. 2018-02-25 20:25:37 -08:00
John Benediktsson 607de53ad3 more test IN: cleanup. 2018-02-25 15:44:16 -08:00
John Benediktsson 03a18c060b io.streams.string: implement stream-tell for sbufs. 2018-02-21 15:05:20 -08:00
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
John Benediktsson 59bc3a1ca0 io.directories.search: use fry instead of curry in find-file. 2018-02-14 16:21:50 -08:00
John Benediktsson a92d67fcb2 fix more typos in docs. 2018-02-12 16:43:08 -08:00
Doug Coleman c8d63c56a9 factor: Clean up wrong form of specialized-arrays in using lists. 2018-02-10 15:25:36 -06:00
Alexander Iljin 8a4dba4cd9 Fix the existing IN: suffixes for the test vocabs
Change some existing vocab name suffixes from "-tests" or ".test" to
".tests". Add no new suffixes.
2018-01-24 16:03:48 -08:00
John Benediktsson 0eb4fc2951 io.launcher.unix: cleanup find-process. 2018-01-20 13:33:16 -08:00
Alexander Iljin 5d5b794100 io.servers-docs: fix link formatting 2018-01-16 13:40:14 -08:00
Alexander Iljin 74de0033b2 io.directories-docs: remove an extra character 2018-01-16 13:40:14 -08:00
Doug Coleman f6f15b9c82 io.socketes.secure: Use TLS 1.0 or TLS 1.2 certs.
Fixes #1887.
2017-12-17 20:02:29 -06:00
Doug Coleman 7d8fe2b54c io.sockets.secure.unix: Stop these tests from hanging on errors.
Specifically, the server writes its port to a mailbox. On Mac 10.11.6, the last macOS for my old computers, TLS1.0 is the last supported SSL protocol, and there is a yet-undebugged error. This patch at least exposes the error for debugging.
2017-12-17 18:49:52 -06:00
Alexander Iljin 504c9959a1 Update some copyright headers to follow the current convention
Had to look through the history to find years for some headers. Added
authors to some files as well.
2017-09-11 15:43:03 -07:00
Alexander Iljin 5cc7023f16 io.crlf-docs: mark related words 2017-08-25 11:57:41 -07:00
Doug Coleman b92a3e109d io: Add with-ensure-directory and ?file-info. 2017-08-03 18:42:32 -05:00
Björn Lindqvist 9103d1546f basis/: more docs 2017-07-09 15:08:49 +02:00
Björn Lindqvist 8675cb2c25 basis/,core/,extra/: more tags 2017-07-08 18:31:39 +02:00
Björn Lindqvist e9764621c9 io.standard-paths.unix: ofc /bin/ps should be included... 2017-07-03 00:56:55 +02:00
Björn Lindqvist 6f1f4e5968 io.standard-paths.unix: ifconfig isnt installed everywhere, but ps is 2017-07-02 17:17:46 +02:00
Björn Lindqvist 2a5f5ca6b9 openssl.*,io.sockets.*: support for openssl 1.1
In the new version, a lot of c function names have changed. So a new
global ssl-new-api? is needed to know if the new or old names should be
used.
2017-07-01 13:41:22 +02:00
Björn Lindqvist 0d8338ceb8 io.sockets.secure.openssl,openssl.libssl: ENUM: over syntax
The enum does the same thing as the custom syntax did and is a little
easier to understand.
2017-06-24 16:46:00 +02:00
Björn Lindqvist f2a8a79a1a basis/,extra/: removing some unnecessary EXCLUDE declarations 2017-06-24 16:38:34 +02:00
Alexander Iljin acf14a7bd1 io.directories.windows: add size slot to windows-directory-entry tuple 2017-06-05 16:47:01 -07:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Doug Coleman 7c7bb93c55 factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
2017-06-01 13:58:58 -05:00
Doug Coleman 5aa89e6251 factor: Add newlines to every line. 2017-06-01 13:46:32 -05:00
Doug Coleman df189eada5 io.files.info.windows: Fix using list.
We are using fry twice and it shows up in bootstrap.
2017-05-31 18:40:08 -05:00
John Benediktsson cdf0dbd038 io.standard-paths.unix: use $USER's configured shell.
Hope that '-l -c "echo $PATH"' works.
2017-03-21 16:05:23 -07:00
John Benediktsson d60970c0a5 io.standard-paths.windows: fix find-in-program-files.
Remove stale bfs? flag.
2017-03-05 19:17:14 -08:00
John Benediktsson 2ede9f09be io.standard-paths.windows: fix to use find-file-in-directories. 2017-03-05 15:58:59 -08:00
John Benediktsson 495d27a502 io.directories.search: fix linux tests.
Linux doesn't return alphabetic ordering like Windows and macOS, so
we just assert the paths are iterated in the correct order by depth.
2017-03-05 15:56:28 -08:00
John Benediktsson 368e1c8e47 io.directories.search: simplify interface.
Now we use a ``traversal-method`` variable that controls whether
we do a depth-first or breadth-first search rather than a stack
argument or a fixed default specified in each word.

This also fixes an issue where breadth-first traversal would
iterate across children in reverse order, now it does the normal
ordering which is typically alphabetical.
2017-03-05 09:16:00 -08:00
John Benediktsson 3a6eefcc8e using ignore-errors instead of [ drop ] recover. 2017-02-09 15:50:33 -08:00
John Benediktsson 75ebd0eacd io.servers: using ?adjoin and ?delete in add/remove-running-server.
Also fixed a small bug in add-running-server where the error was
mistakenly constructed with running-servers instead of threaded-server.
2017-02-07 13:31:57 -08:00
John Benediktsson 210209ead2 io.files.temp.macosx: use find instead of map-find. 2017-02-07 10:57:37 -08:00
John Benediktsson f342fd04d9 simple-flat-file: rename flat-file>biassoc to load-codetable-file. 2017-02-03 11:47:28 -08:00
Björn Lindqvist 7874f5a547 io.servers: refactored words for adding & removing servers 2017-01-07 15:26:19 +01:00
Benjamin Pollack 7184771c31 io.directories: improve file moving words
move-file previously had inconsistent behavior on Windows and unixes.
This unifies the behavior to the common case (just get 'er done), while
also introducing an obviously named word, move-file-atomically, to
handle the case where you need an atomic file primitive.

Fixes #1772
2017-01-06 15:43:34 -08:00
John Benediktsson 48c69cb8ea use reject instead of [ ... not ] filter. 2017-01-05 13:29:58 -08:00
Björn Lindqvist a9ac763912 alien.libraries: word>dlsym was a stupid idea that didn't work
The def>> attribute is stripped when deploying. So return dlsym? and use
that.
2016-11-30 16:36:24 +01:00
Björn Lindqvist 2ba659dcb1 io.sockets.secure,alien.libraries: new word word>dlsym to replace the dlsym? word 2016-11-30 11:51:54 +01:00
John Benediktsson 7465bd0ed6 io.launcher: wait for new processes faster.
This starts at 5 milliseconds, then backs off 5 milliseconds at a time,
until 100 milliseconds. In case the processes are short-lived, they
will be detected sooner, and long-running processes will still be checked
at intervals of 100 millseconds like before.
2016-11-27 07:35:26 -08:00
Björn Lindqvist 0e7fd0340d io.sockets.secure.openssl.tests: fix so you dont get an error when test times out 2016-11-19 23:40:12 +01:00
Björn Lindqvist c6361436bf io.sockets.secure.openssl: set connected to t after do-ssl-accept
This should prevent the SSL_shutdown:shutdown while in init error we've
been seeing
2016-11-19 19:05:53 +01:00
Björn Lindqvist 1b7b7e8260 io.sockets.secure.openssl: second |dispose seem to be redundant 2016-11-19 18:04:17 +01:00
Björn Lindqvist a1c503c6e4 io.files.info.unix.linux: handles the possible permission denied error in M: linux file-systems 2016-11-19 02:07:49 +01:00
Björn Lindqvist 00d4572e6c basis,extra: refactorings to use the ignore-error and ignore-error/f words 2016-11-18 23:41:36 +01:00
John Benediktsson 3641defa66 io.files.temp.unix: make default-cache-directory absolute-path. 2016-11-10 09:08:29 -08:00
John Benediktsson edfcc879fe io.files.temp.unix: fix cache to be ~/.cache/factor. 2016-11-09 16:28:49 -08:00
John Benediktsson 1abe794205 io.buffers: refactor buffer-read-until to use buffer-find. 2016-11-09 10:43:47 -08:00
John Benediktsson 4bebe98fa1 io.buffers: adding another test of buffer-read-until. 2016-11-09 10:11:51 -08:00
John Benediktsson 816d1e31d5 io.pipes: allow "|" separated strings in run-pipeline. 2016-11-09 09:56:34 -08:00
John Benediktsson 3cc16ccd9e io.files.temp.unix: allowing TMPDIR to override /tmp. 2016-11-08 21:37:51 -08:00
John Benediktsson deac792fc7 io.files.temp.unix: changing cache directory to use XDG spec.
Typically this means ~/.cache/factor.
2016-11-08 21:24:34 -08:00
John Benediktsson fd13a94150 io.launcher: fix timeouts for process streams. 2016-11-08 20:57:47 -08:00
Björn Lindqvist 93661e9ea6 io.launcher.unix: better to use current-directory variable 2016-10-31 07:27:14 +01:00
Alexander Iljin 560caf8e4d io.directories.search-docs: fix indentation 2016-10-30 14:18:53 -07:00
Alexander Iljin 924880cb50 Add cp437 8-bit encoding, AKA IBM437 2016-10-27 08:44:15 -07:00
John Benediktsson 2628dbc5c9 io.directories.search.windows: merging with io.standard-paths.windows. 2016-10-06 14:57:40 -07:00
John Benediktsson 303367c57a io.launcher.windows: need to USE: io.launcher.private. 2016-10-06 13:50:04 -07:00
Alexander Iljin 65a2281188 io.launcher-docs: add notes on the hidden slot usage 2016-09-20 22:51:31 +03:00
Alexander Iljin c822395597 io.launcher: hide processes created by (process-stream) 2016-09-20 06:59:43 -07:00
Alexander Iljin 85710ced87 io.launcher: add the hidden slot to the process tuple
Implemented on Windows only.
2016-09-20 06:59:43 -07:00
Björn Lindqvist b0495b5fe3 io.backend.unix.tests: missed this none reference 2016-09-16 19:38:02 +02:00
Björn Lindqvist 20711a0fd3 Adding escaping to CHAR: " -> CHAR: \"
It is not necessary to escape the " character, but it doesn't hurt and
is necessary for syntax-highlighting (FUEL) to work correctly.
2016-09-04 06:40:43 +02:00
Björn Lindqvist 2f12413595 io.sockets.windows: WSASocket-flags not needed 2016-08-04 23:55:56 +02:00
John Benediktsson b864d49e8c io.sockets: adding docs and tests for port-protocol. 2016-08-01 10:22:16 -07:00
John Benediktsson ab66a73744 io.sockets: adding port-protocol to match protocol-port. 2016-07-30 11:12:40 -07:00
Björn Lindqvist ca2aef8e67 io.monitors.recursive: with-qualified-directory-files works here 2016-07-30 19:03:23 +02:00
Björn Lindqvist ba4bb45d4d io.directories.*: move of the qualified directory listing words to io.directories 2016-07-30 19:03:22 +02:00
Alexander Iljin ebfce1deea io.files.info-docs: fix links to file-info-tuple parameters 2016-07-30 09:25:30 -07:00
Alexander Iljin 2fd5654473 Add EOL at EOF for all authors.txt files for consistency
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
John Benediktsson 6b12e2e3bc use ?delete-file instead of [ delete-file ] ignore-errors. 2016-07-10 20:28:46 -07:00
John Benediktsson e146309a0c io.encodings.binary: move to core. 2016-06-30 12:30:58 -07:00
Alexander Iljin ef29e0947f io.directories.windows: remove synchronous copy-file implementation 2016-06-29 14:17:57 -07:00
Alexander Iljin b43c7b4fd7 io.files.info.windows: suppress ERROR_FILE_NOT_FOUND in volume>paths 2016-06-22 11:27:26 -07:00
Alexander Iljin b35294eade io.sockets.secure-docs: update and add some documentation 2016-06-22 11:27:26 -07:00
Alexander Iljin d243e00f54 io.files.windows: use open-file to implement maybe-create-file
This fixes error throwing in case of CreateFile failure, and calls
add-completion for the file handle on success.
2016-06-22 11:27:26 -07:00
Alexander Iljin f530692362 io.files.windows: replace open-existing with open-r/w
This fixes error throwing in case of CreateFile failure, and calls
add-completion for the file handle on success.
2016-06-22 11:27:26 -07:00
Alexander Iljin ae1c7b7a54 io.files.windows: use CreateFileW in open-file for consistency 2016-06-22 11:27:26 -07:00
Jon Harper e9454fc310 io.files.info docs, sync link-info and file-info docs 2016-06-22 11:22:43 -07:00
Björn Lindqvist 6a76bf9084 io.directories.unix: normalize-path doesn't need to be called
It is already called by the words copy-file delegates to.
2016-06-15 01:25:53 +02:00