LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-27-2007, 11:46 PM   #1
yhus
Member
 
Registered: May 2004
Posts: 74

Rep: Reputation: 15
Header file for struct ifstats


Hi,

Which header file contains struct ifstats and SIOCGIFSTATS? I searched from google, but could not find it.

In general, how can I set a program manual in my Debian box to search and find all library functions as well as structs by man?

Thank you.

Jim
 
Old 12-28-2007, 07:59 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,992

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
Searching through /usr/doc, there are two mentions of "ifstats:"
Code:
/usr/doc/iptraf-3.0.0/CHANGES
/usr/doc/ntp-4.2.4p0/html/ntpdc.html
Might be worth looking through the source code for these? IPtraf (found at http://iptraf.seul.org); these files contain ifstats:
Code:
./iptraf-3.0.0/src/Makefile
./iptraf-3.0.0/src/log.c
./iptraf-3.0.0/src/ifstats.c
./iptraf-3.0.0/src/ifstats.h
./iptraf-3.0.0/src/iptraf.c
./iptraf-3.0.0/src/externs.h
./iptraf-3.0.0/src/promisc.c
./iptraf-3.0.0/CHANGES
I usually stat with /usr/doc and do something like
Code:
find . -type f -print | xargs fgrep -l ifstats
then look at any files that pop up; now, that ain't always going to do it but it's usually a good place to start...
 
  


Reply

Tags
file, header


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
struct reading and writing to file ilnli Programming 8 08-20-2007 09:54 AM
Problem with extern struct object, in header file. Undefined type. RHLinuxGUY Programming 7 07-24-2006 12:01 AM
g++ and wrong struct member addresses / struct size misreporting sonajiso Linux - General 5 05-22-2004 10:16 PM
switch statement converting struct char to struct int oceaneyes2 Programming 2 12-10-2003 04:30 PM
using struct type X as pointer in struct X. worldmagic Programming 1 10-28-2003 02:06 PM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration