No.

"So at minimum, the leading _"...


Klemens Nanni <k...@openbsd.org> wrote:

> On Sun, Jun 07, 2020 at 09:58:44AM -0600, Theo de Raadt wrote:
> > Bad naming.  The correct protection is visible in others in the same
> > directory, most of them doing it better.
> > 
> > audio_if.h:#ifndef _SYS_DEV_AUDIO_IF_H_
> > ipmi.h:#ifndef _IPMI_H_
> > ipmivar.h:#ifndef _IPMIVAR_H_
> > midi_if.h:#ifndef _SYS_DEV_MIDI_IF_H_
> > midivar.h:#ifndef _SYS_DEV_MIDIVAR_H_
> > radio_if.h:#ifndef _SYS_DEV_RADIO_IF_H
> > radiovar.h:#ifndef _SYS_DEV_RADIOVAR_H
> > rndis.h:#ifndef _DEV_RNDIS_H_
> > softraidvar.h:#ifndef SOFTRAIDVAR_H
> > video_if.h:#ifndef _SYS_DEV_VIDEO_IF_H
> > vndioctl.h:#ifndef _SYS_VNDIOCTL_H_
> > vscsivar.h:#ifndef _SYS_DEV_VSCSIVAR_H
> Thanks, I picked softraidvar.h to adapt from...
> 
> > So at minimum, the leading _, but the directory name and _H_ at end
> > is also common.
> Sure.
> 
> Should we do SOFTRAIDVAR_H -> _SYS_DEV_SOFTRAIDVAR_H_ as well?
> 
> 
> Index: biovar.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/biovar.h,v
> retrieving revision 1.45
> diff -u -p -r1.45 biovar.h
> --- biovar.h  14 Aug 2016 04:08:03 -0000      1.45
> +++ biovar.h  7 Jun 2020 16:28:16 -0000
> @@ -26,6 +26,9 @@
>   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>   */
>  
> +#ifndef _SYS_DEV_BIOVAR_H_
> +#define _SYS_DEV_BIOVAR_H_
> +
>  /*
>   * Devices getting ioctls through this interface should use ioctl class 'B'
>   * and command numbers starting from 32, lower ones are reserved for generic
> @@ -305,3 +308,5 @@ void      bio_info(struct bio_status *, int, 
>  void bio_warn(struct bio_status *, int, const char *, ...);
>  void bio_error(struct bio_status *, int, const char *, ...);
>  #endif
> +
> +#endif /* _SYS_DEV_BIOVAR_H_ */
> 

Reply via email to