aboutsummaryrefslogtreecommitdiff
path: root/core/c/libc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3230 from avanspector/haikugingerBill2024-03-084-2/+54
|\ | | | | Add Haiku OS support
| * Revert "fix haiku"avanspector2024-02-261-30/+30
| | | | | | | | This reverts commit 7290c692577a2ce6c4f6046b0792ba8da3e61a93.
| * fix haikuavanspector2024-02-261-30/+30
| |
| * fix runtime and libcavanspector2024-02-251-0/+18
| |
| * fix core and libcavanspector2024-02-251-1/+1
| |
| * add haiku to base:runtime and core:c/libcavanspector2024-02-252-1/+35
| |
* | move `va_list` into `core:c`Laytan Laats2024-03-011-9/+3
|/
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-285-5/+5
|
* c/libc: add `to_stream` procLaytan Laats2024-01-081-0/+101
| | | | | Adds the `to_stream` procedure to `core:c/libc` to improve usability of the core collection when you have to use libc.
* Add assert to disallow `-no-crt` when importing `core:c/libc`gingerBill2023-11-231-0/+2
|
* Update stdio.odinreluctant-git-user2023-10-151-1/+1
| | | snprintf() prototype fix
* Require parentheses for `#align(N)`gingerBill2023-08-154-5/+5
|
* Minor fixesgingerBill2023-03-161-1/+1
|
* Fix `cnd_timedwait`gingerBill2023-01-161-1/+1
|
* fix core:c/libc.errno link_name for Linux and FreeBSDJulian Fondren2022-10-171-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although the FreeBSD link matches Darwin, its EILSEQ still matches Linux. Confirmed with the following program: ```odin package main import "core:c/libc" main :: proc() { libc.printf("%d\n", libc.errno()^) // 0 _ = libc.fopen("nonexistent file", "r") libc.printf("%d\n", libc.errno()^) // 2 } ``` on Linux: Odin: dev-2022-10:075040ae OS: Manjaro Linux, Linux 5.10.147-1-MANJARO CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz RAM: 15953 MiB and FreeBSD: Odin: dev-2022-10:075040ae OS: FreeBSD: Unknown CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz RAM: 990 MiB FreeBSD uname -r: 13.0-RELEASE
* Add `system:legacy_stdio_definitions.lib` to `.odin` for WindowsgingerBill2022-10-021-1/+4
|
* Fix `libc.aligned_alloc` for Windows (thanks Microsoft(!))gingerBill2022-09-221-3/+16
|
* Fix `libc.aligned_alloc` on WindowsgingerBill2022-09-221-0/+13
|
* Correcting libc pow bindings134195962022-09-211-2/+2
| | | | | | Adding tests that libc pow(f) functions - have two arguments - behave as expected for simple inputs.
* fix some typoscui fliter2022-08-051-1/+1
| | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* Fix `libc.putchar`gingerBill2022-07-141-1/+1
|
* Add missing commasgingerBill2022-06-131-2/+2
|
* Fix is* proc in libc.Jeroen van Rijn2022-05-201-10/+10
|
* `intrinsics.atomic_type_is_lock_free`gingerBill2022-04-021-1/+1
|
* Change `intrinsics.Atomic_Memory_Order` fields to use `Ada_Case` rather than ↵gingerBill2022-03-311-75/+75
| | | | `snake_case`
* Add checks for memory ordering on fencesgingerBill2022-03-311-6/+6
|
* Update core to use new atomic intrinsicsgingerBill2022-03-311-145/+110
|
* Merge pull request #1614 from semarie/openbsd-fpos_tgingerBill2022-03-141-1/+1
|\ | | | | use distinct type for fpos_t on OpenBSD
| * use distinct type for fpos_t on OpenBSDSébastien Marie2022-03-121-1/+1
| |
* | freebsd_amd64 supportSébastien Marie2022-03-132-6/+33
|/
* initial OpenBSD supportSébastien Marie2022-02-254-2/+50
|
* Merge branch 'master' into odin-global-constants-as-enumsgingerBill2022-02-151-1/+1
|\
| * Fix fread definitionDale Weiler2022-01-231-1/+1
| |
* | Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use stringsgingerBill2022-01-2014-47/+47
|/
* add schar to core:c and core:c/libcTyler Erickson2022-01-041-0/+2
|
* Add support for darwin to `core:c/libc`gingerBill2021-11-1614-8/+116
|
* Make `runtime.memset` use `int` for the length from `uint`gingerBill2021-09-231-1/+3
|
* Make core and vendor adhere to `-vet`, `-strict-style`, and `-disallow-do`gingerBill2021-09-112-10/+12
|
* Fix typogingerBill2021-09-101-0/+8
|
* Add other constants to c and libcgingerBill2021-09-102-1/+4
|
* Unify `memset` usage across platforms and `core:c/libc`gingerBill2021-09-101-2/+3
|
* libc changes: unify c and libc types; Add `[^]T` where appropriategingerBill2021-09-107-152/+150
|
* Remove unnecessary operationsgingerBill2021-09-081-2/+0
|
* Strip semicolons; Make `odin strip-semicolon` replace `..` with `..=` if ↵gingerBill2021-09-0617-960/+960
| | | | used as a binary operator
* Updated comment for Windows version of setjmp.mv/libc-errorsvassvik2021-08-281-2/+13
|
* Add core:c/libc testsvassvik2021-08-281-0/+50
|
* Fix runtime crash for setjmp in Windows related to an hidden second argument ↵vassvik2021-08-281-8/+27
| | | | not normally accessible needing to be set to 0.
* Fix core:c/libc Windows compilation errors by linking to the right libraries.vassvik2021-08-2814-17/+73
| | | | | Fix some name typos and missing types in Windows. Add explicit cast on MB_CUR_MAX
* cleanupDale Weiler2021-08-2218-21/+19
|
* libc projectionDale Weiler2021-08-2218-0/+1880