Commit Graph

38705 Commits

Author SHA1 Message Date
Matthew Flatt
36e2155b91 tcp-addresses: fix docs to note that a UDP socket is accepted 2017-06-22 12:25:43 -06:00
Daniel Feltey
87e4bdbec8 Fix segfault on accessing non-present impersonator properties of property-only vector chaperones
Additionally this adds macros that distinguish between the chaperone redirects of prop-only vector
chaperones, function chaperones, and structure chaperones since each of these may store a vector
in the redirects field.
2017-06-22 12:46:58 -05:00
Sam Tobin-Hochstadt
d3787775f1 Disable pkg tests on Travis.
They take approximately 20 minutes, which causes regular timeouts.
Disabling them will make our testing much more predicatable, and
the number of issues found is very small.
2017-06-22 13:33:03 -04:00
Matthew Flatt
f8c7feaf88 fix problem with prefabs, auto fields, and construction via a key
Auto fields were incorrectly recorded as immutable in a structure type
that is first generated from the prefab struct key instead of
`make-struct-type`.

Thanks to Deren Dohoda for the report.
2017-06-22 10:46:49 -06:00
Matthew Flatt
31d82eb9a6 raco setup: add note in docs for --tidy
Related to #1718
2017-06-22 08:39:39 -06:00
Matthew Flatt
30e4e812ba raco test: doc and help tweaks
* Clarify shell context for `++args` note on quotes

 * Add `history` notes

 * Make the help output fit in 80 columns

 * Bump "compiler-lib" version
2017-06-22 08:36:30 -06:00
Conor Finegan
9852afe1b1 raco test: support ++arg <arg> and ++args <args>
Add a way for `raco test` to pass along arguments to the test program.
2017-06-22 08:09:22 -06:00
Matthew Flatt
a7d161cfac raco pkg update: fix --update-deps and cross-scope deps
When `--update-deps` (which is implied by `--all`) was used on
user-scope packages that depend on installation-scope packages, the
installation-scope dependencies were treated as missing, which forced
an update of the user-scope packages. Check both scopes for
dependencies.

Closes #1730
2017-06-22 07:33:08 -06:00
Matthew Flatt
cfa1d7c54c add more information to copy-file error message
The `file/cache` relies on matching the text of a message, and the
text had changed to have less information on Unix, including whether
the problem was with the source or destination file. Add a notion of
error step to rktio and use it to improve the `copy-file` message.
2017-06-21 16:51:02 -06:00
Matthew Flatt
7152cc1ba6 rktio: add <sys/types.h> to reliably get u_char 2017-06-21 16:22:46 -06:00
Matthew Flatt
58dea081c6 fix memory-management bugs in rktio on Windows 2017-06-21 16:19:14 -06:00
Matthew Flatt
a15b16cfd9 repair expand-user-path 2017-06-21 16:19:14 -06:00
Matthew Flatt
6a543f4783 rktio: add iconv 2017-06-21 16:19:14 -06:00
Matthew Flatt
db7c242983 rktio: add syslog 2017-06-21 15:01:45 -06:00
Matthew Flatt
4de2ff4cbd fix make-file-or-directory-link 2017-06-21 05:23:53 -06:00
Matthew Flatt
69a208eb21 rktio: add Windows path conversion functions 2017-06-21 05:23:53 -06:00
Matthew Flatt
898b9ffe10 rktio: add ShellExecute 2017-06-21 05:23:53 -06:00
Matthew Flatt
d70cb9aec0 use "errno" in error messages only for Posix errors
Use "win_err" for Windows errors, and so on. Otherwise, the error
number can be misleading, especially if it's a rktio-level error.
2017-06-21 05:23:53 -06:00
Matthew Flatt
c3da23209b rktio: replace Windows invalid-decoding hack
Report a proper error when path decoding fails, instead of
synthesizing a path hat shouldn't exist. The rktio conversion
made it much easier to report the error at the Racket level
like other filesystem errors.
2017-06-21 05:23:53 -06:00
Matthew Flatt
83cb1a0d00 repair and tests for Windows path handling
In the process of extracting minimal Windows path encoding for rktio,
I noticed a decoding issue with a path that ends with an unpaired
high-surrogate value. Add a suitable tests and fix the old decoder
(although it will probably go away).
2017-06-21 05:23:53 -06:00
Matthew Flatt
d4742a0618 fix bytes-convert-end
The `bytes-convert-end` function didn't set up a proper decoding.
Make sure that it at least does nothing for encodings where
there's nothing to do.
2017-06-21 05:23:53 -06:00
Ben Greenman
a915433b02 doc: add tech link for box in 'immutable?' description 2017-06-21 01:47:01 -04:00
Matthew Flatt
d90976f865 rktio: repair to listen failure handling 2017-06-20 12:33:09 -06:00
Matthew Flatt
8094ef7a02 clarify free docs: don't use with malloc modes other than 'raw
Closes #1708
2017-06-20 11:59:26 -06:00
Matthew Flatt
d8fcbc7b56 remove incorrect claim about identifier-binding
It was true for the old macro system, but it isn't true now.

Closes #1485
2017-06-20 11:59:26 -06:00
Matthew Flatt
a7ab538403 fix timer handling in subprocess
This bug was introduced with the rktio conversion.
2017-06-20 11:57:43 -06:00
Matthew Flatt
a5b28c453a rktio: fix init of accepted socket 2017-06-20 09:06:06 -06:00
Matthew Flatt
20f1f146c7 raco exe: fix incorrect shortcut in submodule checking
Closes #1712
2017-06-20 08:28:54 -06:00
Matthew Flatt
51bf69e356 switch for/list back to a loop plus reverse
Closes #1721, which points out that the `for/list` expansion
introduced in commit 5e94a906cd interacts badly with a body
that captures a continuation plus Racket's current implemenation
of continuations.

When Racket one day gets a better implementation of continuations,
this change could be considered again, but the general question is
whether programs can detect or be affected by the size of the
continuation (when the programs don't directly control the
continuation creation --- otherwise continuation marks obviously
expose the size).
2017-06-20 08:28:53 -06:00
Matthew Flatt
23d2a4c58f restore scheme_fd exports
Provide a compatibility layer to bridge the old (not completely
documented) `scheme_fd` interface and rktio. The old interface is
used by the Gtk implementation of `racket/gui`, for example.
2017-06-19 18:30:21 -06:00
Matthew Flatt
9279b96d9e fix connection-failure error message 2017-06-19 11:06:26 -06:00
Matthew Flatt
9bf68adbb0 fix configure wrt places/futures vs. pthreads enabled state 2017-06-19 10:55:44 -06:00
Matthew Flatt
68f55f5b85 rktio: fix success check for connect 2017-06-19 09:47:10 -06:00
Matthew Flatt
54f16758a5 bump version number to reflect rktio refactoring 2017-06-19 06:45:54 -06:00
Matthew Flatt
19ee6d2a0c librktio: fix 32-bit Windows projects 2017-06-19 06:45:19 -06:00
Matthew Flatt
2e4518d08e rktio: makefile repair for --enable-racket= builds 2017-06-19 06:45:19 -06:00
Matthew Flatt
f741208b77 rktio: another Windows pipe repair 2017-06-19 06:45:19 -06:00
Matthew Flatt
cdf22f7cdd rktio: fix incorrect uses of errno
Using `errno` is not right for Winsock.
2017-06-19 06:45:19 -06:00
Matthew Flatt
8449470db4 rktio: restore early SIGCHLD blocking to support Linux
Process handling relies on SIGCHLD being blocked, but signals are
blocked per-thread in Linux, so SIGCHLD needs to be blocked before new
threads are created.
2017-06-19 06:45:19 -06:00
Matthew Flatt
8d857245a4 rktio: fix normalization of envvar names on Windows 2017-06-19 06:45:19 -06:00
Matthew Flatt
4250d51f08 rktio: more text-mode repairs 2017-06-19 06:45:18 -06:00
Matthew Flatt
b96fc45133 rktio: make append mode imply can-exist on Windows 2017-06-19 06:45:18 -06:00
Matthew Flatt
a13bfd25d0 rktio: reset non-blocking on sockets after dup
On Linux, is appears that duping a socket doesn't give the
new one the same non-blocking option as the original.
2017-06-19 06:45:18 -06:00
Matthew Flatt
c1416d07d6 rktio: fix Unix file copy to copy permissions 2017-06-19 06:45:18 -06:00
Matthew Flatt
60e85fcaf3 rktio: document 'replace and 'replace/truncate changes 2017-06-19 06:45:18 -06:00
Matthew Flatt
c0275b37d5 rktio: fix text mode (for Windows) 2017-06-19 06:45:18 -06:00
Matthew Flatt
20e23902ba rktio: simplify Windoes 98 pipe writer
This code is unlikely to get used, but make sure it runs just
in case Racket otherwise works on Windows 95/98.
2017-06-19 06:45:18 -06:00
Matthew Flatt
dacdf64f59 rktio: fix eventmask handling (for Windows) 2017-06-19 06:45:18 -06:00
Matthew Flatt
36ca1361d9 rktio: normalize 'replace and 'truncate/replace behavior
For `open-output-file`:

Move 'replace mode handling out of rktio and into the client.
Formerly, on Windows, 'replace mode was just 'truncate with a fallback
for permission problems, so this change makes it delete an existing
file and replace it, which is more consistent with how 'replace has
always worked on Unix.

In 'truncate/replace mode, if a truncating open fails due to a
permission error and the file exists, then try again as a 'replace.
That's how it worked on Windows before, and now it's how Unix works.
2017-06-19 06:45:18 -06:00
Matthew Flatt
5d68ec297a rktio: repair for Windows fs-change
Also, add stress mode to rktio demo.
2017-06-19 06:45:18 -06:00