Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
XCOMM $XConsortium: Imakefile /main/7 1996/09/14 15:17:32 drk $
DEPLIBS = $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(TTLIB) $(XTOOLLIB) $(XLIB)
DEFINES = -DMSGLOG_CLIENT_ONLY
INCLUDES = -I.
SRCS = DtGetMessage.c Main.c MsgLog.c Version.c
OBJS = DtGetMessage.o Main.o MsgLog.o Version.o
ComplexProgramTarget(dtexec)
LinkSourceFile(DtSvcLock.h,$(DTSVCSRC)/include)
LinkSourceFile(MsgLog.c,$(DTSVCSRC)/DtUtil2)
LinkSourceFile(DtGetMessage.c,$(DTSVCSRC)/DtUtil2)

1614
cde/programs/dtexec/Main.c Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,39 @@
/* $XConsortium: Version.c /main/5 1996/08/30 15:30:02 drk $
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
* (c) Copyright 1993,1994,1996 International Business Machines Corp.
* (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
* (c) Copyright 1993,1994,1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
/********************************************************
Copyright (c) 1988, 1990 by Hewlett-Packard Company
Copyright (c) 1988 by the Massachusetts Institute of Technology
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the names of
Hewlett-Packard or M.I.T. not be used in advertising or publicity
pertaining to distribution of the software without specific, written
prior permission.
********************************************************/
#include <include/hpversion.h>
#ifndef lint
version_tag("dtexec: $XConsortium: Version.c /main/5 1996/08/30 15:30:02 drk $")
#endif /* lint */

View File

@@ -0,0 +1,83 @@
.\" $XConsortium: dtexec.man /main/2 1995/07/17 10:50:37 drk $
.\" *************************************************************************
.\" **
.\" ** (c) Copyright 1993,1994 Hewlett-Packard Company
.\" ** All Rights Reserved.
.\" **
.\" ** (c) Copyright 1993,1994 International Business Machines Corp.
.\" ** All Rights Reserved.
.\" **
.\" ** (c) Copyright 1993,1994 Sun Microsystems, Inc.
.\" ** All Rights Reserved.
.\" **
.\" *************************************************************************
.TH dtexec 1X "17 Jan 1994"
.BH "17 Jan 1994"
.\"---
.SH NAME
\fBdtexec\fP \(em A "wrapper" program for command lines to
control when the command exits.
.sp 1
.SH SYNOPSIS
.B dtexec <open_option> <command_line>
.nf
.in 10
.fi
.sp 1
.SH DESCRIPTION
Dtexec is used by the Common Desktop Environment (CDE) when
executing terminal-based actions. Its'
purpose is to keep the terminal window
open after the command terminates in
the following circumstances:
.sp 1
.in 10
- If the action is of type PERM-TERMINAL.
.sp 1
.in 10
- If the action is of type TERMINAL and
the command "quickly" exits, which
indicates that an error occurred.
.P
The "open_option" arguments are:
.sp 1
.in 10
1. "-1" - Keep the window open when
"command_line" terminates.
.sp 1
2. "0" - Unmap the terminal window after
"command_line" terminates.
.sp 1
3. "n" - Keep the terminal window mapped if
"command_line" terminates within "n" seconds of
starting. The default value is "3" seconds. To
change the default, set the component's "waitTime"
or "WaitTime" resource. For example, to change
the CDE File Manager to wait "5" seconds,
set the following resource: "Dtfile*waitTime: 5".
Dtexec does not have any resources.
.P
Dtexec's default path is "/usr/dt/bin".
To change this
location, set the component's "dtexecPath" or
"DtexecPath" resource. For example, to change
the CDE File Manager's dtexec path to
"/usr/local/bin", set the following resource:
"Dtfile*dtexecPath: /usr/local/bin".
.sp 1
.SH RETURN VALUE
\fBdtexec\fP returns 0 if successful; otherwise it returns 1.
Successful return from dtexec implies system resources were available
to fork and exec the requested command, not that the requested command
itself executed successfully.
.SH NOTES
.PP
This program is not normally invoked directly by application
programs. Normally an application program will link with the
Desktop Services Library (DtSvc) which will then invoke \fBdtexec\fP
as needed.
.PP
As mentioned above, an application program can set its
\fIwaitTime\fP and \fIDtexecPath\fP resources to affect the behavior
of DtSvc library invocations of \fIdtexec\fP.

View File

@@ -0,0 +1,47 @@
#ifndef OSDEP_H
#define OSDEP_H
/******************************************************************
*
* $XConsortium: osdep.h /main/4 1996/01/15 11:43:44 rswiston $
*
* Bitmask routines to support the usage of select() in dtexec.
* Revised for Spec1170 conformance.
*
*/
#ifdef _POSIX_SOURCE
# include <limits.h>
#else
# define _POSIX_SOURCE
# include <limits.h>
# undef _POSIX_SOURCE
#endif
#include <sys/time.h>
#include <sys/types.h>
#ifndef __hpux
# include <sys/select.h>
# define FD_SET_CAST(x) (x)
#else
# define FD_SET_CAST(x) ((int *)(x))
#endif
#ifndef OPEN_MAX
# define OPEN_MAX 128
#endif
#if OPEN_MAX <= 128
# define MAXSOCKS (OPEN_MAX)
#else
# define MAXSOCKS 128
#endif
#define BITSET(buf, i) FD_SET(i, &(buf))
#define BITCLEAR(buf, i) FD_CLR(i, &(buf))
#define GETBIT(buf, i) FD_ISSET(i, &(buf))
#define COPYBITS(src, dst) (dst) = (src)
#define CLEARBITS(buf) FD_ZERO(&buf)
#endif /* OSDEP_H */