Deleted Added
full compact
mksubr (216130) mksubr (222768)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/usr.bin/kdump/mksubr 216130 2010-12-02 18:24:22Z delphij $
3# $FreeBSD: head/usr.bin/kdump/mksubr 222768 2011-06-06 19:00:38Z dchagin $
4#
5# Generates kdump_subr.c
6# mkioctls is a special-purpose script, and works fine as it is
7# now, so it remains independent. The idea behind how it generates
8# its list was heavily borrowed here.
9#
10# Some functions here are automatically generated. This can mean
11# the user will see unusual kdump output or errors while building

--- 328 unchanged lines hidden (view full) ---

340auto_switch_type "lio_listioname" "LIO_(NO)?WAIT[[:space:]]+[0-9]+" "aio.h"
341auto_switch_type "minheritname" "INHERIT_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
342auto_switch_type "quotactlname" "Q_[A-Z]+[[:space:]]+0x[0-9]+" "ufs/ufs/quota.h"
343auto_if_type "sockdomainname" "PF_[[:alnum:]]+[[:space:]]+" "sys/socket.h"
344auto_if_type "sockfamilyname" "AF_[[:alnum:]]+[[:space:]]+" "sys/socket.h"
345auto_if_type "sockipprotoname" "IPPROTO_[[:alnum:]]+[[:space:]]+" "netinet/in.h"
346auto_switch_type "sockoptname" "SO_[A-Z]+[[:space:]]+0x[0-9]+" "sys/socket.h"
347auto_switch_type "socktypename" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h"
4#
5# Generates kdump_subr.c
6# mkioctls is a special-purpose script, and works fine as it is
7# now, so it remains independent. The idea behind how it generates
8# its list was heavily borrowed here.
9#
10# Some functions here are automatically generated. This can mean
11# the user will see unusual kdump output or errors while building

--- 328 unchanged lines hidden (view full) ---

340auto_switch_type "lio_listioname" "LIO_(NO)?WAIT[[:space:]]+[0-9]+" "aio.h"
341auto_switch_type "minheritname" "INHERIT_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
342auto_switch_type "quotactlname" "Q_[A-Z]+[[:space:]]+0x[0-9]+" "ufs/ufs/quota.h"
343auto_if_type "sockdomainname" "PF_[[:alnum:]]+[[:space:]]+" "sys/socket.h"
344auto_if_type "sockfamilyname" "AF_[[:alnum:]]+[[:space:]]+" "sys/socket.h"
345auto_if_type "sockipprotoname" "IPPROTO_[[:alnum:]]+[[:space:]]+" "netinet/in.h"
346auto_switch_type "sockoptname" "SO_[A-Z]+[[:space:]]+0x[0-9]+" "sys/socket.h"
347auto_switch_type "socktypename" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h"
348auto_switch_type "ptraceopname" "PT_[[:alnum:]]+[[:space:]]+[0-9]+" "sys/ptrace.h"
348auto_switch_type "ptraceopname" "PT_[[:alnum:]_]+[[:space:]]+[0-9]+" "sys/ptrace.h"
349
350cat <<_EOF_
351/*
352 * AUTO - Special
353 * F_ is used to specify fcntl commands as well as arguments. Both sets are
354 * grouped in fcntl.h, and this awk script grabs the first group.
355 */
356void

--- 96 unchanged lines hidden ---
349
350cat <<_EOF_
351/*
352 * AUTO - Special
353 * F_ is used to specify fcntl commands as well as arguments. Both sets are
354 * grouped in fcntl.h, and this awk script grabs the first group.
355 */
356void

--- 96 unchanged lines hidden ---