Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8264899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:37:09+00:00 2026-06-08T04:37:09+00:00

Its not on Standard C, I was trying to develop application in C. Here

  • 0

Its not on Standard C, I was trying to develop application in C. Here is the scenario:Its like a power mode implementation of a processor, so that when the processor, wakes from sleep, an interrupt will be generated, so that if i have an event callback at that point i could wake my other module to do its process.For this, I m trying to implement linkedlist using static allocation for accessing memory pool, so that when a callback is registered, it is stored in the memory pool. So when a callback is triggered, it sends a event notification to the modules which is registered.

But i m not sure how to implement it. Kindly provide a way to implementation

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:37:11+00:00Added an answer on June 8, 2026 at 4:37 am

    Do you mean signals? Like when you get a crash or a divide by zero? Here is a posix example of trapping signals:

    void abortHandler( int signum, siginfo_t* si, void* unused )
    {
       const char* name = NULL;
       switch( signum )
       {
          case SIGABRT: name = "SIGABRT";  break;
          case SIGSEGV: name = "SIGSEGV";  break;
          case SIGBUS:  name = "SIGBUS";   break;
          case SIGILL:  name = "SIGILL";   break;
          case SIGFPE:  name = "SIGFPE";   break;
          case SIGPIPE: name = "SIGPIPE";  break;
       }
    
       if ( name )
          printf( "Caught signal %d (%s)\n", signum, name );
       else 
          printf( "Caught signal %d\n", signum );
    }
    
    void trapSignals()
    {
       struct sigaction sa;
       sa.sa_flags = SA_SIGINFO;
       sa.sa_sigaction = abortHandler;
       sigemptyset( &sa.sa_mask );
    
       sigaction( SIGABRT, &sa, NULL );
       sigaction( SIGSEGV, &sa, NULL );
       sigaction( SIGBUS,  &sa, NULL );
       sigaction( SIGILL,  &sa, NULL );
       sigaction( SIGFPE,  &sa, NULL );
       sigaction( SIGPIPE, &sa, NULL );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure ouit why its not reporting a validation error when there
Maybe I'm wrong but for me its not working, I'm trying to do the
I keep seeing documentation saying that its not possible to send to a remote
Got this line of code here but its not working. private void Button_Click(object sender,
I'm trying to loop an exception, but for some reason its not giving me
Im trying to use PHP mail on my local computer, but its just not
I'm trying to build a small inventory application in Java, that switches views (or
I am trying to use an external program from within Scala that accepts its
Its not really a subtraction I'm looking for. And I know its not a
And its not '&' Im using the SAXParser object do parse the actual XML.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.