aboutsummaryrefslogtreecommitdiff
path: root/core/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge pull request #747 from Platin21/mastergingerBill2020-09-281-1/+1
|\ | | | | Fixes for MacOS 11 / Big Sur
| * Changed foreign imports to now use the System FrameworkPlatin212020-09-271-1/+1
| |
* | Add `os.stat`, `os.lstat`, `os.fstat`, `filepath.walk`gingerBill2020-09-281-0/+7
|/
* Update packages os, path, and filepathgingerBill2020-09-261-0/+4
|
* Add `package path/filepath`; Add `os.stat` for windows (TODO: unix)gingerBill2020-09-252-0/+13
|
* Remove usage of `do` in core librarygingerBill2020-09-231-1/+3
|
* update essence platformnakst2020-09-151-0/+2772
|
* Cleanup, check sched_param and SCHED_* constants in pthread_freebsd.odinChristian Seibold2020-09-151-13/+3
|
* Change sizes of pthread types for freebsdChristian Seibold2020-09-141-14/+12
|
* Get Odin compiling and produced exe's running on FreeBSDChristian Seibold2020-09-141-0/+125
|
* [REFLECTION BREAKING] Modify the internals of the `map` type to increase ↵gingerBill2020-09-071-0/+2
| | | | performance
* Add sys/windows/synchronization.odingingerBill2020-08-021-0/+10
|
* Update package syncgingerBill2020-08-021-0/+1
|
* Fix pthread_t on Macos.Clay Murray2020-07-111-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From some testing with directly using C code, pthread_t on macos is 8 bytes. This is my test code: ``` #include <assert.h> #include <stdio.h> #include <pthread.h> void* PosixThreadMainRoutine(void* data) { // Do some work here. for (int i = 0; i < 2000000000; i++) { } return NULL; } pthread_t LaunchThread() { // Create the thread using POSIX routines. pthread_attr_t attr; pthread_t posixThreadID; int returnVal; returnVal = pthread_attr_init(&attr); assert(!returnVal); returnVal = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); assert(!returnVal); int threadError = pthread_create(&posixThreadID, &attr, &PosixThreadMainRoutine, NULL); returnVal = pthread_attr_destroy(&attr); assert(!returnVal); if (threadError != 0) { // Report an error. } return posixThreadID; } int main() { pthread_t t = LaunchThread(); void ** ret; printf("%d, %d\n", sizeof(t), sizeof(pthread_t)); int val = pthread_join(t, ret); printf("%d", val); return 0; } ``` running this on macos reports `8, 8`. Then I made the proposed changes and errors I was having with threads completely went away.
* Fix double declarationgingerBill2020-07-101-1/+0
|
* Fix new `package path`gingerBill2020-07-101-0/+7
|
* Merge pull request #339 from dotbmp/mastergingerBill2020-07-101-0/+9
|\ | | | | "core:path" Path library and "core:strings" `split` Utilities
| * Merge branch 'master' into masterBrendan Punsky2019-03-181-7/+17
| |\
| * | Fix typoBrendan Punsky2019-03-131-1/+1
| | |
| * | Merge branch 'master' into masterBrendan Punsky2019-03-134-5/+159
| |\ \
| * | | Update kernel32.odinBrendan Punsky2019-03-131-0/+9
| | | | | | | | | | | | Add Win32 path functions