Commit Graph

11664 Commits (655797ff34f99533cd1abfbbf096e6e466c9615c)

Author SHA1 Message Date
John Benediktsson 96e337f937 alien.libraries.finder.linux: make "m" find-library work. 2014-06-08 13:30:54 -07:00
John Benediktsson 04a04dacca alien.libraries.finder.linux: sigh. 2014-06-08 13:25:51 -07:00
John Benediktsson 7bfd267d02 alien.libraries.finder: whoops. 2014-06-08 13:23:43 -07:00
John Benediktsson b915520311 cpu.architecture: fix using from bad conflict merge. 2014-06-08 11:48:31 -07:00
Björn Lindqvist 280620c55f Docs: docs for compiler-related words 2014-06-08 11:48:31 -07:00
Björn Lindqvist 160df8b3f1 Docs: for compiler.cfg.* vocabs 2014-06-08 11:48:31 -07:00
Björn Lindqvist 9c901b9c0e Docs: for compiler, vm and combinators 2014-06-08 11:48:30 -07:00
Björn Lindqvist 4f91e9efbb Docs: more docs for stack-checker.* words 2014-06-08 11:48:30 -07:00
Björn Lindqvist 2d7f344109 Docs: more docs for compiler.cfg.* words 2014-06-08 11:48:30 -07:00
Björn Lindqvist 3d7b0dbf0a Docs: for compiler.cfg.regsters 2014-06-08 11:48:30 -07:00
Björn Lindqvist 395a490b90 Docs: documentation for stack-checker.* and compiler.* vocabs 2014-06-08 11:48:30 -07:00
Björn Lindqvist 93a609db38 Docs: for cpu.architecture words 2014-06-08 11:48:30 -07:00
Björn Lindqvist cf8de7cc1a Docs: for cpu.x86 2014-06-08 11:48:30 -07:00
Björn Lindqvist fa097c7a56 Docs: for compiler.cfg and cpu.architecture words
Conflicts:
	basis/cpu/architecture/architecture-docs.factor
2014-06-08 11:48:30 -07:00
Björn Lindqvist c76a994f27 Docs: new stub documentation for vocabs in compiler.cfg 2014-06-08 11:48:29 -07:00
John Benediktsson 490bb44a94 alien.libraries.finder.linux: some fixes to allow "LLVM-3.4" to find "LLVM-3.4.1". 2014-06-08 11:48:29 -07:00
Doug Coleman 1b29731927 opengl.capabilities: Try to throw linux Radeon users a bone for getting around having two libGL.so installed.
See http://ubuntuforums.org/showthread.php?t=2228534&p=13044229#post13044229
(Does anyone know the best fix for this!?)
2014-06-07 23:06:25 -07:00
Doug Coleman d614084550 opengl.capabilities: Apply @jonenst's suggestions for gl-version failures with mesa opengl. 2014-06-07 21:48:20 -07:00
Doug Coleman d10443186c alien.libraries.finder: Make find-library return the string passed in instead of f if the library is not found. We want vocabularies to load no matter what instead of throwing a missing library error. Also, print dlerror in the error message and take away the redundant line about possible missing libraries. Fixes #986. 2014-06-07 20:58:14 -07:00
John Benediktsson 65c17348f2 gtk.ffi: fixed. 2014-06-07 13:45:20 -07:00
Björn Lindqvist a6b3f50e2c alien.libraries.finder: using find-library for some often missing libs 2014-06-07 11:48:05 -07:00
John Benediktsson 0c3580844d kernel: remove ?execute, not used much, and a little bit confusing. 2014-06-07 09:56:47 -07:00
Björn Lindqvist c3f9c0a9a3 compiler.cfg.intrinsics.simd: the ulonglong case is correct, it just shouldn't convert the value to a fixnum 2014-06-07 17:00:52 +02:00
Björn Lindqvist 644dac1fc0 compiler.cfg.intrinsics.simd: remove a case in sign-bit-mask that is probably unused 2014-06-07 14:39:19 +02:00
Björn Lindqvist 4f49edaa66 VM: tests that rely on the integer values of the vm_error_type needs to be updated 2014-06-07 12:13:59 +02:00
Björn Lindqvist a9a52d9174 VM: bignum_to_fixnum_strict and an accompanying vm error in case the conversion fails 2014-06-07 12:13:59 +02:00
John Benediktsson 3ec5c7074d help.lint.checks: better error message for non-unique $see-also. 2014-06-06 14:46:46 -07:00
Doug Coleman 018d12b29b math.bits: Clean up the docs some more. 2014-06-06 14:45:46 -07:00
John Benediktsson c765f85851 help.lint.checks: maybe clearer error message. 2014-06-06 14:40:01 -07:00
Doug Coleman 6b9c7c6772 math.bits: Clarify docs. Don't support negative numbers for make-bits. Fixes #893. 2014-06-06 14:25:21 -07:00
John Benediktsson 9b91d78dc4 openssl: less usings. 2014-06-06 14:18:24 -07:00
Björn Lindqvist 981ea313a0 openssl: define a startup-hook so that openssl initializes automatically 2014-06-06 14:12:09 -07:00
John Benediktsson 0554e8c3fa tools.deprecation: make deprecation warnings not fatal (so they don't clutter the UI forever). 2014-06-06 14:10:32 -07:00
John Benediktsson a992963f44 help.lint: help-lint should not be a MAIN: word. 2014-06-06 10:36:05 -07:00
John Benediktsson df50f9ad8c tools.coverage: add docs for test-coverage-recursively. 2014-06-06 10:22:37 -07:00
Doug Coleman ffed1387ab concurrency: Rename wait-timeout to timed-out-error for clarity. Add the timer that timed out to the error tuple. 2014-06-06 10:10:09 -07:00
John Benediktsson ee9b803252 tools.ps.macosx: fix for recent change to system-info.macosx. 2014-06-05 21:01:57 -07:00
John Benediktsson c696d51edb editors: adding some summary.txt. 2014-06-05 21:01:57 -07:00
Doug Coleman 40a79766af alien.libraries: Change <library> to be just a constructor. Replace with make-library and try-make-library so that we throw better errors. 2014-06-05 14:28:37 -07:00
John Benediktsson 96884eab2a math.ratios: faster abs and neg? on ratios. 2014-06-05 10:53:02 -07:00
John Benediktsson 05c35ebda3 kernel: change errors to be in kernel.private. 2014-06-04 14:33:02 -07:00
Björn Lindqvist 6627a3327b kernel: symbolic constants for the various kernel errors 2014-06-04 23:16:40 +02:00
John Benediktsson 6bf3470e62 listener: extract a loaded-vocab? word. 2014-06-04 09:52:51 -07:00
John Benediktsson c04db38570 debugger: switch to using dispatch. 2014-06-04 08:41:41 -07:00
John Benediktsson e351d63bbe debugger: change vm-errors to use nth instead of at. 2014-06-04 08:35:31 -07:00
John Benediktsson 82486a5f51 prettyprint.backend: fix pprint for new escape codes. 2014-06-04 06:55:34 -07:00
John Benediktsson 27c86672eb tools.coverage: change test-coverage to not test recursively. 2014-06-03 18:11:26 -07:00
John Benediktsson 256b135aa9 basis: use <vocab-link> in a couple places. 2014-06-03 10:14:03 -07:00
John Benediktsson bdb2d476c1 vocabs.hierarchy: a little bit cleaner. 2014-06-03 09:45:22 -07:00
John Benediktsson 7190ea5dc8 vocabs.hierarchy: simplify vocab-subdirs. 2014-06-03 09:05:03 -07:00
John Benediktsson ece22caa43 hints: specialize le> and be> for byte-array. 2014-06-02 17:10:16 -07:00
John Benediktsson 285c0c64b9 alien.endian: use "c:" convention. 2014-06-02 17:07:32 -07:00
John Benediktsson 48c6bba132 io.binary.fast: adding fast alien version of >le and >be. 2014-06-02 16:30:12 -07:00
John Benediktsson 714d986326 system-info.macosx: use int-arrays. 2014-06-02 15:57:15 -07:00
John Benediktsson 3d5dda504f system-info.macosx: simplify gestalt. 2014-06-02 15:11:09 -07:00
John Benediktsson 7aee629845 system-info.macosx: adding OSX 10.10 code name "Yosemite" 2014-06-02 14:49:55 -07:00
Jon Harper 278fe4830f calendar.format: allow space or tabs in rfc3339 2014-06-01 16:47:04 +02:00
John Benediktsson cea47b896d more doc types. 2014-05-26 07:51:19 -07:00
John Benediktsson ddea3286d9 basis: fix some doc usings. 2014-05-24 06:59:54 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 74ede6e768 circular: fix formatting on the last line. 2014-05-23 14:32:04 -07:00
John Benediktsson dff051696e search-deques: simplify pop-front* and pop-back*. 2014-05-23 13:55:46 -07:00
John Benediktsson 1f607f0573 use ``tuple-slots`` instead of ``tuple>array rest``. 2014-05-23 13:27:59 -07:00
John Benediktsson cc8ba65558 serialize: some cleanup. 2014-05-23 13:27:22 -07:00
John Benediktsson 848420a377 core-foundation.time: change epoch to constant. 2014-05-23 13:26:49 -07:00
John Benediktsson 3a3f28a91b simple-tokenizer: cleanup using list. 2014-05-23 13:26:29 -07:00
John Benediktsson feb4dcae9a heaps: cleanup some code, faster heap-compare. 2014-05-21 08:56:30 -07:00
John Benediktsson 380251308e formatting: faster strftime and make parse-strftime match parse-printf. 2014-05-20 16:11:32 -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 8293425783 io.encodings.ascii: moving to core. 2014-05-20 11:47:38 -07:00
John Benediktsson 8afe2dfe37 lexer: change skip back to public interface. 2014-05-20 09:42:41 -07:00
John Benediktsson 49b040c0b0 html.templates.fhtml: fix using. 2014-05-20 09:31:26 -07:00
John Benediktsson b244b3f731 unicode.collation: minor doc fix. 2014-05-20 09:13:36 -07:00
John Benediktsson 529ade12df multiline: lexer-eof? is just still-parsing?. 2014-05-19 21:38:54 -07:00
John Benediktsson 786793e145 multiline: pass the lexer around instead of using namespaces all the time. 2014-05-19 21:26:59 -07:00
John Benediktsson afdec2de61 multiline: fix lexer eof detection. 2014-05-19 21:10:31 -07:00
John Benediktsson 8645b1db49 unicode.breaks: change to using constants instead of globals. 2014-05-19 20:59:42 -07:00
John Benediktsson 8089bbaeab regexp.parser: fix for recent unicode.scripts change. 2014-05-19 20:51:01 -07:00
John Benediktsson a9d1e320d2 unicode.script: change to use a constant instead of a global. 2014-05-19 14:29:16 -07:00
John Benediktsson 72ff285bd8 help: use effect>string instead of present. 2014-05-19 10:18:48 -07:00
John Benediktsson ca061f79ff help.lint.checks: temporary fix for $quotation changes. 2014-05-19 10:04:39 -07:00
John Benediktsson af48be41c8 Revert "regexp.compiler: slightly faster with t/f check."
This reverts commit 9dcaa5c7e690bc38e468f355cbbafd3c5b299f90.
2014-05-19 10:04:16 -07:00
John Benediktsson 376121eeed interval-sets: can just check one side or the other. 2014-05-19 09:40:51 -07:00
John Benediktsson 5a5c1b857f interval-sets: a little bit faster by not using slices. 2014-05-19 09:28:01 -07:00
John Benediktsson 97e658fc17 unicode.data: using interval-sets. 2014-05-18 22:50:03 -07:00
John Benediktsson 00fbe7dfe9 interval-sets: faster find-interval. 2014-05-18 22:49:39 -07:00
John Benediktsson 18a36c334a unicode: some performance improvements to category checking. 2014-05-18 20:47:36 -07:00
John Benediktsson 647b8ffb46 regexp.compiler: slightly faster with t/f check. 2014-05-18 20:42:02 -07:00
John Benediktsson 889eb9b2ef interval-maps: some inline. 2014-05-18 20:41:51 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 8e4ce647d3 regexp: adding re-replace-with. 2014-05-18 13:48:22 -07:00
John Benediktsson 25ff85331c compile.codegen.relocation: make doc example work on 32-bit. 2014-05-11 08:22:01 -07:00
Björn Lindqvist e2eebdec4d Docs: mostly fixes for doc errors found by help lint 2014-05-10 17:13:49 -07:00
Björn Lindqvist 5bccede3b6 Docs: docs for compiler.* and cpu.* words 2014-05-10 17:13:49 -07:00
Björn Lindqvist 4f9f2b862f Docs: docs for compiler-related vocabs 2014-05-10 17:13:49 -07:00
Björn Lindqvist ea48d13731 Docs: for compiler.cfg and compiler.codegen 2014-05-10 17:13:49 -07:00
Björn Lindqvist 4cd49e56b2 Docs: for node and #call tuples 2014-05-10 17:13:49 -07:00
Björn Lindqvist 6626cd24a1 Docs: docs for cpu.* vocabs 2014-05-10 17:13:48 -07:00
Björn Lindqvist 0bb3e2397b Docs: more compiler documentation 2014-05-10 17:13:48 -07:00
Björn Lindqvist d074f1a9c9 Docs: for cpu.x86.* words 2014-05-10 17:13:48 -07:00
Björn Lindqvist 6a8336047d Docs: initial docs for the compiler.cfg.* vocabs 2014-05-10 17:13:48 -07:00
Björn Lindqvist b11e912b44 Docs: initial docs for compiler.tree.propagation.* vocabs 2014-05-10 17:13:48 -07:00
Björn Lindqvist e2fe5ccfe8 Docs: stub docs for cpu.architecture 2014-05-10 17:13:48 -07:00
Björn Lindqvist 669bb0a77e Docs: stub docs for some compiler-related words 2014-05-10 17:13:48 -07:00
Doug Coleman 8a084926d1 deploy-tests: Bump the sizes to get a Linux32 build. 2014-05-07 13:28:31 -07:00
John Benediktsson 0f52c3e486 ui.tools.listener.history: cleanup and minor bugfix. 2014-04-30 19:06:36 -07:00
John Benediktsson a0a76469b6 bit-sets: some cleanup, small performance improvement to members. 2014-04-29 22:13:37 -07:00
John Benediktsson 594354e145 math.bitwise: simplify byte-array-bit-count. 2014-04-29 22:11:42 -07:00
John Benediktsson 3e7e47b9c0 base64: inline the { 3 2 1 0 } [ -6 * ]. 2014-04-29 15:59:48 -07:00
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