Motiejus Jakštys
|
72f6c9c6f4
|
don't be smart about memory continuity
|
2022-06-12 13:38:10 +03:00 |
Motiejus Jakštys
|
9b803b84d2
|
add ErrContext
|
2022-06-12 13:27:12 +03:00 |
Motiejus Jakštys
|
12561d9f3a
|
wip: full smoke test
|
2022-06-07 13:14:50 +03:00 |
Motiejus Jakštys
|
e2d20bb805
|
formatting
|
2022-06-07 06:30:18 +03:00 |
Motiejus Jakštys
|
a5c24ace80
|
writing to the db
|
2022-06-07 05:59:00 +03:00 |
Motiejus Jakštys
|
31b5bb2d72
|
Group.fromReader
|
2022-06-07 05:39:16 +03:00 |
Motiejus Jakštys
|
e238db9b60
|
unix2db: first stab at flag parsing
|
2022-06-06 10:01:15 +03:00 |
Motiejus Jakštys
|
20bfa60f26
|
fixes for zig 0.10.0-dev.2473+e498fb155
|
2022-06-05 23:11:18 +03:00 |
Motiejus Jakštys
|
d71f0d615b
|
fix one of stage2 errors
|
2022-05-25 09:48:39 +03:00 |
Motiejus Jakštys
|
c602b7a039
|
rename lib to src
|
2022-05-25 09:42:42 +03:00 |
Motiejus Jakštys
|
b126b95885
|
add ifreund's flags.zig
From https://gist.github.com/ifreund/41e91a3e4aeb0a3da57258c14e2a8cea
Thanks, Isaac.
|
2022-05-25 09:33:56 +03:00 |
Motiejus Jakštys
|
1c58980010
|
skip failing test
|
2022-05-25 06:43:30 +03:00 |
Motiejus Jakštys
|
4cf7830f57
|
scratch: free/alloc instead of realloc
that way the existing contents in scratch do not need to be copied over.
|
2022-05-16 19:23:14 +03:00 |
Motiejus Jakštys
|
4f2c8707f4
|
wip _nss_turbo_getpwuid_r
|
2022-04-21 09:30:39 +03:00 |
Motiejus Jakštys
|
ee603c47ca
|
wip so
|
2022-04-20 13:13:57 +03:00 |
Motiejus Jakštys
|
1a01175c46
|
cmph may return a larger hash than there are items.
|
2022-04-20 06:08:07 +03:00 |
Motiejus Jakštys
|
2205d6c4b2
|
wip State.zig
|
2022-04-20 05:41:30 +03:00 |
Motiejus Jakštys
|
473e75a3f9
|
sentinel tests
|
2022-04-19 14:11:05 +03:00 |
Motiejus Jakštys
|
bc7a7a0350
|
getpwuid
|
2022-04-19 13:54:21 +03:00 |
Motiejus Jakštys
|
7d4623411f
|
finish getpwnam
|
2022-04-19 13:28:38 +03:00 |
Motiejus Jakštys
|
4469d174ea
|
wip getpwnam
|
2022-04-19 13:17:23 +03:00 |
Motiejus Jakštys
|
9e80d6676b
|
move CGroup to Group
|
2022-04-19 10:46:02 +03:00 |
Motiejus Jakštys
|
be9bf3f51c
|
CGroup is extern struct
|
2022-04-19 10:42:24 +03:00 |
Motiejus Jakštys
|
70120051c8
|
members is a pointer now
|
2022-04-19 10:34:40 +03:00 |
Motiejus Jakštys
|
ce827a9ae6
|
CGroup.name is [*]u8 now
|
2022-04-19 10:24:32 +03:00 |
Motiejus Jakštys
|
3eeb0a8332
|
getgrgid
|
2022-04-19 10:08:37 +03:00 |
Motiejus Jakštys
|
d4ba5a9a58
|
Add CGroupPtr
|
2022-04-19 07:18:41 +03:00 |
Motiejus Jakštys
|
3c507ffe08
|
pointer size checker
|
2022-04-19 06:11:37 +03:00 |
Motiejus Jakštys
|
64bd5df633
|
replace member strlen with getgr_max and getpw_max
This way we can use buffers in both Zig and C, without the performance
or size penalty.
|
2022-04-18 19:35:26 +03:00 |
Motiejus Jakštys
|
c6bd3f5cb8
|
storing getgr_max and getpw_max
|
2022-04-18 13:11:20 +03:00 |
Motiejus Jakštys
|
71f5284399
|
wip: getgr_max and getpw_max
|
2022-04-18 11:15:14 +03:00 |
Motiejus Jakštys
|
130aea7cf5
|
complete the test for getgrnam
|
2022-04-18 06:57:34 +03:00 |
Motiejus Jakštys
|
c1e20db0bd
|
ugly: make getgrnam test pass
|
2022-04-18 06:53:06 +03:00 |
Motiejus Jakštys
|
63acece1a4
|
trivial style
|
2022-04-18 06:48:31 +03:00 |
Motiejus Jakštys
|
28e8f11f91
|
getgrnam works, except for memory leaks
|
2022-04-17 08:58:57 +03:00 |
Motiejus Jakštys
|
67360962c3
|
fix Group.init to copy appropriately
|
2022-04-16 06:24:55 +03:00 |
Motiejus Jakštys
|
5968d8494e
|
add CGroup
|
2022-04-16 05:36:49 +03:00 |
Motiejus Jakštys
|
a655d8a88a
|
wip group clone/new
|
2022-04-10 23:30:12 +02:00 |
Motiejus Jakštys
|
3447fce9f7
|
wip groupmembers is 2-alloc away.
|
2022-04-10 21:00:41 +02:00 |
Motiejus Jakštys
|
3e9cfcbdbf
|
wip fromLine
|
2022-04-10 20:58:43 +02:00 |
Motiejus Jakštys
|
41ed32994f
|
add strlen for PackedUser strings
|
2022-04-08 20:05:39 +03:00 |
Motiejus Jakštys
|
c343bf64fb
|
Revert "wip groupmembers is 2-alloc away."
This reverts commit 7c41cbabe7 .
Not doing this now.
|
2022-04-08 16:08:03 +03:00 |
Motiejus Jakštys
|
7c41cbabe7
|
wip groupmembers is 2-alloc away.
|
2022-04-08 15:05:56 +03:00 |
Motiejus Jakštys
|
0766175915
|
wip groupMemberNames
|
2022-04-07 12:23:50 +03:00 |
Motiejus Jakštys
|
d4d3729bf0
|
Group.members: fake sentinel at clone time
|
2022-04-03 14:56:01 +03:00 |
Motiejus Jakštys
|
5704deb6b3
|
make Group.members an array with sentinel
Triggers a bug in the compiler, similar to
https://github.com/ziglang/zig/issues/7517
|
2022-04-03 14:48:53 +03:00 |
Motiejus Jakštys
|
34049d13f0
|
group members are now slices
|
2022-03-26 12:06:07 +02:00 |
Motiejus Jakštys
|
88d88af111
|
wip cloneArray
may not turn out to be useful though
|
2022-03-26 11:12:04 +02:00 |
Motiejus Jakštys
|
fad7c9fbaf
|
DB.header is becoming a pointer
Also, move User, PackedUser, Group, PackedGroup to better-fit places.
|
2022-03-26 10:40:35 +02:00 |
Motiejus Jakštys
|
347f0a1392
|
Write the file
Also move DB and Corpus to their own files while doing that.
|
2022-03-24 12:36:08 +02:00 |