Sponsored Content
Top Forums Programming 'SIGHUP','SIGTSTP' undeclared Post 302350127 by konvalo on Wednesday 2nd of September 2009 10:35:49 PM
Old 09-02-2009
'SIGHUP','SIGTSTP' undeclared

I compile following statement
Code:
signal(SIGHUP,sig_hup);
kill(getpid(),SIGTSTP);

$gcc test.c
it raise following error:
error:'SIGHUP' undeclared (first use in this function)
error:'SIGTSTP' undeclared (first use in this function)

Why raise above error? which head file include 'SIGHUP','SIGTSTP' define?

Thanks
 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to make a current running process ignore SIGHUP signal?

I ask this question since sometimes i run a time-consuming ftp in foreground and forget to use nohup ftp.sh & to put this work background and can still running after i log off. Assume this ftp task have run 1 hour, and still 1 hour time to end, i don't want to abort the ftp, first, i use ctrl+Z... (3 Replies)
Discussion started by: stevensxiao
3 Replies

2. Linux

SIGHUP received to pppd

Hi all, I have a question about pppd. I got a Slack box with kernel 2.4.20. I'm learning how to connect my CONSOLE to internet with a chat script. Following these steps, MANY times I can connect to internet very pretty nice. But also MANY times (says 50%-50%) SIGHUP received to pppd... (2 Replies)
Discussion started by: jaguar
2 Replies

3. AIX

Installation error - '_UKJBLEN' undeclared here

Hi, I want to install a ghostscript file in AIX 5.3.. i confgiured it then gave make command. it has thrown the following error. -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -DHAVE_STDINT_H... (0 Replies)
Discussion started by: meeraramanathan
0 Replies

4. Programming

error:'MSG_R' undeclared (first use in this function) under Solaris

I read book Unix Network Programming written by Richard,and it define following code under unpipc.c #define SVMSG_MODE (MSG_R | MSG_W | MSG_R>>3 | MSG_R>>6) when I compile code,it raise following error: error:'MSG_R' undeclared (first use in this function) error:'MSG_W' undeclared (first use... (1 Reply)
Discussion started by: konvalo
1 Replies

5. AIX

SIGHUP killing Oracle Listener Process

I have a cold backup script which backs up my database and then restarts the oracle listener and database at around 01:30 I can see at this time that my database and listener are indeed running. However at around 02:17 my listener process receives a SIGHUP 1 signal from the AIX OS ( version 5.3 )... (2 Replies)
Discussion started by: jimthompson
2 Replies

6. UNIX for Dummies Questions & Answers

Compilation Error--Undeclared Identifier

Hello, I am trying to install BBFTP software on my Mac (OS X), and am running into some compilation errors. Here is the code, the specific errors are listed after: #include <dirent.h> #include <errno.h> #include <fnmatch.h> #include <netinet/in.h> #include <syslog.h> #include <sys/stat.h>... (1 Reply)
Discussion started by: Tyler_92
1 Replies
raise(3C)						   Standard C Library Functions 						 raise(3C)

NAME
raise - send a signal to the executing thread SYNOPSIS
#include <signal.h> int raise(int sig); DESCRIPTION
The raise() function sends the signal sig to the executing thread. If a signal handler is called, the raise function does not return until after the signal handler returns. The effect of the raise function is equivalent to calling: pthread_kill(pthread_self(), sig); See the pthread_kill(3C) manual page for a detailed list of failure conditions and the signal.h(3HEAD) manual page for a list of signals. RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
pthread_kill(3C), pthread_self(3C), signal.h(3HEAD), attributes(5), standards(5) SunOS 5.11 23 Mar 2005 raise(3C)
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy