coccigrep-1.21p1
semantic grep, based on coccinelle
Back to search · Project homepage
Description
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.
- find where struct bpf_program is used:
coccigrep -t 'struct bpf_program' *c
- find where bf_len in struct bpf_program is used:
coccigrep -t 'struct bpf_program' -a bf_len *c
- find where bf_len in struct bpf_program is *set*:
coccigrep -t 'struct bpf_program' -a bf_len -o set *c
Package information
- Ports path
- devel/coccigrep
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, textproc, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel