compat_level.h revision 1.2
1/* $NetBSD: compat_level.h,v 1.2 2022/10/08 16:12:45 christos Exp $ */ 2 3#ifndef _COMPAT_LEVEL_H_INCLUDED_ 4#define _COMPAT_LEVEL_H_INCLUDED_ 5 6/*++ 7/* NAME 8/* compat_level 3h 9/* SUMMARY 10/* compatibility_level support 11/* SYNOPSIS 12/* #include <compat_level.h> 13/* DESCRIPTION 14/* .nf 15 16 /* 17 * External interface. 18 */ 19extern void compat_level_relop_register(void); 20extern long compat_level_from_string(const char *, 21 void PRINTFLIKE(1, 2) (*) (const char *,...)); 22extern long compat_level_from_numbers(long, long, long, 23 void PRINTFLIKE(1, 2) (*) (const char *,...)); 24extern const char *compat_level_to_string(long, 25 void PRINTFLIKE(1, 2) (*) (const char *,...)); 26 27#define compat_level_from_major(major, msg_fn) \ 28 compat_level_from_major_minor((major), 0, (msg_fn)) 29#define compat_level_from_major_minor(major, minor, msg_fn) \ 30 compat_level_from_numbers((major), (minor), 0, (msg_fn)) 31 32# 33 34/* LICENSE 35/* .ad 36/* .fi 37/* The Secure Mailer license must be distributed with this software. 38/* AUTHOR(S) 39/* Wietse Venema 40/* Google, Inc. 41/* 111 8th Avenue 42/* New York, NY 10011, USA 43/*--*/ 44 45#endif 46