Page MenuHomeFreeBSD

kfv (Faraz Vahedi)
User

Projects

User Details

User Since
Jun 14 2019, 6:43 AM (378 w, 1 d)

Recent Activity

Today

kfv accepted D56637: dhclient(8): Add support for IPv6-Only option (RFC 8925).

Looks good to me now. Thanks!

Sat, Sep 12, 4:25 PM
kfv accepted D59589: website: Restore "The Power to Serve" on homepage.
Sat, Sep 12, 3:02 PM
kfv requested review of D59612: libc: Preserve const qualifier on strchr(3), strrchr(3), and memchr(3) results.
Sat, Sep 12, 11:43 AM
kfv requested review of D59611: libc: Preserve const qualifier on bsearch(3) results in tests.
Sat, Sep 12, 11:26 AM
kfv added a comment to D59600: libc: Parenthesise qualifier-preserving function definitions.

I wasn't planning to include a description in the commit body, but perhaps a brief explanation like the one above would be useful?

Sat, Sep 12, 10:12 AM
kfv added a comment to D59600: libc: Parenthesise qualifier-preserving function definitions.

This is required to prevent function-like macros with the same name from being expanded in the definitions once they become active in a later C mode. Without the parentheses, the declarator is rewritten and will not compile. This style is used for similar cases such as mempcpy() too.

Sat, Sep 12, 10:08 AM
kfv added a comment to D56637: dhclient(8): Add support for IPv6-Only option (RFC 8925).

Diff 7/8 looks good on the INIT-REBOOT RELEASE/disassoc path, but ignore ipv6only doesn't seem to be a real opt-out.

Sat, Sep 12, 1:06 AM

Yesterday

kfv requested review of D59600: libc: Parenthesise qualifier-preserving function definitions.
Fri, Sep 11, 9:40 PM

Thu, Sep 10

kfv accepted D56637: dhclient(8): Add support for IPv6-Only option (RFC 8925).

Same here, I’ve been testing it for a while now, and it has my approval as well. Thanks a lot for all the effort, Pouria!

Thu, Sep 10, 5:38 PM
kfv committed rGc63b69f82a74: libjail: Preserve const qualifier on strchr(3) and strrchr(3) results (authored by kfv).
libjail: Preserve const qualifier on strchr(3) and strrchr(3) results
Thu, Sep 10, 11:10 AM
kfv closed D59553: libjail: Preserve const qualifier on strchr(3) and strrchr(3) results.
Thu, Sep 10, 11:10 AM
kfv requested review of D59553: libjail: Preserve const qualifier on strchr(3) and strrchr(3) results.
Thu, Sep 10, 12:00 AM

Tue, Sep 8

kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Drop sizeof(mbstate_t) - sizeof(_Char8State) >= 64 for now

Tue, Sep 8, 9:18 PM
kfv added inline comments to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.
Tue, Sep 8, 9:16 PM
kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Mark review comment on _Mbrtoc8Extra as done, as it is no longer applicable following the changes that were implemented.

Tue, Sep 8, 8:52 PM
kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Rename _C8rtombExtra to _Char8State for consistency

Tue, Sep 8, 8:45 PM
kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Mark several review notes as resolved: Björn Höhrmann’s DFA implementation, __cpp_char8_t rationale, u8'\0' clarification, c8rtomb licensing, data type improvements, the states enum, urtf8d table formatting, and unit test improvements.

Tue, Sep 8, 6:38 PM
kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Thanks for your notes! Sure, I’ll keep them in mind and take care of those herein in a minute.

Tue, Sep 8, 6:13 PM
kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Address the remaining review points

Tue, Sep 8, 11:25 AM
kfv added inline comments to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.
Tue, Sep 8, 11:22 AM
kfv added inline comments to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.
Tue, Sep 8, 11:09 AM
kfv accepted D59462: lib/msun amd64: use AVX FMA instructions for fma(3) and fmaf(3) when available.
Tue, Sep 8, 9:13 AM
kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Address the three promised review points

Tue, Sep 8, 8:19 AM
kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Sorry if I made some modifications to what you sent me via email. I actually thought I was allowed to, as it isn't finalised yet and we're working through it together. I'm just trying to make sure we're not rushing things and that we're on the same page as we go along, for future maintenance and stuff we'd be working on together. I certainly don't mean to be rude or inattentive. Also, thank you for putting so much time and effort into reviewing everything, explaining things, and discussing it all with me, and being this much receptive and kind throughout. I really appreciate it.

Tue, Sep 8, 7:58 AM

Mon, Sep 7

kfv accepted D59474: jib, jng: Move to usr.sbin and add manuals.

Nice move. Thanks!

Mon, Sep 7, 7:25 PM · Netgraph
kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Default MK_ICONV=yes now runs mbrtoc8/c8rtomb through Citrus like c16/c32, and unsurprisingly, we now inherit its bugs as a result: null s resets, ill-formed input often comes back as (size_t)-2, 5-/6-byte UTF-8 (as with RFC 2279 §2—obsoleted by RFC 3629 §3) and values above U+10FFFF are accepted, U+FEFF fails, and each mbstate_t leaks. Those need an iconv fix, though, so not c8 special cases. FWIW, WITHOUT_ICONV c8rtomb stays C23 in (c8rtomb.c / mbrtoc8.c), and mbrtoc8 matches mbrtoc16.

Mon, Sep 7, 4:27 PM

Sun, Sep 6

kfv accepted D59462: lib/msun amd64: use AVX FMA instructions for fma(3) and fmaf(3) when available.

Brilliant work. Thanks!

Sun, Sep 6, 8:33 PM
kfv committed rGf66c8680e804: look(1): Capsicumise (authored by kfv).
look(1): Capsicumise
Sun, Sep 6, 7:51 AM

Sat, Sep 5

kfv committed rG72ed6f9c9dc9: libc: Add WCHAR_WIDTH in <wchar.h> as well (authored by kfv).
libc: Add WCHAR_WIDTH in <wchar.h> as well
Sat, Sep 5, 10:49 AM
kfv closed D59385: libc: Add WCHAR_WIDTH in <wchar.h> as well.
Sat, Sep 5, 10:49 AM
kfv updated the summary of D59385: libc: Add WCHAR_WIDTH in <wchar.h> as well.
Sat, Sep 5, 10:44 AM
kfv committed rG733ea4ee584d: libc: Add <inttypes.h> C23 feature test macro (authored by kfv).
libc: Add <inttypes.h> C23 feature test macro
Sat, Sep 5, 8:32 AM
kfv closed D59382: libc: Add <inttypes.h> C23 feature test macro.
Sat, Sep 5, 8:31 AM
kfv added a comment to D59382: libc: Add <inttypes.h> C23 feature test macro.

Thanks, Robert! Sure, I will do.

Sat, Sep 5, 8:25 AM

Fri, Sep 4

kfv updated the diff for D59385: libc: Add WCHAR_WIDTH in <wchar.h> as well.

Move __WCHAR_WIDTH into sys/sys/_types.h

Fri, Sep 4, 1:01 PM
kfv added a comment to D59385: libc: Add WCHAR_WIDTH in <wchar.h> as well.

If the size is the same on all platforms, it should not be in the platform-specific _types.h files.

Fri, Sep 4, 12:50 PM
kfv requested review of D59385: libc: Add WCHAR_WIDTH in <wchar.h> as well.
Fri, Sep 4, 9:59 AM
kfv updated the summary of D59382: libc: Add <inttypes.h> C23 feature test macro.
Fri, Sep 4, 2:57 AM
kfv requested review of D59382: libc: Add <inttypes.h> C23 feature test macro.
Fri, Sep 4, 2:57 AM
kfv accepted D59350: ng_bridge(4): do not move a host on a reflected transmit.

Excellent work on this. Thanks!

Fri, Sep 4, 12:21 AM · Netgraph

Thu, Sep 3

kfv accepted D59052: vtnet: offer VIRTIO_NET_F_GUEST_CSUM independently of RXCSUM.

Looks good to me. Thanks!

Thu, Sep 3, 2:05 PM

Wed, Sep 2

kfv committed rGd8b6461f8c56: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23 (authored by kfv).
libm: Implement femode_t, fegetmode(), and fesetmode() as per C23
Wed, Sep 2, 11:40 PM
kfv closed D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.
Wed, Sep 2, 11:39 PM
kfv added a comment to D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.
In D59288#1360867, @fuz wrote:

Approved for commit following @kib's review. I did not review the code, so only Approved by from me please.

Wed, Sep 2, 10:52 PM
kfv committed rGab420c44bc7c: libc: Add PRIb*, PRIB*, and SCNb* macros as per C23 (authored by kfv).
libc: Add PRIb*, PRIB*, and SCNb* macros as per C23
Wed, Sep 2, 3:01 PM
kfv closed D59293: libc: Add PRIb*, PRIB*, and SCNb* macros as per C23.
Wed, Sep 2, 3:00 PM

Tue, Sep 1

kfv updated the diff for D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.

Add new symbols in alphabetical order and apply @kib's fenv.3 suggestion

Tue, Sep 1, 3:29 PM
kfv added a comment to D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.

Is it reasonable to provide the inline versions of these methods for complicated cases, like x86? Could it be always a function call?

Tue, Sep 1, 3:22 PM
kfv updated the diff for D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.

Address @kib's inline comments

Tue, Sep 1, 12:40 AM
kfv added inline comments to D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.
Tue, Sep 1, 12:15 AM

Mon, Aug 31

kfv requested review of D59293: libc: Add PRIb*, PRIB*, and SCNb* macros as per C23.
Mon, Aug 31, 11:11 PM
kfv added reviewers for D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23: kib, andy, jhibbits, jrtc27.

This should be reviewed by kib, andy (for ARM), jrtc27 (for riscv64), jhibbits (for ppc), and kargl (for msun).

Mon, Aug 31, 6:13 PM
kfv requested review of D59288: libm: Implement femode_t, fegetmode(), and fesetmode() as per C23.
Mon, Aug 31, 12:51 PM

Sun, Aug 30

kfv accepted D59272: libc: Fix C23 version macro visibility.
Sun, Aug 30, 3:22 PM
kfv updated the diff for D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

Document mbrtoc8() and c8rtomb() functions

Sun, Aug 30, 2:54 PM

Fri, Aug 28

kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

This seems to be correct at first glance, but I think it can be greatly simplified and improved in performance.. I did a lot of research on Unicode validation and transcoding and had originally meant to take a stab at this function, but then forgot about it.

I'll think about it some more and then let you know what I came up with.

Fri, Aug 28, 1:41 PM

Thu, Aug 27

kfv added a comment to D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.

I’ll take care of manpages in the coming days.

Thu, Aug 27, 1:22 PM
kfv requested review of D59213: libc: Implement mbrtoc8() and c8rtomb() as per C23.
Thu, Aug 27, 1:18 PM

Mon, Aug 24

kfv committed rG4aeed6e9d213: libc: Add <setjmp.h> C23 feature test macro (authored by kfv).
libc: Add <setjmp.h> C23 feature test macro
Mon, Aug 24, 1:50 PM
kfv committed rGfc9d02cb29ed: libc: Add <time.h> C23 feature test macro (authored by kfv).
libc: Add <time.h> C23 feature test macro
Mon, Aug 24, 1:50 PM
kfv closed D59135: libc: Add <setjmp.h> C23 feature test macro.
Mon, Aug 24, 1:50 PM
kfv closed D59134: libc: Add <time.h> C23 feature test macro.
Mon, Aug 24, 1:50 PM
kfv committed rG2712d1380fcd: libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__ (authored by kfv).
libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__
Mon, Aug 24, 1:21 PM
kfv closed D59136: libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__.
Mon, Aug 24, 1:21 PM
kfv added a comment to D59136: libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__.

Sure!

Mon, Aug 24, 1:09 PM
kfv added a comment to D59134: libc: Add <time.h> C23 feature test macro.

Sure thing. I'll take care of it.

Mon, Aug 24, 1:04 PM

Sun, Aug 23

kfv updated the summary of D59136: libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__.
Sun, Aug 23, 11:33 PM
kfv requested review of D59136: libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__.
Sun, Aug 23, 11:32 PM
kfv updated the summary of D59135: libc: Add <setjmp.h> C23 feature test macro.
Sun, Aug 23, 11:19 PM
kfv updated the summary of D59134: libc: Add <time.h> C23 feature test macro.
Sun, Aug 23, 11:18 PM
kfv updated the summary of D59134: libc: Add <time.h> C23 feature test macro.
Sun, Aug 23, 11:18 PM
kfv requested review of D59135: libc: Add <setjmp.h> C23 feature test macro.
Sun, Aug 23, 11:17 PM
kfv added reviewers for D59134: libc: Add <time.h> C23 feature test macro: dteske, fuz.
Sun, Aug 23, 11:07 PM
kfv requested review of D59134: libc: Add <time.h> C23 feature test macro.
Sun, Aug 23, 11:06 PM

Sat, Aug 22

kfv committed rGd59c7ea2701f: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests (authored by kfv).
libc: Implement bsearch_s(), document bsearch_b(), and add unit tests
Sat, Aug 22, 3:05 PM
kfv closed D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.
Sat, Aug 22, 3:04 PM
kfv added a comment to D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.

Thanks a lot for your notes, Devin. I can see it much more clearly now, and I understand why 1:1 is the preferred approach. I’ve just updated the summary with the message for the squashed commit, and I’ll push my changes shortly.

Sat, Aug 22, 1:38 PM
kfv retitled D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests from libc: Implement bsearch_s(), document bsearch_b(), and add rudimentary unit tests to libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.
Sat, Aug 22, 1:33 PM

Fri, Aug 21

kfv added a comment to D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.

I do have some questions about the summary on this review though. Seeing 3 separate commit sections, how do you intend to commit this?

Fri, Aug 21, 12:33 AM

Thu, Aug 20

kfv accepted D58538: netstat(1): Add nexthop statistics support with -os flag.

Looks good to me. Thanks!

Thu, Aug 20, 9:32 PM
kfv requested changes to D58538: netstat(1): Add nexthop statistics support with -os flag.
Thu, Aug 20, 7:05 PM
kfv updated the summary of D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.
Thu, Aug 20, 1:59 PM
kfv updated the diff for D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.

Update commit messages

Thu, Aug 20, 1:58 PM
kfv updated the diff for D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.

Address @fuz comments

Thu, Aug 20, 1:54 PM
kfv accepted D59032: New version of jng (9.2).
Thu, Aug 20, 9:20 AM · Netgraph

Wed, Aug 19

kfv retitled D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests from bsearch.3: Document bsearch_b extension to libc: Implement bsearch_s(), document bsearch_b(), and add rudimentary unit tests .
Wed, Aug 19, 8:16 PM
kfv updated the summary of D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.
Wed, Aug 19, 8:14 PM
kfv updated the diff for D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.
  • bsearch.3: Document bsearch_b extension
  • libc: Add bsearch_s() from Annex K
  • libc: Add tests for bsearch(), bsearch_b(), and bsearch_s()
Wed, Aug 19, 8:09 PM
kfv accepted D58573: linux: Add STF type and convert some if_type to ARPHRD.
Wed, Aug 19, 7:05 PM
kfv accepted D58573: linux: Add STF type and convert some if_type to ARPHRD.

Looks good to me, but while you're here, could we also map IFT_LOOP -> LINUX_ARPHRD_LOOPBACK so a Linux ip link show lo under the linuxulator does not look like FireWire? The constant already exists. Fine as a follow-up if you want to keep this patch to bridge/vlan/stf.

Wed, Aug 19, 6:51 PM
kfv accepted D58066: Add sysconf(8) and libbsdconf(3).
Wed, Aug 19, 11:58 AM
kfv accepted D58939: New version of jng (9.1).

Looks good to me. Thanks!

Wed, Aug 19, 11:09 AM · Netgraph
kfv committed rG8d29d2429649: libc: Restore prior C23 include guards (authored by kfv).
libc: Restore prior C23 include guards
Wed, Aug 19, 10:24 AM
kfv closed D58911: libc: Restore prior C23 include guards.
Wed, Aug 19, 10:24 AM

Tue, Aug 18

kfv accepted D58903: New version of jng (9.0).

It's brilliant. Cheers!.

Tue, Aug 18, 5:54 PM
kfv added a comment to D58911: libc: Restore prior C23 include guards.

Sure, thanks!

Tue, Aug 18, 1:06 PM
kfv updated the summary of D58911: libc: Restore prior C23 include guards.
Tue, Aug 18, 12:41 PM
kfv requested review of D58911: libc: Restore prior C23 include guards.
Tue, Aug 18, 12:32 PM

Mon, Aug 17

kfv added a comment to D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests.

The bsearch_b documentation is handled in a separate commit. It displays correctly for me here in Phabricator, but I’ll shortly update the description with the proposed commit messages, as we’ve agreed to use that convention to make reviews easier and clearer. And as for the tests, sure, I’m working on it; I do my best to submit the commit by tonight.

Mon, Aug 17, 2:09 PM

Sun, Aug 16

kfv published D58876: libc: Implement bsearch_s(), document bsearch_b(), and add unit tests for review.
Sun, Aug 16, 9:46 PM