Re: To get net ioctl number

2019-02-28 Thread Kamil Rytarowski
On 28.02.2019 08:24, Iain Hibbert wrote: > On Thu, 28 Feb 2019, Masanobu SAITOH wrote: > >> I'd like to get new number for new ioctl. How should I find unused number >> for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h, >> so I made usr.bin/kdump-ioctl.c and did >> >>

Re: To get net ioctl number

2019-02-28 Thread Masanobu SAITOH
On 2019/02/28 16:54, matthew green wrote: Iain Hibbert writes: On Thu, 28 Feb 2019, Masanobu SAITOH wrote: I'd like to get new number for new ioctl. How should I find unused number for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h, so I made usr.bin/kdump-ioctl.c an

re: To get net ioctl number

2019-02-27 Thread matthew green
Iain Hibbert writes: > On Thu, 28 Feb 2019, Masanobu SAITOH wrote: > > > I'd like to get new number for new ioctl. How should I find unused number > > for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h, > > so I made usr.bin/kdump-ioctl.c and did > > > > grep \'i kdu

Re: To get net ioctl number

2019-02-27 Thread Iain Hibbert
On Thu, 28 Feb 2019, Masanobu SAITOH wrote: > I'd like to get new number for new ioctl. How should I find unused number > for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h, > so I made usr.bin/kdump-ioctl.c and did > > grep \'i kdump-ioctl.c | sort -n -k 5,5 | uni

re: To get net ioctl number

2019-02-27 Thread matthew green
> This might be FAQ... > > I'd like to get new number for new ioctl. How should I find unused number > for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h, > so I made usr.bin/kdump-ioctl.c and did > > grep \'i kdump-ioctl.c | sort -n -k 5,5 | uniq | column -t >