~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmon/Xmt310/Xmt/UnixProcs.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Motif Tools Library, Version 3.1
 
3
 * $Id$
 
4
 * 
 
5
 * Written by David Flanagan.
 
6
 * Copyright (c) 1992-2001 by David Flanagan.
 
7
 * All Rights Reserved.  See the file COPYRIGHT for details.
 
8
 * This is open source software.  See the file LICENSE for details.
 
9
 * There is no warranty for this software.  See NO_WARRANTY for details.
 
10
 *
 
11
 * $Log$
 
12
 * Revision 1.1.1.1  2001/07/18 11:06:03  root
 
13
 * Initial checkin.
 
14
 *
 
15
 * Revision 1.2  2001/06/12 16:25:28  andre
 
16
 * *** empty log message ***
 
17
 *
 
18
 *
 
19
 */
 
20
 
 
21
#include <stdio.h>
 
22
#include <X11/Xos.h>
 
23
#include <Xmt/Xmt.h>
 
24
#include <Xmt/Procedures.h>
 
25
 
 
26
#ifndef X_NOT_STDC_ENV
 
27
#include <stdlib.h>
 
28
#endif
 
29
 
 
30
#ifndef X_NOT_POSIX
 
31
#include <unistd.h>
 
32
#endif
 
33
 
 
34
static XmtProcedureInfo unix_procedures[] = {
 
35
{"puts", (XmtProcedure)puts, {XtRString}},
 
36
{"system", (XmtProcedure)system, {XtRString}},
 
37
{"exit", (XmtProcedure)exit, {XtRInt}},
 
38
 
 
39
};
 
40
#if NeedFunctionPrototypes
 
41
void XmtRegisterUnixProcedures(void)
 
42
#else
 
43
void XmtRegisterUnixProcedures()
 
44
#endif
 
45
{
 
46
    XmtRegisterProcedures(unix_procedures, XtNumber(unix_procedures));
 
47
}