Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,28 @@ a POSIX C library.

```toml
[dependencies]
openkal-posix = "0.1.1"
openkal-posix = "0.2.0"
```

## What 0.2 changes (openkal 0.26)

**A start is bounded by the system alone** (clause 7.6). This implementation kept
no bound of its own: both vectors of a start are allocated at their measured
size, and a started program reads the vectors the C library gave it. What
changes is the report of the system's refusal. A start whose arguments and
environment exceed what the system admits is answered `E2BIG` by the `exec`
family, and that is now `kal_err_no_space`, where it was `kal_err_io`. Measured
on Linux x86_64 (glibc) with the specification's suite: 2,000 arguments and
2,000 variables reach the started copy, and an argument of 1 MiB is refused
with `kal_err_no_space`; before the change that observation did not hold.

**Observable units are not claimed, as before** (clause 7.18).
`kal_process_props` does not state `KAL_PROCESS_PROP_JOB_OBSERVE`, and
`kal_process_job_create` answers `kal_err_not_supported`; openkal 0.26 requires
the two to agree, and they did.

The manifest declares `openkal = "^0.26.0"`.

## What 0.1.1 corrects

The manifest declares `openkal = "^0.25.0"`. An implementation written against a
Expand Down
4 changes: 2 additions & 2 deletions mcpp.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
namespace = "mcpplibs"
name = "openkal-posix"
version = "0.1.1"
version = "0.2.0"
description = "An implementation of openkal written above a POSIX C library: the system's own C library beneath, openkal's interfaces above, for the systems that have no implementation of their own."
license = "Apache-2.0"
authors = ["mcpplibs"]
Expand Down Expand Up @@ -51,7 +51,7 @@ provides-interfaces = [

[dependencies]
# Every patch release of the specification's minor version (openkal clause 8).
openkal = "^0.25.0"
openkal = "^0.26.0"

[build]
sources = ["src/*.cpp"]
Expand Down
3 changes: 3 additions & 0 deletions src/posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ int translate(int e) {
case ENOMEM: return kal_err_no_memory;
case ENOSPC: return kal_err_no_space;
case EDQUOT: return kal_err_no_space;
// A start whose arguments and environment exceed what the system admits
// (ARG_MAX, and on Linux 128 KiB for one string): openkal 0.26, clause 7.6.
case E2BIG: return kal_err_no_space;
case EACCES:
case EPERM:
case EROFS: return kal_err_permission;
Expand Down
Loading