Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> "Sighandler_t Typedef" Header
toby
post Jan 5 2008, 12:42 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 443
Joined: 29-September 06
Member No.: 16,228



I've been told to look for the "sighandler_t typedef" header, the correct file (signal.h) exists where it should be, but I don't get grep results, which is probably due to my dumbness. Any suggests for grep commands or which header?
Go to the top of the page
 
+Quote Post
yordan
post Jan 30 2008, 09:52 AM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,919
Joined: 16-August 05
Member No.: 7,896



If you know the full path for the signal.h file (mine is /usr/include/sys/signal.h) use grep this way :
CODE
grep -i sighandler /usr/include/sys/signal.h

Another slightly more complicated way would be to do :
CODE
set -x
for i in `find  / -print | grep signal.h`
do
grep -i sighandler $i
done
set +x

First try the first way, to test your grep skills.
The second way is a funny way.
"set -x" makes the shell to be verbose, issuing each grep command.
the "find" generates the full path for each file named "something.essai.h" and gives it to the $i variable
The "grep" finds the "sighandler" string in the config.h file.
I use this more sophisticated way because there may be several signal.h on your system.
In mine, they are :
QUOTE
# find /usr -print |grep signal.h
/usr/include/signal.h
/usr/include/sys/m_signal.h
/usr/include/sys/signal.h


Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Question About Embedding Flash Object Header(2)
  2. A New Blend - Fansite Header Of The Band East 146(5)
  3. Need Help With PHP -> HTML Header(5)
  4. Vertical Text In Datagridview Column Header(6)
  5. How To Embed Ram File Produced By Http Header(2)
  6. Smf Theme Creation Help(13)
  7. PHP-Nuke Header Question(2)
  8. How To Get The Random.h Header(4)
  9. Tutorial: Build Pure CSS Using Online Tools - Part 1(6)
  10. Help: Removing A Specific Header With cURL(0)
  11. Using Blogger To Add Content(9)
  12. Php Location Header No Send Session Id ?(0)


 



- Lo-Fi Version Time is now: 24th July 2008 - 12:15 PM