man.bsd.lv manual page server

Manual Page Search Parameters

CDEFS(3) Library Functions Manual CDEFS(3)

cdefscommon definitions and macros

#include <sys/cdefs.h>

The <sys/cdefs.h> header includes some common definitions and macros typical to the C language conventions of NetBSD. Among these are:

The header also contains the () and () macros used for version control system (VCS) identifiers. Thus, all NetBSD source code files typically include <sys/cdefs.h>, included as the first thing right after any possible copyright texts;

/*-
 * Copyright (c) 1984 John Doe
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
 * with or without modification, are permitted.
 */

#include <sys/cdefs.h>
__RCSID("$NetBSD: cdefs.3,v 1.4 2013/10/27 10:05:15 apb Exp $");

It is possible to identify the RCS keyword strings by using ident(1).

ident(1), param(3), stddef(3), types(3), c(7)

The <sys/cdefs.h> header was originally imported from 386BSD.

April 8, 2011 NetBSD-9.2