Граф коммитов

73 Коммитов

Автор SHA1 Сообщение Дата
Nishikant Deshmukh 3434cf0416
Add 64-bit APIs in interlocked_hl.h and sync.h (#413)
* Specs for interlocked and sync 64

* Specs for interlocked and sync 64 - Parth comments

* Mergeable specs

* Addressed Parth comments

* Address Dan's comments

* Implementation of 64 bit for interlocked_hl and sync

* Added missing LogErrors

* Added missing LogErrors and some Specs corrections

* Corrected comment indentations

* Addressed Dan's comments

* Addressed Jelan's comments
2024-11-18 20:10:04 -08:00
Nishikant Deshmukh 76da349891
Specs for interlocked and sync 64 (#411)
* Specs for interlocked and sync 64

* Specs for interlocked and sync 64 - Parth comments

* Mergeable specs

* Addressed Parth comments

* Address Dan's comments
2024-11-15 15:40:39 -08:00
Matt Durak 78b5281143
Add real_threadpool_thandle for convenience in UTs (#405)
* Add real_threadpool_thandle for convenience in UTs
2024-11-04 09:54:16 -08:00
Jelani Brandon 7501f78f6f
updating wait_on_address to return the timeout (#404)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2024-10-31 16:29:09 -07:00
anporumb fa600a0a8b
Solve C4505 t the source. (#400)
* added MU_SUPPRESS_WARNING for REF_COUNT types

* also removed it from thandle_ll.h

* MU_SUPPRESS_WARNING(4505) /*warning C4505: 'function': unreferenced function with internal linkage has been removed*/

* propagate_all_repos anporumb/pchmock6

* propagate_all_repos anporumb/pchmock6

* propagate_all_repos anporumb/pchmock6

* propagate_all_repos anporumb/pchmock6

* use latest dependencies 13 Oct 2024

* use vcpkg from master
2024-10-25 12:58:21 -07:00
anporumb 752bec6839
fixes for EBS repo and remove c_pal_interfacesmocks (#391)
* c_pal_umocktypes should link with c_pal_reals

* no need to build a mock library for c_pal_interface

* take out pal_ll_interfaces_mocks

* make call_once_ut compile

* better reals for async_socket

* added (void) to void functions

* add real socjket transport / socket for win32

* added reals for sokcet transport on linux

* async socket uses socket transport

* added real async socket for linux

* socket_transport has unbalanced } in C++ lands

* reals changes

* windows compiles now

* better but still doesn't compile on linux

* now it all compiles

* added stdint.h after CR
2024-10-18 11:41:44 -07:00
anporumb 0fee3af5d5
add the smallest precompiled header and use it in 1x project. (#384)
* meek attempt to have a mocks library with precompiled header

* this creates by hand win32_ll_mocks and uses it in call_once_ut_exe_c_pal

* mock loibrary for c_pal_interfaces is build with a function

* propagate_all_repos anporumb/pchmock3

* itr also compiles but does NOT link on linux

* now it builds AND links on LINUX

* added a minimal explanation about exiting visual studio

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* threadpool uses terminate_process

* make pal_ll_interfaces appear in Visual Studio

* it needs to be prefixed with inc

* extraneous files are removed

* write library name with capital letters

* use also for #ifdef

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* remove C_PAL_INC_FOLDER

* make it compile with latest c-pal

* use latest dependencies 10 Oct 2024

* remove garbage from build folder

* use latest dependencies 10 Oct 2024

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* use latest dependencies 10 Oct 2024
2024-10-11 10:26:22 -07:00
Parth Aggarwal 2948b4ba98
add print macros (#345) 2024-06-26 12:50:08 -07:00
anporumb 62040f937a
move_semantics_with_NULL_for_THANDLE_PTR (#343) 2024-06-21 12:54:02 -07:00
anporumb 1d6d29a682
make logging context thandlable (#337)
* before making reals for thandle_logging_context

* it doesn't compile

* update thandle_ll to expose types of functions

* with reals

* iwyu take 01 out of 99

* iwyu take 02 out of 99

* iwyu take 03 out of 99

* iwyu take 04 out of 99

* iwyu take 05 out of 99

* iwyu take 06 out of 99

* iwyu take 07 out of 99

* iwyu take 08 out of 99

* iwyu take 09 out of 99

* rename test name to something better
2024-05-14 11:22:43 -07:00
anporumb 751e5bec5e
thandle ptr helper (#336)
* it all compuiles

* no leaks

* it all compiles so far no leaks, files moved around, started writing specs

* added specs

* added tests with incomplete/complete/and file hosted types

* added unittests
2024-05-09 21:38:09 -07:00
David Robson 47ee6cc488
Add real_thandle_helper.h and real_interlocked_undo_rename.h to c-pal… (#308)
* Add real_thandle_helper.h and real_interlocked_undo_rename.h to c-pal repo.
Add a document and unit test to show how to use.

---------

Co-authored-by: Matt Durak <mdurak@microsoft.com>
2024-03-01 18:02:41 +00:00
Dan Cristoloveanu 3c77c593c7
Fix THANDLE_MALLOC_WITH_EXTRA_SIZE to be THANDLE_MALLOC_FLEX (#284)
* Make THANDLE_MALLOC_WITH_EXTRA_SIZE be THANDLE_MALLOC_FLEX

* Fix extra_size instances to be named flex
2023-10-30 09:56:14 -07:00
anporumb bdcd1ad58e
Anpo 06 oct 2023 update deps (#276)
* use latest dependencies 06 Oct 2023

* remove mymalloc
2023-10-06 15:15:40 -07:00
Jelani Brandon f8fa6a15b7
Add linux compiler checks (#255)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-07-20 17:42:51 +00:00
Dan Cristoloveanu 073b5545e5
Switch to logging v2 (#249)
* logging_v2

* logging_v2

* logging_v2

* logging_v2

* logging_v2

* Latest deps

* Latest deps

* Minor updates

* Update with logging_v2 config APIs

* Add logerrno to logger.h

* Add one more v1 to v2 translation

* Fix some issues

* Use latest logging

* Fix IWYU

* Fix IWYU

* making call count a global variable to avoid helgrind bug

* Suppress printf issues in sm helgrind test

* Add suppression for printf with Helgrind

* Add suppression for printf with Helgrind

* Address CR comment

---------

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-06-28 13:07:48 +05:30
Jelani Brandon ae7fddef8c
feature: moving thandle to pal repo (#231)
* feature: moving thandle to pal
---------
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-04-03 14:55:07 -07:00
Dan Cristoloveanu ed49c0f0a4
New deps + remove mutex (#227)
* Update dependencies

* Remove mutex

* Remove mutex

* New deps

* Update dependencies
2023-03-29 13:14:33 -07:00
anporumb b80a232af6
Anpo 03 14 2023 update deps (#224)
* use latest dependencies

* remove C11
2023-03-14 21:30:32 -07:00
Jelani Brandon 67f8219391
chore: enabling sm_int (#221)
* chore: enabling sm_int

---------

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-02-22 21:33:32 -08:00
Jelani Brandon d8cd7e58e7
chore: fix real sm close function (#218)
---------

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-02-02 20:18:57 -08:00
Jelani Brandon 4337984992
chore: adding implementation for sm_close while opening (#215)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-02-01 16:48:37 -08:00
Jelani Brandon b3b58fbc9b
chore: update sm requirement to handle close while opening callback (#212)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-02-01 10:03:09 -08:00
Bingyi Yang 0c8ac64304
move sm and its dependencies from c-util to c-pal (#207)
* move sm and its dependencies from c-util to c-pal

* fix iwyu

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* move sync and interlock into a new lower level c-pal

* fix linux build error

* fix win cmake build error

* changes with comments

* fix linux build error

* merge
2023-01-29 00:07:45 -08:00
Jelani Brandon a3995d00a3
Async socket unittest and specs (#195)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2022-12-21 10:01:24 -08:00
Achintya ac0c17a64b
Remove cyclic dependences (#194)
* remove cyclic dependinces

* remove cyclic dependinces
2022-12-21 00:27:17 +05:30
Jelani Brandon 6a9b28f301
chore: adding s_list reals (#191)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2022-12-12 15:29:06 -08:00
Jelani Brandon 65f467f09a
feature: adding doublylinklist and slist to repo (#188)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2022-12-10 13:31:22 -08:00
Riddhi Gupta 6b3ff5ecf0
Changing return type of wait on address (#182)
* Changing return type of wait on address

* Removing 1 requirement

* Adding changes for linux

* Adding logging

* Changes in linux code to fix int test

* Addressing comment

* Minor fix

Co-authored-by: Riddhi Gupta <riddhigupta@microsoft.com>
2022-12-01 15:24:38 +05:30
anporumb 6a5675adb3
eliminate C++ from tests (#154) 2022-06-21 14:04:19 -07:00
anporumb a4dad11912
string_utils has FILETIME_to_string_UTC. New UT project. New INT proje… (#152)
* sring_utils has FILETIME_to_string_UTC. New UT project. New INT project. New specs

* fix compiler error about unreachable code

* 3rd time is a charm!

* after CR
2022-06-09 16:06:58 -07:00
Dan Cristoloveanu 7f38da1a43
Update dependencies (#146)
* Update dependencies

* Fix test projects
2022-03-16 18:32:18 -07:00
anporumb abd708fa4d
have unique UUID (#138)
* works on windows

* all tests pass on Linux/Win32

* with requirements

* with YWYU

* more include

* now iwndows maybe compiles

* added GUID to UUID_T conversion

* added chapter for windows

* fix horrible ciopy paste

* added PRI_GUID and tests for it

* more tests/documents

* why not have umock_types where the type is declared?

* include what you use should stop complaining

* while I am here, remove real_malloc

* free => real_Free

* after CR
2022-01-10 11:11:12 -08:00
anporumb 27107e1f2f
have some x64 mutiply thingies (#111)
* have 64x64=128 bit multiplication
2021-10-20 15:03:16 -07:00
anporumb 6fc3493014
have refcount_create_flex (#115)
* have refcount_create_flex
2021-10-19 07:30:31 -07:00
anporumb fb7c931c4c
use new gballoc functions (#113)
* use new gballoc functions in c_pal
2021-10-15 08:33:10 -07:00
Matt Durak b5c3edbb01
Helper for refcount reals (#100)
* Add a real_refcount to use refcount types in tests without mocked interlocked calls

* Fix interlocked includes

* Re-enable real_refcount
2021-09-27 17:46:54 -07:00
anporumb 1f1f683486
use latest clang10 dependencies (#92)
* use latest clang10 dependencies

* relax helgrind

* make clang happy

* better commants

* spinning
2021-06-06 13:15:27 -07:00
anporumb 54189ec015
kill gballoc (#90)
* use latest submodules

* remove ON
2021-06-02 09:26:59 -07:00
Dan Cristoloveanu 8c73659a8f
New deps (#78)
* Update dependencies

* Fix test suites

* Use latest deps

* Remove boilerplate main.c files

* Fix test suites

* Fix Linux build

* Do not use cppunittest by default
2021-04-07 08:52:48 -07:00
Dan Cristoloveanu facd0b8bda
Bump cmake version (#73)
* Update dependencies

* Bump cmake version
2021-01-27 21:57:04 -08:00
Matt Durak 5d70ea3db2
Add iwyu for Linux (#69) 2021-01-25 17:56:09 -08:00
Dan Cristoloveanu c609aabc78
Add includecheck leg with iwyu (#68)
* Use umock with exported macro_utils.h

* Fix includes

* Add includecheck leg
2021-01-21 12:40:46 -08:00
Dan Cristoloveanu d3daae4094
Enable valgrind and VLD on c-pal (#56) 2020-11-05 19:28:55 -08:00
anporumb 964df11c83
restart uses latest deps (#51)
* git rm old repos

* removed rogue azure-c-logging

* now uses latest renamed modules

* umock too - latest and greatest

* renamed azure_c_pal to c_pal

* remove remnants of azure-c_c
2020-10-30 14:17:47 -07:00
Dan Cristoloveanu 0bf53cc2fd Modify wait_on_address to have a value rather than address. It helps with enum usage 2020-10-16 12:38:18 -07:00
anporumb 23d8817932
prepare for zc preprocessor (#38)
* prepare for zc_preprocessor

* threadapiexit is noreturn

* fix TAB to spaces and use latest repos

* some more changes to CMakeLists.txt

* move to our pool and VS 2019

* exit from threads with return, no ThreadApi_return

* it is not prepared to run with valgrind

* try to previous traceability that apparently worked mysteriously

* more traceability

* have the exlusion dir filly specified
2020-09-29 22:41:40 -07:00
Dan Cristoloveanu fa2a24abb2 Minor spec fix 2020-08-14 23:56:48 -07:00
Dan Cristoloveanu 87f82d3811 Switch to 2 macros: one with default malloc/free and one with custom malloc/free 2020-08-14 23:56:48 -07:00
Dan Cristoloveanu e388bf105a ref count type define supporting malloc/free being specified 2020-08-14 23:56:48 -07:00