John Benediktsson
568888c277
base64: faster decoding, use an sbuf instead of replicate/filter.
2014-04-29 15:47:15 -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
John Benediktsson
c6f8a84ee4
ui.tools.common: reuse code.
2014-04-28 13:01:18 -07:00
John Benediktsson
1fdc965b34
ui.backend.cocoa.views: clear cache to remove possibly non-retina stuff.
2014-04-28 13:00:20 -07:00
Doug Coleman
9b9bd182ca
aline.libraries.finder.linux: Fix spacing. oops
2014-04-28 01:46:33 -07:00
Doug Coleman
f1f76dead7
alien.libraries.finder: Linux32 ldconfig has (libc6) or (libc6,x32) as the platform strings. Refactor parsing to not use regular expressions and change the matching from exact to requiring the ldconfig line to be a subset of the supported platforms.
2014-04-28 08:43:34 +00:00
Doug Coleman
093a2bbae0
Revert "alien.libraries.finder: Add utiltity word find-first-library to find a shared library from a list of library stem names." Wrong fix.
...
This reverts commit 8cd883be5119683291c2ee6d7ce4fad228b78e26.
2014-04-28 01:25:27 -07:00
Doug Coleman
ce9db9fb84
alien.libraries.finder: Add utiltity word find-first-library to find a shared library from a list of library stem names.
2014-04-28 00:38:39 -07:00
John Benediktsson
63b5886337
sorting.insertion: faster due to fewer nths.
2014-04-27 22:41:37 -07:00
John Benediktsson
00bd0c52e7
sorting.insertion: skip the zero'th element.
2014-04-27 17:13:26 -07:00
John Benediktsson
1d38dce342
Revert "Temporary patch for dlists equality testing"
...
This reverts commit dbc6c37a37423a1672825b667bf5ca4844d5fc88.
2014-04-27 15:24:26 -07:00
John Benediktsson
2bb483bc5c
Revert "Temporary patch for assoc-map on linked-assoc"
...
This reverts commit b54bffd748815ecbc5ffac11a14e59f73a5a3978.
2014-04-27 15:24:26 -07:00
Jon Harper
a9e3d86146
Temporary patch for assoc-map on linked-assoc
...
Until https://github.com/slavapestov/factor/issues/1028 is resolved
2014-04-27 15:24:25 -07:00
Jon Harper
99c853e3c8
Temporary patch for dlists equality testing
...
Until https://github.com/slavapestov/factor/issues/1027 is resolved
2014-04-27 15:24:25 -07:00
John Benediktsson
6bb3eea67f
linked-assocs: adding test for equality.
2014-04-27 15:22:10 -07:00
John Benediktsson
bdbb1d7812
linked-assocs: implement M\ linked-assoc equal?.
2014-04-27 15:20:54 -07:00
John Benediktsson
cb9b04c153
linked-assocs: fix assoc-map on linked-assocs.
2014-04-27 15:03:35 -07:00
Doug Coleman
64bb56665b
ftp.server: Fix bug where serving directory is always f. Need better tests for this vocab.
2014-04-26 14:52:37 -07:00
John Benediktsson
e0087723c3
core-text.fonts: change to "LucidaGrande" to match Postscript name.
2014-04-24 12:10:13 -07:00
John Benediktsson
9d3a654443
namespaces: removing make-assoc in favor of explicit get's.
2014-04-24 09:16:14 -07:00
Doug Coleman
c9585b936b
atom: Add support for github's atom editor.
2014-04-23 23:41:35 -07:00
Doug Coleman
50ca01a4d8
io.sockets.windows: Fix using.
2014-04-23 20:07:32 -07:00
Doug Coleman
ae6b931284
deploy: Up the size.
2014-04-23 00:10:56 -07:00
John Benediktsson
830c72198c
Revert "tools.deploy.test: use temp directory for deploy image."
...
This reverts commit 233b8e1ba611888ff9b86ddba3152c4fd352504d.
2014-04-22 20:44:04 -07:00
John Benediktsson
a7b54e7895
tools.deploy.test: use temp directory for deploy image.
2014-04-22 16:21:25 -07:00
John Benediktsson
857c97647e
tools.deploy.config: some docs for deploy-directory.
2014-04-22 15:55:56 -07:00
John Benediktsson
580bafb857
tools.deploy: adding a configurable deploy-directory.
2014-04-22 14:08:40 -07:00
John Benediktsson
78d0aad87d
http.server.responses: adding <html-content>, use it.
2014-04-22 13:47:25 -07:00
Profpatsch
902e877c12
http.server.responses: Add <text-content>, improve docs.
2014-04-22 13:34:01 -07:00
John Benediktsson
484ae0bca0
checksums.md5: don't inline, use type declarations.
2014-04-22 09:13:02 -07:00
Doug Coleman
eb992066a7
unix.ffi: Oops
2014-04-22 08:27:13 -07:00
Doug Coleman
540e490031
unix.ffi: Arch Linux doesn't seem to have aliases.
2014-04-22 08:25:51 -07:00
John Benediktsson
e3323818cc
io.sockets.secure.openssl: disable tests for now.
2014-04-22 08:16:53 -07:00
John Benediktsson
33cc184614
environment: update docs for with-os-env.
2014-04-22 08:08:32 -07:00
John Benediktsson
3dae660d42
unix.linux.proc: future proof!
2014-04-22 07:50:35 -07:00
John Benediktsson
06912460b4
io.sockets.secure.openssl: use must-fail-with.
2014-04-22 07:41:23 -07:00
John Benediktsson
e7a74e0e61
io.standard-paths.unix: fixing the tests for Ubuntu.
2014-04-22 07:40:57 -07:00
John Benediktsson
15ab7fe82a
environment: adding a combinator to set and unset and os-env.
2014-04-22 07:40:39 -07:00
Doug Coleman
6be25de125
unix.ffi: Use a utility word for getting the aliases back.
2014-04-22 00:29:49 -07:00
Doug Coleman
d1d15f83c4
unix.linux.proc: Fix length of meminfo struct on some kernel versions.
2014-04-22 00:18:20 -07:00
Doug Coleman
876b430ec9
io.standard-paths.unix: Fix ifconfig test.
2014-04-21 23:45:45 -07:00
John Benediktsson
00ea6900db
calendar: clone timestamps in >gmt and >local-time.
2014-04-21 08:17:43 -07:00
John Benediktsson
d1b1eabf1e
calendar: M\ timestamp clone should clone gmt-offset.
2014-04-20 19:34:22 -07:00
John Benediktsson
a3ba2c3b7c
calendar.threads: implement M\ timestamp sleep-until.
2014-04-20 19:32:08 -07:00
John Benediktsson
94e9563a15
calendar.threads: simplify.
2014-04-20 19:22:56 -07:00
John Benediktsson
6f87c2afc7
io.sockets: use must-fail-with for resolve-host errors.
2014-04-20 10:02:04 -07:00
John Benediktsson
24cb41aa13
io.sockets: don't need "0 or" for addrinfo.
2014-04-20 09:30:03 -07:00
Björn Lindqvist
e1206d5ef1
io.sockets: add word addrinfo-error to signal host lookup failures
...
If the getaddrinfo call fails, and you want to handle that failure in
a structured way, then you need a designated error type to know what
went wrong.
2014-04-20 09:29:31 -07:00
Björn Lindqvist
516ffcc311
io.sockets.secure.openssl.tests: more and better SSL_connect tests
...
Better error handling so it should be easier to see why the tests fail
on the build server (#1036 ).
2014-04-18 10:06:46 -07:00
Björn Lindqvist
df3417c5b7
io.sockets.secure.openssl: more docs
2014-04-18 10:06:46 -07:00
Björn Lindqvist
e473ef628d
io.sockets.secure.openssl: big refactoring, all error handling merged into one check-ssl-error word
2014-04-18 10:06:46 -07:00
John Benediktsson
d3935d2ef3
add some libc usings for macosx.
2014-04-16 07:55:37 -07:00
Doug Coleman
3fa95d3370
smtp: Use a config object. Fix docs. Fix unit tests.
2014-04-15 21:59:14 -07:00
Doug Coleman
c0fbf0455d
tools.scaffold: Add word to scaffold a mason rc file.
2014-04-15 19:05:00 -07:00
John Benediktsson
ebc8b769c6
vocabs.files: change vocab-tests example to sort output.
2014-04-15 13:35:59 -07:00
John Benediktsson
8fc9b823e3
help.lint.checks: remove leaks check for now due to bootstrap issues.
2014-04-15 10:48:49 -07:00
Björn Lindqvist
b72fa3ba0a
Docs: fixed doc example errors triggered by help-lint and added with-disposal where applicable
2014-04-14 08:42:10 -07:00
Björn Lindqvist
a48567b8af
Docs: more matrix-related documentation
2014-04-14 08:42:09 -07:00
Björn Lindqvist
8b4af6bc86
Docs: doc and examples for math.matrices
2014-04-14 08:42:09 -07:00
Björn Lindqvist
9b28623b4f
Docs: examples for io.launcher words
2014-04-14 08:42:09 -07:00
Björn Lindqvist
1b620dee5b
Docs: examples for vocab-files and vocab-tests
2014-04-14 08:42:09 -07:00
Björn Lindqvist
2cbea3cb31
Docs: a few more examples for words that were missing them
2014-04-14 08:42:09 -07:00
Björn Lindqvist
a3eba146fd
io.sockets: example for the with-socket function
2014-04-14 08:42:09 -07:00
Björn Lindqvist
b79bd45908
io.sockets: example for resolve-host
2014-04-14 08:42:08 -07:00
Björn Lindqvist
e151972d47
urls.tests: unit tests for url-addr
2014-04-14 08:42:08 -07:00
Björn Lindqvist
d3e5312b44
urls: example for secure url-addr
2014-04-14 08:42:08 -07:00
Björn Lindqvist
792ed03b4d
help.lint.checks: check for disposable leaks and print more details when $values are wrong
2014-04-14 08:37:52 -07:00
Doug Coleman
d123f589f7
io.sockets.secure.openssl: Check error code in unit test.
2014-04-08 12:08:58 -07:00
John Benediktsson
29006e4a86
libc: fix tests using.
2014-04-04 09:29:42 -07:00
John Benediktsson
d031109cc4
libc: test "1 strerror" since zero gives different output on different platforms.
2014-04-04 09:28:39 -07:00
John Benediktsson
5e129a8964
more libc fixes.
2014-04-04 08:03:46 -07:00
John Benediktsson
e50d1375a1
io: need to use libc for OS X?
2014-04-03 21:43:37 -07:00
Doug Coleman
a02e8e3cda
io.sockets.secure.openssl: Fix using list.
2014-04-02 23:11:52 -05:00
Björn Lindqvist
ee19a97869
io.sockets.windows: wrap ioctlsocket and related constants to enable
...
setting sockets in non-blocking mode
2014-04-02 16:50:20 -05:00
Björn Lindqvist
4676ff921a
windows.winsock: fix the definition of SOCKET_ERROR and unit tests that
...
verifies its correctness
2014-04-02 16:50:13 -05:00
Björn Lindqvist
a5397756fe
windows.winsock: use the windows api types instead of int and void*
...
where applicable
2014-04-02 16:50:06 -05:00
Björn Lindqvist
f8387a08ae
Merge:
...
io.sockets.secure.windows: use non-blocking sockets to prevent
SSL_connect from blocking
On Windows, SSL_connect may hang forever if the server doesn't send any
data. To counteract that we temporarily set the socket non-blocking and
then call select in the wait-for-fd method.
Conflicts:
basis/io/sockets/secure/openssl/openssl-tests.factor
2014-04-02 12:16:51 -05:00
Björn Lindqvist
4d8f3e8a78
io.sockets.secure.openssl: do-ssl-connect needs to call wait-for-fd
2014-04-02 12:13:21 -05:00
Björn Lindqvist
58388f7c26
libc: fix vocab definition of platform dependent parts of libc
2014-04-02 12:13:14 -05:00
Björn Lindqvist
a222ac173b
libc.*: add platform files
2014-04-02 12:13:07 -05: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
6421af3401
io.sockets.secure.*: unification of lots of platform-independent code
...
Code that is duplicated in the backends moved to
io.sockets.secure.openssl. The wait-for-fd verb used by do-ssl-accept
doesn't have any equivalent on Windows so that needs to be
implemented.
2014-04-02 12:12:37 -05:00
Björn Lindqvist
57a933e330
libc.*, unix.*: move constants and functions from the unix namespace to libc
...
The E* errno and SIG* constants are defined on Windows too, so they
should be in the libc vocab which is available there. They will be
used for SSL error handling.
2014-04-02 12:12:25 -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
Björn Lindqvist
8c5ceb8b0c
io.files.windows: new generic words drain and refill, like in io.backend.unix
...
The purpose of these words is to abstract out the pushing of the bytes
to the ports so that you can insert the ssl layer in between. Exactly
like how drain and refill are specialized on ssl-handle in
io.sockets.secure.unix.
2014-04-02 12:12:04 -05:00
Björn Lindqvist
6ed3a09b5d
io.sockets.secure: new hook variable ssl-certificate-verification-supported?
...
t if the backend is able to verify certificates, f
otherwise. Currently certificate validation isn't implemented on Windows
2014-04-02 12:11:53 -05:00
John Benediktsson
dcd3938d0d
images.loader: simplify registrations.
2014-03-14 09:17:13 -07:00
John Benediktsson
ab76deaf25
images: minor cleanup.
2014-03-14 08:26:05 -07:00
John Benediktsson
4e206f4181
images.loader: optionally register "non-system" image classes.
2014-03-14 07:32:27 -07:00
Björn Lindqvist
944718c817
images.loader: docs for save-graphic-image
2014-03-14 07:32:26 -07:00
Björn Lindqvist
3a8164cd8a
images.loader: support for saving images on the gtk-image backend
2014-03-14 07:32:26 -07:00
John Benediktsson
d4a56057f0
http.client: add starred versions that do not check response code for success.
2014-03-13 12:26:35 -07:00
John Benediktsson
03b7e67547
fix some help-lint errors.
2014-03-12 20:08:15 -07:00
John Benediktsson
272102e647
http.client: fix duplicate using.
2014-03-12 19:51:50 -07:00
John Benediktsson
ed5bc3b8fa
http.client: few more fixes.
2014-03-12 19:49:58 -07:00
John Benediktsson
cb9c171383
http.client: remove unused word.
2014-03-12 19:39:15 -07:00