Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c178925
Fix Design time build errors by removing src project as dependency of…
carlossanlop May 4, 2022
9f020bd
Add Browser to target platform identifiers. Ensure Browser can consum…
carlossanlop May 4, 2022
c4d444b
Remove nullable enable from csproj since it's now default
carlossanlop May 5, 2022
354e40a
Use FileStream constructor with FileMode.CreateNew to detect and thro…
carlossanlop May 9, 2022
d04ec6b
No error checking on syscalls that do not set errno.
carlossanlop May 9, 2022
9cb26f1
Add RDev field in FileStatus and retrieve it with stat/lstat so devma…
carlossanlop May 10, 2022
d94536a
Simplify some File.Open calls with direct FileStream constructor call…
carlossanlop May 10, 2022
cdbbddf
Implement and consume p/invokes to retrieve uname from uid and gname …
carlossanlop May 10, 2022
e343a3b
size_t variables should not be checked for negative values
carlossanlop May 11, 2022
1af51df
FileStream calls simplified to File.OpenRead
carlossanlop May 11, 2022
d845d56
Remove check for RDev > 0
carlossanlop May 11, 2022
94d2cf0
Use dictionary to preserve repeated unames and gnames mapped to uids …
carlossanlop May 11, 2022
90cc58c
Missing documentation in pal_uid.h new PALEXPORT methods.
carlossanlop May 11, 2022
fe9a927
Adjust syscalls to thread-safe ones. Start with stackalloc, then use …
carlossanlop May 12, 2022
a8f5cf6
Make dicts readonly and non-nullable, use TryGetValue
carlossanlop May 12, 2022
498c084
Merge branch 'main' into TarImprovements
carlossanlop May 13, 2022
7b4e7b5
Reuse 'GetNameFromUid' from pal_networking.c, move to pal_uid.c, use …
carlossanlop May 13, 2022
a9090b4
Remove unnecessary comment
carlossanlop May 13, 2022
7c01996
Put TargetFrameworks back in the first position of the PropertyGroup.
carlossanlop May 13, 2022
8de50ad
Address eerhardt suggestions
carlossanlop May 13, 2022
31ab76b
Update src/libraries/System.Formats.Tar/tests/TarWriter/TarWriter.Wri…
carlossanlop May 17, 2022
67fe812
Clarify in pal_uid.h methods comments that new memory is returned
carlossanlop May 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missing documentation in pal_uid.h new PALEXPORT methods.
  • Loading branch information
carlossanlop committed May 11, 2022
commit 90cc58c396f20a074b77abf4a050ddfc556aaf8e
4 changes: 4 additions & 0 deletions src/native/libs/System.Native/pal_uid.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ PALEXPORT int32_t SystemNative_GetGroups(int32_t ngroups, uint32_t* groups);

/**
* Gets the user name associated with the specified user ID and stores it in the buffer.
* On failure, returns -1 and sets the buffer to NULL.
* On success, returns the length of the uname string, and sets buffer to a valid pointer.
*/
PALEXPORT int32_t SystemNative_GetUName(uint32_t uid, char* buffer, int32_t bufferSize);

/**
* Gets the user name associated with the specified group ID and stores it in the buffer.
* On failure, returns -1 and sets the buffer to NULL.
* On success, returns the length of the gname string, and sets buffer to a valid pointer.
*/
PALEXPORT int32_t SystemNative_GetGName(uint32_t gid, char* buffer, int32_t bufferSize);