Jump to content
xisto Community

"Sighandler_t Typedef" Header

Recommended Posts

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?

Share this post

Link to post
Share on other sites

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

grep -i sighandler /usr/include/sys/signal.h
Another slightly more complicated way would be to do :
set -xfor i in `find  / -print | grep signal.h`dogrep -i sighandler $idoneset +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 :

# find /usr -print |grep signal.h/usr/include/signal.h

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.