b3d01a2ad7
* Use `MIN` instead of similar hand rolled macro. * Sort headers. * Use `errno.h` instead of `sys/errno.h`. * Wrap the argument to sizeof in parentheses for clarity. * Remove `__BSD_VISIBLE` and `_XOPEN_SOURCE` #defines to mute warnings about incompatible snprintf definitions. This fixes a number of warnings I've been seeing lately in my builds. Sort makefile variables per style.Makefile(9) (`CFLAGS`/`CWARNFLAG.gcc`) and bump `WARNS` to 3. MFC after: 2 weeks Reviewed by: jtl Approved by: jtl (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D19851
15 lines
333 B
C
15 lines
333 B
C
/* $FreeBSD$ */
|
|
#ifndef JEVENTS_H
|
|
#define JEVENTS_H 1
|
|
|
|
int json_events(const char *fn,
|
|
int (*func)(void *data, char *name, const char *event, char *desc,
|
|
char *long_desc,
|
|
char *pmu,
|
|
char *unit, char *perpkg, char *metric_expr,
|
|
char *metric_name, char *metric_group),
|
|
void *data);
|
|
char *get_cpu_str(void);
|
|
|
|
#endif
|