Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

sigio_func

 
   Mac (Home) -> Programmer Help RSS
Next:  Folder Action & temporary files  
Author Message
Aaron Spiteri

External


Since: Dec 17, 2008
Posts: 5



(Msg. 1) Posted: Mon Dec 22, 2008 9:05 pm
Post subject: sigio_func
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi all,

I have been working my way through the exercises on W. Richard Stevens
"UNIX Network Programming" using Tiger on an iMac and Leopard on a
macbook. The problem that I have ran into is trying to compile a
program named "sock" that wants to use a function "sigio_func". This
function is not declared in any of my header files and I can't find
much information about it on the web. If any one can point me in the
right direction it would be appreciated.
Back to top
Login to vote
Allen Brunson

External


Since: Aug 29, 2008
Posts: 3



(Msg. 2) Posted: Mon Dec 22, 2008 9:05 pm
Post subject: Re: sigio_func [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Aaron Spiteri wrote:
> The problem that I have ran into is trying to compile a program named
> "sock" that wants to use a function "sigio_func".

i am 95 percent sure that you are talking about a function that you are
supposed to write yourself, not something that's part of the operating system.
a quick google search turns up this as a possible implementation:

void sigio_func()
{
sigflag = 1;
}

looks like its a callback proc that you use as a signal handler.
Back to top
Login to vote
Aaron Spiteri

External


Since: Dec 17, 2008
Posts: 5



(Msg. 3) Posted: Fri Dec 26, 2008 9:53 am
Post subject: Re: sigio_func [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-12-23 00:35:12 +1100, Allen Brunson <noemail.TakeThisOut@spam.com.invalid> said:

> Aaron Spiteri wrote:
>> The problem that I have ran into is trying to compile a program named
>> "sock" that wants to use a function "sigio_func".
>
> i am 95 percent sure that you are talking about a function that you are
> supposed to write yourself, not something that's part of the operating system.
> a quick google search turns up this as a possible implementation:
>
> void sigio_func()
> {
> sigflag = 1;
> }
>
> looks like its a callback proc that you use as a signal handler.

It was a user defined function. The problem turned out to be where the
function was prototyped. In gcc 4 you can not declare a prototype
within a function body. IE:

void
somefunct(void)
{
void sigio_func();

...
sigio_func();
}

wont work but:


void sigio_func();
void
somefunct(void)
{
....
sigio_func();
}

will work.

Thanks for the reponse
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to type in ASCII? - Stupid question #2 of the week. I'm trying to avoid writing a printer driver for a barcode label printer. It responds to reasonable commands, and I want to embed a command in a page that tells the printer to cut the paper. It's <STX> o STX, of c...

applications and windows - Hello. I'm primarily a system programmer, unix one. Currently I have to implement the following logic: On Mac OS X enumerate all running application only those that are displaying windows. Find which of them is "active", where "active&qu...

[ANN] Vice - Graphical Program Priority Adjustment Tool fo.. - Vice is an application that allows the user to interactively adjust the priority of programs running on Mac OS X. Normal users can lower the priority of their own non-essential programs, while administrators can arbitrarily adjust the priority of any..

NSCursorAttributeName and NSTextView - Well, I've been playing around a little bit with getting URLs in my NSTextView to actually become clickable links. So far, so good. I set the attributes for my attributed strings that get inserted into the text view: NSLinkAttributeName for the link..

adding graphics to my console app - I need to add scientific visualization capability to my "console" application (text-based UI, C code). This just means being able to open a window and display data in graphical format. I have a couple of options: 1. Dredge up ancient QuickDraw...
       Mac (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact