~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/clib/raise.c

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-
 
2
 * See the file LICENSE for redistribution information.
 
3
 *
 
4
 * Copyright (c) 1997-2001
 
5
 *      Sleepycat Software.  All rights reserved.
 
6
 */
 
7
 
 
8
#include "db_config.h"
 
9
 
 
10
#ifndef lint
 
11
static const char revid[] = "$Id: raise.c,v 11.4 2001/01/25 18:22:37 bostic Exp $";
 
12
#endif /* not lint */
 
13
 
 
14
#ifndef NO_SYSTEM_INCLUDES
 
15
#include <signal.h>
 
16
#include <unistd.h>
 
17
#endif
 
18
 
 
19
/*
 
20
 * raise --
 
21
 *      Send a signal to the current process.
 
22
 *
 
23
 * PUBLIC: #ifndef HAVE_RAISE
 
24
 * PUBLIC: int raise __P((int));
 
25
 * PUBLIC: #endif
 
26
 */
 
27
int
 
28
raise(s)
 
29
        int s;
 
30
{
 
31
        return (kill(getpid(), s));
 
32
}