Sponsored Content
Full Discussion: Detecting interruptions in C
Top Forums Programming Detecting interruptions in C Post 302149579 by porter on Thursday 6th of December 2007 03:27:45 PM
Old 12-06-2007
Quote:
Originally Posted by Ashrentum
There is not a standard C routine to know when a interruption succeeded?
No. The standard C library works at a much higher level. Signal only refers to your process.

You could open an HTTP connection to a weather site.....?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

detecting drives

I know that Unix is different from windows in that it needs more manual configuring but how do I get Solaris 8 (Intel version) to recognize my floppy drive and cd-rom?? I mean does it automatically detect the drives at startup and I have to mount them or do I have to create the drives somehow and... (1 Reply)
Discussion started by: eloquent99
1 Replies

2. Programming

Detecting a key combination

Could anybody tell me how I can detect a particular key combination and perform a particular task on that event. e.g. if I press Ctrl + L on the shell then it clears the screen. Please tell me how it can be performed on my shell. And how the Arrow Keys can be detected. I tried but pressing a key... (11 Replies)
Discussion started by: mobile01
11 Replies

3. UNIX for Dummies Questions & Answers

Detecting Second disk

Hello all, first of all, I apologise if I may ask stupid or obvious questions, but I'm new to UNIX and I think I need a little bit of help before I start gearing up :) Anyway, I have installed a Solaris 8 on a Sun machine, and it has 2 physical disks in it. However, it seems that it is only... (7 Replies)
Discussion started by: dragunu
7 Replies

4. Shell Programming and Scripting

Detecting Vmware on Linux

Hi, I need help to detect Vmware on Linux and SunOS. I need to know if Vmware is installed on the box. If yes then if it is a physical or a virtual machine. Thanks in advance, amittal (2 Replies)
Discussion started by: amittal
2 Replies

5. Shell Programming and Scripting

detecting multiple instances

Hi Gurus I have a requirement like this. i use solaris OS.. if there are 2 instances of the same ksh file running in the directory, i need to kill the ksh file that started to run latest. suppose ragha.ksh starts running thru cron in abc/xyz directory now ragha.ksh started running by any... (3 Replies)
Discussion started by: ragha81
3 Replies

6. SCO

lan card not detecting

hi all i have installed SCO 5.0.5 on a "Netfinity 5000" IBM server. But the OS is not detecting the lan card. how can i detect it.... help and thanks in advance . bidhayak (3 Replies)
Discussion started by: bidhayakm
3 Replies

7. Solaris

Detecting Harddrive Errors

I am looking for some tips or suggestions in how to do the following. 1) From a Solaris server, I run the command iostat -En and receive output that is similiar to the following which shows your disks along with the cdrom/dvdrom: c0t2d0 Soft Errors: 0 Hard Errors: 0 Transport... (1 Reply)
Discussion started by: sunsysadm2003
1 Replies

8. UNIX for Dummies Questions & Answers

detecting consecutive filenames

I have a series of filenames of the format junk_x_###.txt where x and ### are numbers. I need to detect when at least 30 consecutive files (e.g. junk_1_001.txt, junk_1_002.txt.....) are in the directory. There are sets of files with similar names that need to be grouped together and counted... (0 Replies)
Discussion started by: stanleymacc
0 Replies

9. UNIX for Advanced & Expert Users

detecting the running services

I did search on the subject on services in linux and they do explain how to find what are the services that loaded when the linux boot. however I have not find how to detect what services run right now. I would like to now that and how to kill services. Thanks. (3 Replies)
Discussion started by: programAngel
3 Replies

10. Shell Programming and Scripting

need help in detecting errors

Hi All , I need a script to find errors in a particular and in a particular path Actually in my logs i`ve so many kinds of errors(i can even say as 100 types also).if i run the script i need to know the error (some errors can aviod ) so finally the script o/p should be a numeric... (3 Replies)
Discussion started by: radha254
3 Replies
Ns_ConnSetHeaders(3aolserver)				   AOLserver Library Procedures 			     Ns_ConnSetHeaders(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_ConnCondSetHeaders, Ns_ConnSetExpiresHeader, Ns_ConnSetHeaders, Ns_ConnSetLastModifiedHeader, Ns_ConnSetLengthHeader, Ns_ConnSetRe- quiredHeaders - Routines to manage response headers SYNOPSIS
#include "ns.h" void Ns_ConnCondSetHeaders(conn, key, value) void Ns_ConnSetExpiresHeader(conn, expires) void Ns_ConnSetHeaders(conn, key, value) void Ns_ConnSetLastModifiedHeader(conn, mtime) void Ns_ConnSetLengthHeader(conn, length) void Ns_ConnSetRequiredHeaders(conn, type, length) void Ns_ConnSetTypeHeader(conn, type) ARGUMENTS
Ns_Conn conn (in) Pointer to open connection. char *expires(in) Pointer to string to construct an expires header. char *key (in) Pointer to string key for a header. int length (in) Integer length of output content to construct a content-length header. time_t mtime (in) Modification time stamp to construct a last-modified header. int status (in) HTTP result status code. char *type (in) Pointer to mimetype string to construct a content-type header. char *value (in) Pointer to a string value for a header. _________________________________________________________________ DESCRIPTION
These functions manage the output headers eventually sent through the given open connection to a client. They operate by modifying the outputheaders Ns_Set of the connection Ns_Conn structure. Headers can be modified until they are queued or sent directly via the Ns_Con- nQueueHeaders or Ns_ConnFlushHeaders routines. It is possible to modify the outputheaders directly although use of these functions is pre- ferred for consistancy. Note that higher level output routines such as Ns_ConnFlush or the various Ns_ConnReturn routines normally generate all the headers neces- sary for a given response. These routines are normally only necessary for specialized applications which output additional specific head- ers or specialized request procedures which do not use the higher level output routines. void Ns_ConnCondSetHeaders(conn, key, value) Append an output header of the form key: value only if the header does not already exist in the outputheaders set. void Ns_ConnSetExpiresHeader(conn, expires) This routine is equivalent to Ns_ConnSetHeaders(conn, "Expires", expires). Note that the exires parameter is treated as a string, not a timestamp. A timestamp can be constructed with the Ns_HttpTime routine. void Ns_ConnSetHeaders(conn, key, value) Append a header of the form key: value to the outputheaders. This routine will append a new, possibly duplicate, header regardless of whether a matching header already exists in the outputheaders. void Ns_ConnSetLastModifiedHeader(conn, mtime) This routine appends a last-modified header if one does not already exists, formatting the given modification time as a proper HTTP timestamp with the Ns_HttpTime routine. void Ns_ConnSetLengthHeader(conn, length) This routine appends a content-length: length header, formatting the given integer length as a string. This routine will also record the response length internally in the conn structure so that it can be later retrieved via the Ns_ConnResponseLength routine, for example, as part of a post-connection logging callback. void Ns_ConnSetRequiredHeaders(conn, type, length) This routine appends the basic headers normally required for a proper HTTP transaction. These include mime-version, date, and server as well as the content-type: type and content-length: length headers for the given arguments. If type is NULL or length is less than zero, the corresponding headers will not be appended. This routine is often the only header construction routine neces- sary for request procedures which construct headers manually instead of calling routines such as Ns_ConnFlush which handle header construction and queueing automatically. void Ns_ConnSetTypeHeader(conn, type) This routine is equivalent to Ns_ConnSetHeaders(conn, "content-type", type). SEE ALSO
Ns_ConnQueueHeaders(3), Ns_ConnFlushHeaders(3), Ns_ConnFlush(3) KEYWORDS
headers, response AOLserver 4.0 Ns_ConnSetHeaders(3aolserver)
All times are GMT -4. The time now is 01:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy