diff --git a/CHANGELOG.md b/CHANGELOG.md index aab4c45b9..c3bea5647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## Unreleased - ??? +- Add `memcmp` function to core library. +- Fix bug in `os/open` with `:rw` permissions not correct on Linux. - Support config.mk for more easily configuring the Makefile. ## 1.25.0 - 2022-10-10 diff --git a/src/core/corelib.c b/src/core/corelib.c index 20e9e61ce..ed4741787 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -633,11 +633,11 @@ JANET_CORE_FN(janet_core_signal, } JANET_CORE_FN(janet_core_memcmp, - "(memcmp a b &opt len offset-a offset-b)", - "Compare memory. Takes to byte sequences `a` and `b`, and " - "return 0 if they have identical contents, a negative integer if a is less than b, " - "and a positive integer if a is greather than b. Optionally take a length and offsets " - "to compare slices of the bytes sequences.") { + "(memcmp a b &opt len offset-a offset-b)", + "Compare memory. Takes to byte sequences `a` and `b`, and " + "return 0 if they have identical contents, a negative integer if a is less than b, " + "and a positive integer if a is greather than b. Optionally take a length and offsets " + "to compare slices of the bytes sequences.") { janet_arity(argc, 2, 5); JanetByteView a = janet_getbytes(argv, 0); JanetByteView b = janet_getbytes(argv, 1);