Saturday, July 08, 2017

Re: A question of lock usage in OpenBSD kernel code

On Fri, Jul 07, 2017 at 10:02:44PM -0400, Ted Unangst wrote:
> J Doe wrote:
> > Ok, thank you for clarifying that for me. I will proceed with development in C. As an aside - do OpenBSD developers track with the latest standard (C11), or is another standard preferred ?
>
> mostly c89. in particular, don't mix code and declarations.

Rather C99.

In particular, you can take advantage of stdint.h and inttypes.h which means
consistent numeric type names, and %zu for printing out size_t instead
of dangerous casts.

No comments:

Post a Comment