aboutsummaryrefslogtreecommitdiffhomepage
path: root/src (follow)
AgeCommit message (Collapse)AuthorLines
2025-09-21Tweak some flycheck-related docstringssogaiu-6/+10
2025-09-20Update CHANGELOG.mdCalvin Rose-1/+1
2025-09-20Refactor flycheck to allow customization. Address #1638Calvin Rose-62/+78
Bindings can define their own flycheckers in a simple fashion.
2025-09-19Manually declare chroot on macos.Calvin Rose-0/+1
2025-09-19Add os/posix-chrootCalvin Rose-0/+25
Gated in a similar manner to os/posix-fork.
2025-09-19Merge pull request #1645 from pyrmont/bugfix.avoid-apc-useCalvin Rose-13/+36
Use `SetEvent` rather than `QueueUserAPC` on Windows
2025-09-17Remove unused function on WindowsMichael Camilleri-6/+1
2025-09-17Add workaround to timer resolution issue on WindowsMichael Camilleri-1/+8
2025-09-16Start worker thread in suspended state on WindowsMichael Camilleri-1/+2
2025-09-16Use SetEvent rather than QueueUserAPC on WindowsMichael Camilleri-6/+26
2025-09-15Fix #1643, but add features.hCalvin Rose-0/+3
2025-09-06Don't try for backwards compat with compiled modules - Address #1639Calvin Rose-1/+1
This guarantee is difficult to maintain and shouldn't be needed.
2025-09-02Minor version bump for linking.Calvin Rose-3/+3
2025-09-01Remove strnlen and correctly address #1600Calvin Rose-11/+3
2025-09-01Revert reordering 2.Calvin Rose-3/+3
2025-09-01Revert reordering of janet_deinitCalvin Rose-6/+6
2025-09-01Add per-thread finalizer calls in missing places.Calvin Rose-9/+14
2025-09-01Address #1629 - janet_deinit called before threaded channel message sentCalvin Rose-9/+58
to thread. If we take a reference to another thread inside channel code, make sure that we increase the refcount to avoid a use after free.
2025-09-01Fix #1604 - Add JANET_DO_ERROR_* defines for failure flags from janet_dobytes.Calvin Rose-5/+9
2025-08-31Small spelling fixesJoshua Krusell-2/+2
2025-08-30Update janet for 1.39.1v1.39.1Calvin Rose-2/+2
2025-08-30Merge pull request #1632 from jsks/jsks-channelCalvin Rose-4/+4
Export channel utilities
2025-08-29os.c: use JANET_SPAWN_NO_CHDIR macros for macOS <10.15aeiouaeiouaeiouaeiouaeiouaeiou-1/+8
Signed-off-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
2025-08-29Export channel utilitiesJoshua Krusell-4/+4
2025-08-24Prepare for 1.39.0 releasev1.39.0Calvin Rose-2/+2
2025-08-24Merge pull request #1628 from snltd/illumos-supportCalvin Rose-1/+15
illumos support
2025-08-21Use janet_gettime instead of clock_gettime in ev.cCalvin Rose-3/+3
We made the wrapper, let's use it. Also switch poll implementation to a monotonic clock instead of realtime to be more inline with epoll and kqueue.
2025-08-18illumos supportsnltd-1/+15
2025-08-18Read System Clock for Monotonic TimeNicholas Rodrigues Lordello-15/+12
This PR changes the `janet_gettime` implementation for OSX <10.12 to read the system clock for `(os/clock :monotonic)`. As far as I was able to find online this is _a_ monotonic clock, although it produces different values from `clock_gettime(CLOCK_MONOTONIC, ...)` on the same system. I can speculate that this is related to `SYSTEM_CLOCK` monotonic time being implemented with `mach_absolute_time` which is documented to _not advance during sleep_, and I suspect that `clock_gettime(CLOCK_MONOTONIC, ...)` does. **Resources**: - `clock_get_time` implementation for the `SYSTEM_CLOCK`: <https://github.com/apple-oss-distributions/xnu/blob/e3723e1f17661b24996789d8afc084c0c3303b26/osfmk/kern/clock_oldops.c#L284-L296> <https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/osfmk/arm/rtclock.c#L248-L260> - `mach_absolute_time` and `mach_continuous_time` definitions: <https://github.com/apple-oss-distributions/xnu/blob/e3723e1f17661b24996789d8afc084c0c3303b26/osfmk/mach/mach_time.h#L55-L68> - Stack overflow post for implementing `clock_gettime` on OS X before 10.12: <https://stackoverflow.com/questions/11680461/monotonic-clock-on-osx>
2025-08-18Use `CLOCKS_PER_SEC`Nicholas Rodrigues Lordello-2/+2
The POSIX standard defines that `clock(3)` returns a `clock_t` as a number of clock ticks in `CLOCKS_PER_SEC` and not `CLOCKS_PER_SECOND`, [source](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html).
2025-08-17Add test patch for #1625Calvin Rose-3/+3
2025-08-14Add `net/socket` for unbound socket creation #1622Seungki Kim-0/+51
2025-08-11Fix: Correctly flag UDP streams in net/connect #1620Seungki Kim-1/+3
2025-08-02Windows quirk fixCalvin Rose-0/+5
2025-08-02Fix abstract unix sockets for issue #1618 - address #1618Calvin Rose-14/+15
2025-08-02Fix #1609 Remove sigaction if JANET_NO_EV defined.Calvin Rose-0/+2
2025-07-18net/server: improve error for truthy handler and type :datagramIsaac Freund-1/+7
Since it is invalid to call accept on a datagram socket, net/server always errors if handler is truthy and type is :datagram. Add an assert to give a better error message in this case and clarify the documentation. References: https://github.com/janet-lang/janet/issues/1614
2025-07-13Merge pull request #1607 from sarna/masterCalvin Rose-4/+9
Clarify :fresh usage in import
2025-07-13Remove extra call to filewatcher - address #1608Calvin Rose-2/+0
2025-07-13Address #1609 - compile with JANET_NO_PROCESSESCalvin Rose-1/+1
2025-07-13Validate optional args to importsarna-1/+6
2025-07-12Clarify :fresh usage in importsarna-3/+3
2025-07-06Allow :dependencies value in info.jdn to contain dictionaries for complex ↵Michael Camilleri-12/+16
dependency coordinates
2025-07-02Use :dependencies argument in bundle/install for dependency checkingMichael Camilleri-31/+25
2025-06-29Merge pull request #1605 from iacore/patch-2Calvin Rose-16/+17
Patch try to accept (try body ([] catch-body))
2025-06-26Revert order change from f4ecb5aCalvin Rose-2/+2
janet_interpreter_interrupt should always be called before janet_interpreter_interrupt_handled, and the original code ensured that.
2025-06-24Patch try to accept (try body ([] catch-body))iacore-16/+17
2025-06-18Reorder post event / interrupt sequence in deadline.Calvin Rose-2/+2
The interrupt message should come _after_ the post event is made.
2025-06-14Use strnlen when checking for null byteEvan Shaw-1/+1
2025-05-21Remove some underline bits from doc-formatsogaiu-4/+2