![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| no of arguments to function in shell script | KiranKumarKarre | Shell Programming and Scripting | 2 | 06-10-2009 09:45 AM |
| Passing arguments to Perl Function | Raynon | Shell Programming and Scripting | 1 | 02-16-2009 04:50 AM |
| count no of arguments passed to a function | satish@123 | Shell Programming and Scripting | 2 | 05-21-2008 05:16 AM |
| arguments too long error | kburrows | Shell Programming and Scripting | 0 | 07-21-2006 11:35 AM |
| How to pass arguments to a function in a shell script? | preetikate | Shell Programming and Scripting | 3 | 03-01-2004 04:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Error: too many arguments to function 'sigwait'
Code:
#include <pthread.h>
#include <signal.h>
...
sigset_t mask;
int err,signo;
err=sigwait(&mask,&signo);
switch(signo){
case SIGINT:
...
}
error: too many arguments to function 'sigwait' I look up signal function under solaris10 int sigwiat(sigset_t *set); How to correct above code to run my code? Thanks |
|
||||
|
it is not the solution, but a single question to you ...
Code:
I look up signal function under solaris10 int sigwiat(sigset_t *set); -----> single argument Code:
err=sigwait(&mask,&signo); ------> two argument |
|
||||
|
I know there are two arguments in sigwait(&mask,&signo),and there is single argument int sigwait(sigset_t *set) function, sigwait(&mask,&signo) can run under unix system,but can't run under solaris system. I want to know if there is a another function to realize the same function of sigwait(&mask,&signo) under solaris?
Thanks |
|
||||
|
From here:
Code:
RETURN VALUES
Upon successful completion, sigwait() returns a signal
number. Otherwise, it returns a value of -1 and sets errno
to indicate an error. Upon successful completion, the POSIX
version of sigwait() returns zero and stores the received
signal number at the location pointed to by sig. Otherwise,
it returns the error number.
|
|
||||
|
Dont know about Solaris but from here it looks like you need to define _POSIX_PTHREAD_SEMANTICS and include the threads lib on the compile line.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|