aboutsummaryrefslogtreecommitdiff
path: root/core/sys
Commit message (Collapse)AuthorAgeFilesLines
* core/sys/unix: Add syscalls_linux.odinYawning Angel2021-11-171-0/+60
| | | | | | | Linux is in the unfortunate situation where the system call number is architecture specific. This consolidates the system call number definitions in a single location, adds some wrappers, and hopefully fixes the existing non-portable invocations of the syscall intrinsic.
* Add socket() function to windows ws32 bindingsCarwyn Nelson2021-11-101-0/+5
| | | | | | | It looks like this was missing from the winsock bindings. Odin contains WSASocketW which I assume would also work for obtaining a socket, but socket() is distinct and is what I was using, so I assume others will want it too.
* Fix the windows binding for getaddrinfoCarwyn Nelson2021-11-101-3/+3
| | | | | getaddrinfo should take a double pointer to ADDRINFOA instead of a single pointer. If you call the binding in its current state you will not get back a valid ADDRINFOA struct. I have also changed the `node` and `service` params to be cstring to avoid having to do `transmute(u8) value`.
* Update wasi to use `string` and slice typesgingerBill2021-10-311-197/+249
|
* Correct string usagegingerBill2021-10-311-27/+37
|
* Correct wasi linkinggingerBill2021-10-311-198/+218
|
* Move `sys/wasi` to `sys/wasm/wasi`gingerBill2021-10-311-228/+226
|
* Add `core:sys/wasi`gingerBill2021-10-311-0/+1819
|
* Remove assertgingerBill2021-10-251-1/+1
|
* add GetModuleHandleAJonas Welle2021-10-161-0/+1
|
* Make many `package time` procedures use `"contextless"` calling conventiongingerBill2021-10-111-1/+1
|
* Additional win32 bindings.Josh Engler2021-10-054-1/+74
|
* Correct `context.allocator` usagegingerBill2021-09-191-3/+7
|
* Begin adding vendor:miniaudiogingerBill2021-09-174-1/+5
|
* sys: Add Windows Bluetooth APIs.Jeroen van Rijn2021-09-132-0/+116
|
* Make core and vendor adhere to `-vet`, `-strict-style`, and `-disallow-do`gingerBill2021-09-112-2/+6
|
* Add `vendor:raylib` (core only)gingerBill2021-09-081-1/+5
|
* Strip semicolons in core which were missinggingerBill2021-09-084-130/+130
|
* Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-5/+5
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-3/+3
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-3118-1487/+1487
|
* Use multi-pointers when appropriategingerBill2021-08-221-1/+1
|
* Disallow `using` on an enum declaration.gingerBill2021-08-051-3/+11
|
* Big simplification and improvement of the entity collection system, reducing ↵gingerBill2021-07-271-0/+2
| | | | unneeded steps for packages
* Allow `core:sys/windows` to build on Windows onlyJeroen van Rijn2021-07-1512-0/+12
|
* Port core:sys/win32 tests to test runner.Jeroen van Rijn2021-05-021-33/+30
|
* Correct `\n` ignore rulesgingerBill2021-04-261-1/+1
|
* Remove `use_llvm_api` related checks and other related thingsgingerBill2021-04-251-2/+0
|
* Fix style issues; Use new attribute `@(cold)` where appropriate in the new ↵gingerBill2021-04-141-1/+2
| | | | sync package
* Placate -vet.Jeroen van Rijn2021-04-131-2/+0
|
* Add support to core:windows to add/delete users.Jeroen van Rijn2021-04-135-2/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | main :: proc() { using fmt; using windows; username := "testuser"; password := "testpass"; ok := add_user("", username, password); fmt.printf("add_user: %v\n", ok); pi := windows.PROCESS_INFORMATION{}; ok2, path := windows.add_user_profile(username); fmt.printf("add_user_profile: %v, %v\n", ok2, path); ok3 := windows.delete_user_profile(username); fmt.printf("delete_user_profile: %v\n", ok3); ok4 := windows.delete_user("", username); fmt.printf("delete_user: %v\n", ok4); // Has optional bool to not wait on the process before returning. b := run_as_user(username, password, "C:\\Repro\\repro.exe", "Hellope!", &pi); fmt.printf("run_as_user: %v %v\n", b, pi); }
* Minor fixesgingerBill2021-03-181-0/+1
|
* Make trailing comma usage consistentgingerBill2021-03-132-14/+14
|
* Minimize unneeded castsgingerBill2021-03-033-7/+7
|
* update essence API headernakst2021-02-261-522/+650
|
* Replace inline with #force_inline in sys/es/api.odingingerBill2021-02-231-326/+326
|
* Replace usage of `inline proc` with `#force_inline proc` in the core librarygingerBill2021-02-233-4/+4
|
* Remove `#opaque` usage in core librarygingerBill2021-02-233-27/+27
|
* Remove `bit_field` type from Odin (keyword and dead runtime code still exists)gingerBill2021-02-192-6/+6
|
* Add kernel32 memory apigingerBill2021-02-112-0/+446
|
* Fix miscorrect type usagegingerBill2021-02-041-2/+2
|
* Correct sys/win32 to match sys/windowsgingerBill2021-02-044-20/+66
|
* Merge branch 'master' into parser-experimentsgingerBill2020-12-066-29/+131
|\
| * Deprecate `opaque` in favour of `#opaque` in the core librarygingerBill2020-12-043-27/+27
| |
| * Update kernel32.odinDan Bechard2020-11-201-2/+2
| | | | | | Fix typo in CreateProcessA/W mappings (https://github.com/odin-lang/Odin/issues/785)
| * Add package sys/cpu - implements processor feature detectiongingerBill2020-11-062-0/+102
| |
* | Add experimental `-insert-semicolon` functionality to tokenizer and parsergingerBill2020-11-012-10/+9
|/
* Fixed package namezhibog2020-10-241-1/+1
|
* Fixed getting windows version. The former function is no longer working on ↵zhibog2020-10-242-12/+21
| | | | Windows 10. Also fixed the struct to use correct win32 names
* Improve default temp allocator; Fix filepath.abs behaviour on WindowsgingerBill2020-10-132-24/+37
|