|
|
|
|
![]() ![]() |
Jan 5 2008, 12:42 PM
Post
#1
|
|
|
Premium Member 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?
|
|
|
|
Jan 30 2008, 09:52 AM
Post
#2
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 1,921 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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 24th July 2008 - 02:16 PM |