annotate docs/ccguide/kill.refentry @ 2763:c03464c24b14

Fixed a minor typo in the arcadepak's makefile related to DriveWire3 and Becker. Updated makefile with new option nightlytest. Run option is "make nightlytest". You also need to test environment variable TESTSSHDIR and TESTSSHSERVER before using it. Also updated the nightly option so if the SOURCEUSER environment variable is not set it will report it.
author drencor-xeen
date Wed, 16 Jan 2013 17:33:46 -0600
parents 42b2c775f05f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="kill">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
3 <refname>Kill</refname>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
4 <refpurpose>send an interrupt to a task</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <funcsynopsis>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
9 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 #include &lt;signal.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 </funcsynopsisinfo>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
12 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
13 <funcdef><function>kill</function></funcdef>
570
253b6096ee01 All function prototypes are added.
roug
parents: 552
diff changeset
14 <paramdef>int <parameter>tid</parameter></paramdef>
253b6096ee01 All function prototypes are added.
roug
parents: 552
diff changeset
15 <paramdef>int <parameter>interrupt</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
19 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
20
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
21 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
22 <para>
602
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
23 Kill sends the interrupt type "interrupt" to the task with id
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
24 "tid".
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
25 </para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
26 <para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
27 Both tasks, sender and receiver, must have the same user id
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
28 unless the user is the super user.
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
29 </para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
30 <para>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
31 The include file contains definitions of the defined signals as
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
32 follows:
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
33 <programlisting>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
34 /* OS-9 signals */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
35 #define SIGKILL 0 /* system abort (cannot be caught or ignored)*/
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
36 #define SIGWAKE 1 /* wake up */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
37 #define SIGQUIT 2 /* keyboard abort */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
38 #define SIGINT 3 /* keyboard interrupt */
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
39 </programlisting>
42b2c775f05f All refentries finished.
roug
parents: 570
diff changeset
40 Other user-defined signals may, of course, be sent.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
41 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
42 </refsect1>
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
43
552
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
44 <refsect1><title>Diagnostics</title>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
45 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
46 Kill returns 0 from a successful call and -1 if the task does
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
47 not exist, the effective user ids do not match, or the user is
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
48 not the system manager.
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
49 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
50 </refsect1>
fcb97f0ba24b All diagnostics added.
roug
parents: 542
diff changeset
51
542
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
52 <refsect1><title>See Also</title>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
53 <para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
54 <link linkend="signal">signal()</link>,
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
55 OS-9 shell command "kill"
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
56 </para>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
57 </refsect1>
73319ee6a57e All "See Also" implemented
roug
parents: 468
diff changeset
58
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
59 </refentry>