Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

unw_is_signal_frame(3) [debian man page]

UNW_IS_SIGNAL_FRAME(3)					       Programming Library					    UNW_IS_SIGNAL_FRAME(3)

NAME
unw_is_signal_frame -- check if current frame is a signal frame SYNOPSIS
#include <libunwind.h> int unw_is_signal_frame(unw_cursor_t *cp); DESCRIPTION
The unw_is_signal_frame() routine returns a positive value if the current frame identified by cp is a signal frame, and a value of 0 other- wise. For the purpose of this discussion, a signal frame is a frame that was created in response to a potentially asynchronous interrup- tion. For UNIX and UNIX-like platforms, such frames are normally created by the kernel when delivering a signal. In a kernel-environment, a signal frame might, for example, correspond to a frame created in response to a device interrupt. Signal frames are somewhat unusual because the asynchronous nature of the events that create them require storing the contents of registers that are normally treated as scratch (``caller-saved'') registers. RETURN VALUE
On successful completion, unw_is_signal_frame() returns a positive value if the current frame is a signal frame, or 0 if it is not. Other- wise, a negative value of one of the error-codes below is returned. THREAD AND SIGNAL SAFETY
unw_is_signal_frame() is thread-safe as well as safe to use from a signal handler. ERRORS
UNW_ENOINFO Libunwind is unable to determine whether or not the current frame is a signal frame. SEE ALSO
libunwind(3), unw_get_reg(3), unw_set_reg(3), unw_get_fpreg(3), unw_set_fpreg(3) AUTHOR
David Mosberger-Tang Email: dmosberger@gmail.com WWW: http://www.nongnu.org/libunwind/. Programming Library 16 August 2007 UNW_IS_SIGNAL_FRAME(3)

Check Out this Related Man Page

UNW_STEP(3)						       Programming Library						       UNW_STEP(3)

NAME
unw_step -- advance to next stack frame SYNOPSIS
#include <libunwind.h> int unw_step(unw_cursor_t *cp); DESCRIPTION
The unw_step() routine advances the unwind cursor cp to the next older, less deeply nested stack frame. RETURN VALUE
On successful completion, unw_step() returns a positive value if the updated cursor refers to a valid stack frame, or 0 if the previous stack frame was the last frame in the chain. On error, the negative value of one of the error-codes below is returned. THREAD AND SIGNAL SAFETY
unw_step() is thread-safe. If cursor cp is in the local address-space, this routine is also safe to use from a signal handler. ERRORS
UNW_EUNSPEC An unspecified error occurred. UNW_ENOINFO Libunwind was unable to locate the unwind-info needed to complete the operation. UNW_EBADVERSION The unwind-info needed to complete the operation has a version or a format that is not understood by libunwind. UNW_EINVALIDIP The instruction-pointer (``program-counter'') of the next stack frame is invalid (e.g., not properly aligned). UNW_EBADFRAME The next stack frame is invalid. UNW_ESTOPUNWIND Returned if a call to find_proc_info() returned -UNW_ESTOPUNWIND. In addition, unw_step() may return any error returned by the find_proc_info(), get_dyn_info_list_addr(), access_mem(), access_reg(), or access_fpreg() call-backs (see unw_create_addr_space(3)). SEE ALSO
libunwind(3), unw_create_addr_space(3) AUTHOR
David Mosberger-Tang Email: dmosberger@gmail.com WWW: http://www.nongnu.org/libunwind/. Programming Library 16 August 2007 UNW_STEP(3)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Programming Newbie Chick

OK, so I'm trying to finish my last individual assignment for this course, and it's the first time I've visited a forum (I've actually understood UNIX up to this point). I am having trouble with this one. I have to write a program that prompts the user to type their first name and stores it in a... (3 Replies)
Discussion started by: metalgoddess21
3 Replies

2. Shell Programming and Scripting

form results in frame

I used a script posted here to get my form results in a frame; which works great on first submit, BUT, creates a new set of frames in the form window on second submit. I've set the targets to the frame names. Anyone have any suggestions? thank you! (2 Replies)
Discussion started by: walkacrossfire
2 Replies

3. Programming

Help receiving a frame in C!

Hello everybody, I have a problem with a program i'm coding, the thing is that i need the program to check quickly if it receives a response, if not, just go ahead. My program sends the frame successfully, but it keeps waiting for the response until it receives something. That's what i need to... (2 Replies)
Discussion started by: Zykl0n-B
2 Replies

4. Linux

C, LKM, netfilter, PF_PACKET and ARP.

Hello, Everyone knows that with PF_PACKET sockets one can "sniff" a determinated frame from the network device, but just that, see the frame without altering its action on the receiving host. What i want is to "intercept" the incoming frame and pass it through some rules, and if it doesn't pass... (9 Replies)
Discussion started by: Zykl0n-B
9 Replies

5. Shell Programming and Scripting

perform actions at specific locations in data frame

Hi everyone, I got a data frame like the one below and and would like to do the following: Ignore the first 3 rows and check in all following rows the second position. If the value is >500, subtract 100. Example DF: ABC 22 DE 12 BCD 223 GH 12 EFG 2104 DH ... (4 Replies)
Discussion started by: TuAd
4 Replies

6. Shell Programming and Scripting

How to copy the files which are generated in specific time frame?

Hello Masters, I need one help. I want to copy the files which are continuously generating on one server. e.g. -rw-rw-r-- 1 akore akore 0 Feb 12 03:20 test1.log -rw-rw-r-- 1 akore akore 0 Feb 12 03:42 test2.log -rw-rw-r-- 1 akore akore 0 Feb 12 04:22 test3.log -rw-rw-r-- 1 akore akore 0... (1 Reply)
Discussion started by: akore83
1 Replies

7. AIX

Lpar migration

We have a 2 node oracle rac cluster one node is in frame 1 and other is in frame 2 Now,because of some hardware failure(processor card and cable) in frame 1 we will failover database services from lpar in frame 1 to lpar(oracle rac cluster node2) in frame2 and the entire replacement of hardware... (9 Replies)
Discussion started by: admin_db
9 Replies

8. Shell Programming and Scripting

Need solution to compare two file and update and append the output

Hi All, I have two files File1 frame,007C1 server1_Parent frame,007C3 server2_Silver frame,007EE server3_Bronze frame,00855 server4_Parent frame,00856 server4_Parent frame,00858 server5_Parent frame,008FA server6_Silver frame,008FB server6_Silver frame,008FC server6_Silver... (2 Replies)
Discussion started by: ranjancom2000
2 Replies