sthen 6195f2b398 import ports/devel/coccigrep, ok jasper@
coccigrep is a semantic grep for the C language based on coccinelle.
It can be used to find where a given structure is used in code files.
coccigrep depends on the spatch program which comes with coccinelle.

quick contrived example to find lines referencing m_len of a struct
mbuf, regardless of actual variable name:

$ coccigrep -t "struct mbuf" -a m_len /sys/netinet/ip_*.c
2011-09-15 20:20:06 +00:00
2011-09-15 08:46:37 +00:00
2011-09-13 14:13:45 +00:00
2011-07-08 10:04:51 +00:00
2011-08-24 19:29:24 +00:00
2011-04-10 06:52:41 +00:00
2011-09-15 15:20:37 +00:00
2011-09-12 16:47:21 +00:00
2011-09-15 13:27:09 +00:00
2011-07-19 09:28:36 +00:00
2011-09-12 12:50:24 +00:00
2011-09-15 08:17:04 +00:00
2011-09-15 17:17:29 +00:00
2010-11-20 09:48:38 +00:00
2011-08-18 08:04:03 +00:00
2011-09-13 07:50:51 +00:00
2011-06-22 11:41:35 +00:00
2011-09-15 09:05:22 +00:00
2011-09-15 16:31:54 +00:00
2011-09-15 16:09:19 +00:00
2011-07-19 09:28:52 +00:00

Documentation for the ports tree: ports(7), packages(7), mirroring-ports(7),
library-specs(7), bsd.port.mk(5), port-modules(5).

See also the OpenBSD Porter's Handbook http://www.openbsd.org/faq/ports/

$OpenBSD: README,v 1.19 2010/08/31 03:28:43 lum Exp $
Description
Public git conversion mirror of OpenBSD's official cvs ports repository. Pull requests not accepted - send diffs to the ports@ mailing list.
Readme 554 MiB
Languages
Makefile 61%
PHP 18.9%
Perl 6.5%
C 4.6%
HTML 2.3%
Other 6.4%