Commit Graph

219 Commits

Author SHA1 Message Date
e79cdaffde fix user writing 2022-07-02 16:24:47 +03:00
83fa0c8733 better char debugging experience 2022-07-02 16:17:10 +03:00
186796fffc user.fromLine tests 2022-07-02 09:14:02 +03:00
e7fb0c18d4 User.fromLine 2022-06-29 13:55:53 +03:00
5d171883a7 home + shell validators 2022-06-29 13:49:20 +03:00
7911287261 gecos validator 2022-06-29 13:37:36 +03:00
942c05f348 name validation 2022-06-29 10:48:37 +03:00
b703eeb37c wip fromLine tests 2022-06-28 19:55:33 +03:00
f30510f122 wrap errors in real code with quotes 2022-06-28 16:44:44 +03:00
71f94d0600 fix error wrapping 2022-06-28 16:41:10 +03:00
3872f2af40 fix split_rev 2022-06-28 16:04:23 +03:00
0865965762 wip: failure tests 2022-06-22 21:16:13 +03:00
7d73667250 code style 2022-06-22 21:06:20 +03:00
a4d5be6fab wip error context 2022-06-22 20:59:58 +03:00
6aa4b01692 wip handling errors in top level 2022-06-22 16:23:04 +03:00
62b643dbc2 ErrCtx: splitRev 2022-06-22 15:36:22 +03:00
675125be05 beginnings of using ErrCtx 2022-06-15 13:34:37 +03:00
eb6003c957 wip ErrCtx 2022-06-15 12:56:19 +03:00
72f6c9c6f4 don't be smart about memory continuity 2022-06-12 13:38:10 +03:00
9b803b84d2 add ErrContext 2022-06-12 13:27:12 +03:00
12561d9f3a wip: full smoke test 2022-06-07 13:14:50 +03:00
e2d20bb805 formatting 2022-06-07 06:30:18 +03:00
a5c24ace80 writing to the db 2022-06-07 05:59:00 +03:00
31b5bb2d72 Group.fromReader 2022-06-07 05:39:16 +03:00
e238db9b60 unix2db: first stab at flag parsing 2022-06-06 10:01:15 +03:00
20bfa60f26 fixes for zig 0.10.0-dev.2473+e498fb155 2022-06-05 23:11:18 +03:00
d71f0d615b fix one of stage2 errors 2022-05-25 09:48:39 +03:00
c602b7a039 rename lib to src 2022-05-25 09:42:42 +03:00
b126b95885 add ifreund's flags.zig
From https://gist.github.com/ifreund/41e91a3e4aeb0a3da57258c14e2a8cea

Thanks, Isaac.
2022-05-25 09:33:56 +03:00
1c58980010 skip failing test 2022-05-25 06:43:30 +03:00
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
4f2c8707f4 wip _nss_turbo_getpwuid_r 2022-04-21 09:30:39 +03:00
ee603c47ca wip so 2022-04-20 13:13:57 +03:00
1a01175c46 cmph may return a larger hash than there are items. 2022-04-20 06:08:07 +03:00
2205d6c4b2 wip State.zig 2022-04-20 05:41:30 +03:00
473e75a3f9 sentinel tests 2022-04-19 14:11:05 +03:00
bc7a7a0350 getpwuid 2022-04-19 13:54:21 +03:00
7d4623411f finish getpwnam 2022-04-19 13:28:38 +03:00
4469d174ea wip getpwnam 2022-04-19 13:17:23 +03:00
9e80d6676b move CGroup to Group 2022-04-19 10:46:02 +03:00
be9bf3f51c CGroup is extern struct 2022-04-19 10:42:24 +03:00
70120051c8 members is a pointer now 2022-04-19 10:34:40 +03:00
ce827a9ae6 CGroup.name is [*]u8 now 2022-04-19 10:24:32 +03:00
3eeb0a8332 getgrgid 2022-04-19 10:08:37 +03:00
d4ba5a9a58 Add CGroupPtr 2022-04-19 07:18:41 +03:00
3c507ffe08 pointer size checker 2022-04-19 06:11:37 +03:00
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
c6bd3f5cb8 storing getgr_max and getpw_max 2022-04-18 13:11:20 +03:00
71f5284399 wip: getgr_max and getpw_max 2022-04-18 11:15:14 +03:00
130aea7cf5 complete the test for getgrnam 2022-04-18 06:57:34 +03:00