mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
OpenBSD patches for dtcalc, dtdocbook, dthelp and dtimsstart.
This commit is contained in:
parent
b17e52a269
commit
3e4517dc2a
11 changed files with 30 additions and 15 deletions
|
@ -80,6 +80,7 @@
|
|||
#include <Xm/MwmUtil.h>
|
||||
#include <Xm/Protocols.h>
|
||||
#include <Xm/VendorSEP.h>
|
||||
#include <Xm/SeparatoG.h>
|
||||
/* Copied from BaseClassI.h */
|
||||
extern XmWidgetExtData _XmGetWidgetExtData(
|
||||
Widget widget,
|
||||
|
@ -266,6 +267,12 @@ extern Vars v ; /* Calctool variables and options. */
|
|||
char translations_return[] = "<Key>Return:ManagerGadgetSelect()";
|
||||
static Boolean NoDisplay=False;
|
||||
|
||||
extern XtPointer _XmStringUngenerate (
|
||||
XmString string,
|
||||
XmStringTag tag,
|
||||
XmTextType tag_type,
|
||||
XmTextType output_type);
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc ;
|
||||
|
|
|
@ -78,7 +78,9 @@ static char *RCSid =
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/file.h>
|
||||
#if !defined(CSRG_BASED)
|
||||
#include <values.h>
|
||||
#endif
|
||||
|
||||
#include "general.h"
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -179,7 +179,7 @@ EXTERN char dirsep
|
|||
#if defined(MSDOS)
|
||||
INIT('\\')
|
||||
#else
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
INIT('/')
|
||||
#else
|
||||
****define directory separator here****
|
||||
|
@ -187,7 +187,7 @@ INIT('/')
|
|||
#endif
|
||||
;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__)|| defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__)|| defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#define CSEP '/'
|
||||
#define SSEP "/"
|
||||
#else
|
||||
|
|
|
@ -356,7 +356,7 @@ char *qualname;
|
|||
char *unqualname;
|
||||
#endif
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
|
||||
FILE *f;
|
||||
#endif
|
||||
|
@ -381,7 +381,7 @@ else
|
|||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
|
@ -495,7 +495,7 @@ do {
|
|||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
*/
|
||||
|
||||
#include "basic.h"
|
||||
#include "trie.h"
|
||||
#include "cont.h"
|
||||
|
||||
|
||||
/* compare two wide character strings */
|
||||
|
|
|
@ -355,7 +355,7 @@ char *qualname;
|
|||
char *unqualname;
|
||||
#endif
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
FILE *f;
|
||||
#endif
|
||||
char fn[FNAMELEN];
|
||||
|
@ -379,7 +379,7 @@ else
|
|||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
|
@ -493,7 +493,7 @@ do {
|
|||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
*/
|
||||
|
||||
#include "basic.h"
|
||||
#include "trie.h"
|
||||
#include "cont.h"
|
||||
|
||||
|
||||
/* compare two wide character strings */
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(linux) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
*/
|
||||
|
||||
#include "basic.h"
|
||||
#include "trie.h"
|
||||
#include "cont.h"
|
||||
|
||||
|
||||
/* compare two wide character strings */
|
||||
|
|
|
@ -136,7 +136,7 @@ main (argc, argv)
|
|||
|
||||
case MODE_START:
|
||||
#ifndef DEBUG2
|
||||
# ifdef __osf__
|
||||
# if defined(__osf__) || defined(CSRG_BASED)
|
||||
setsid();
|
||||
# else
|
||||
setpgrp();
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <setjmp.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if (defined(USL) || defined(__uxp__) | defined(linux)) && !defined(_NFILE)
|
||||
#if (defined(USL) || defined(__uxp__) || defined(linux) || defined(CSRG_BASED)) && !defined(_NFILE)
|
||||
#define _NFILE FOPEN_MAX
|
||||
#endif
|
||||
|
||||
|
@ -233,7 +233,7 @@ void set_sig_chld(enable)
|
|||
int enable;
|
||||
{
|
||||
DPR(("set_sig_chld(%s)\n", enable ? "Enabled" : "Disabled"));
|
||||
signal(SIGCLD, enable ? on_sig_chld : SIG_IGN);
|
||||
signal(SIGCHLD, enable ? on_sig_chld : SIG_IGN);
|
||||
}
|
||||
|
||||
int im_mod_available(renv)
|
||||
|
@ -620,7 +620,7 @@ static int invoke_ims(sel)
|
|||
for (i = 0; i < _NFILE; i++)
|
||||
(void) close(i);
|
||||
|
||||
#ifdef __osf__
|
||||
#if defined(__osf__) || defined(CSRG_BASED)
|
||||
setsid();
|
||||
#else
|
||||
setpgrp();
|
||||
|
@ -668,7 +668,7 @@ static void on_sig_chld(sig)
|
|||
if (pid == -1)
|
||||
return;
|
||||
|
||||
signal(SIGCLD, on_sig_chld);
|
||||
signal(SIGCHLD, on_sig_chld);
|
||||
|
||||
if (WIFEXITED(wait_status)) {
|
||||
cause = ErrImsAborted;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue