View | Details | Raw Unified | Return to issue 8385
Collapse All | Expand All

(-)oo_1.0.1_src/idlc/source/preproc/cpp.c (-1 / +1 lines)
Lines 170-176 Link Here
170
void
170
void
171
    process(Tokenrow * trp)
171
    process(Tokenrow * trp)
172
{
172
{
173
    int anymacros = 0;  /* S390: XDBX stürzt ab! */
173
    int anymacros = 0;
174
174
175
    for (;;)
175
    for (;;)
176
    {
176
    {
(-)oo_1.0.1_src/idlc/source/preproc/include.c (-1 / +1 lines)
Lines 63-69 Link Here
63
#include <string.h>
63
#include <string.h>
64
#include <fcntl.h>
64
#include <fcntl.h>
65
65
66
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
66
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
67
#	include <io.h>
67
#	include <io.h>
68
#else
68
#else
69
#	include <unistd.h>
69
#	include <unistd.h>
(-)oo_1.0.1_src/idlc/source/preproc/lex.c (-12 / +4 lines)
Lines 61-67 Link Here
61
#include <stdio.h>
61
#include <stdio.h>
62
#include <stdlib.h>
62
#include <stdlib.h>
63
#include <string.h>
63
#include <string.h>
64
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
64
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
65
#include <io.h>
65
#include <io.h>
66
#else
66
#else
67
#include <unistd.h>
67
#include <unistd.h>
Lines 97-107 Link Here
97
#define	C_ALPH	2
97
#define	C_ALPH	2
98
#define	C_NUM	3
98
#define	C_NUM	3
99
#define	C_EOF	4
99
#define	C_EOF	4
100
#ifdef S390
101
#define	C_XX	6
102
#else
103
#define	C_XX	5
100
#define	C_XX	5
104
#endif
105
101
106
enum state
102
enum state
107
{
103
{
Lines 328-339 Link Here
328
                    continue;
324
                    continue;
329
                case C_ALPH:
325
                case C_ALPH:
330
                    for (j = 0; j <= 256; j++)
326
                    for (j = 0; j <= 256; j++)
331
#ifdef S390
332
						if( isalpha( j ) || (j == '_') )
333
#else							
334
                        if ('a' <= j && j <= 'z' || 'A' <= j && j <= 'Z'
327
                        if ('a' <= j && j <= 'z' || 'A' <= j && j <= 'Z'
335
                            || j == '_')
328
                            || j == '_')
336
#endif							
337
                            bigfsm[j][fp->state] = nstate;
329
                            bigfsm[j][fp->state] = nstate;
338
                    continue;
330
                    continue;
339
                case C_NUM:
331
                case C_NUM:
Lines 411-417 Link Here
411
            }
403
            }
412
    }
404
    }
413
    maxp = &trp->bp[trp->max];
405
    maxp = &trp->bp[trp->max];
414
    runelen = 1;  /* S390: XDBX stürzt ab! */
406
    runelen = 1;
415
    for (;;)
407
    for (;;)
416
    {
408
    {
417
continue2:
409
continue2:
Lines 430-436 Link Here
430
        {
422
        {
431
            oldstate = state;
423
            oldstate = state;
432
424
433
            c = *ip;  /* S390: XDBX stürzt (gelegentlich) ab! */
425
            c = *ip;
434
						
426
						
435
            if ((state = bigfsm[c][state]) >= 0)
427
            if ((state = bigfsm[c][state]) >= 0)
436
            {
428
            {
Lines 476-482 Link Here
476
468
477
					if (c == '\n')
469
					if (c == '\n')
478
					{
470
					{
479
					    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF); /* S390: XDBX stürzt (manchmal) ab! */
471
					    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF);
480
					
472
					
481
						if (s->inp[1] == '\r')
473
						if (s->inp[1] == '\r')
482
						{
474
						{
(-)oo_1.0.1_src/idlc/source/preproc/tokens.c (-1 / +1 lines)
Lines 62-68 Link Here
62
#include <stdlib.h>
62
#include <stdlib.h>
63
#include <string.h>
63
#include <string.h>
64
#include <ctype.h>
64
#include <ctype.h>
65
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
65
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
66
#include <io.h>
66
#include <io.h>
67
#else
67
#else
68
#include <unistd.h>
68
#include <unistd.h>
(-)oo_1.0.1_src/idlc/source/preproc/unix.c (-1 / +1 lines)
Lines 64-70 Link Here
64
#include <string.h>
64
#include <string.h>
65
#include <ctype.h>
65
#include <ctype.h>
66
#include <fcntl.h>
66
#include <fcntl.h>
67
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
67
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
68
#include <io.h>
68
#include <io.h>
69
#else
69
#else
70
#include <unistd.h>
70
#include <unistd.h>
(-)oo_1.0.1_src/rsc/source/rscpp/cpp1.c (-5 lines)
Lines 66-78 Link Here
66
#include        "cppdef.h"
66
#include        "cppdef.h"
67
#include        "cpp.h"
67
#include        "cpp.h"
68
68
69
/*#ifdef S390*/
70
FILE *pCppOut = NULL;
69
FILE *pCppOut = NULL;
71
FILE *pCppIn  = NULL;
70
FILE *pCppIn  = NULL;
72
/* #else
73
FILE *pCppOut = stdout;*/  /* BP */ /* in cpp1.c: file-pointer auf stdout oder file */
74
/*FILE *pCppIn  = stdin;
75
#endif*/
76
71
77
#ifdef DEBUG
72
#ifdef DEBUG
78
FILE *pDefOut = stdout;		/* ER  evtl. #define's dump */
73
FILE *pDefOut = stdout;		/* ER  evtl. #define's dump */
(-)oo_1.0.1_src/rsc/source/rscpp/cppdef.h (-4 lines)
Lines 260-271 Link Here
260
 * (Or is it the other way around?) -- Warning: BIG_ENDIAN code is untested.
260
 * (Or is it the other way around?) -- Warning: BIG_ENDIAN code is untested.
261
 */
261
 */
262
#ifndef BIG_ENDIAN
262
#ifndef BIG_ENDIAN
263
#ifdef S390
264
#define BIG_ENDIAN 				TRUE
265
#else
266
#define BIG_ENDIAN              FALSE
263
#define BIG_ENDIAN              FALSE
267
#endif
264
#endif
268
#endif
269
265
270
/*
266
/*
271
 * COMMENT_INVISIBLE may be defined to allow "old-style" comment
267
 * COMMENT_INVISIBLE may be defined to allow "old-style" comment
(-)oo_1.0.1_src/sal/inc/osl/endian.h (-5 / +1 lines)
Lines 158-167 Link Here
158
#   endif
158
#   endif
159
#endif
159
#endif
160
160
161
#ifdef S390
162
#	define  _BIG_ENDIAN
163
#endif
164
165
#ifdef _WIN16
161
#ifdef _WIN16
166
#	define	_LITTLE_ENDIAN
162
#	define	_LITTLE_ENDIAN
167
#endif
163
#endif
Lines 202-208 Link Here
202
 */
198
 */
203
#if !defined(_WIN32)  && !defined(_WIN16) && !defined(OS2)   && \
199
#if !defined(_WIN32)  && !defined(_WIN16) && !defined(OS2)   && \
204
    !defined(LINUX)   && !defined(NETBSD) && !defined(SCO)   && \
200
    !defined(LINUX)   && !defined(NETBSD) && !defined(SCO)   && \
205
	!defined(AIX)     && !defined(HPUX)   && !defined(S390)  && \
201
	!defined(AIX)     && !defined(HPUX)   && \
206
	!defined(SOLARIS) && !defined(IRIX)   && !defined(MACOS) && \
202
	!defined(SOLARIS) && !defined(IRIX)   && !defined(MACOS) && \
207
	!defined(MACOSX) && !defined(FREEBSD)
203
	!defined(MACOSX) && !defined(FREEBSD)
208
#	error "Target plattform not specified !"
204
#	error "Target plattform not specified !"
(-)oo_1.0.1_src/sal/osl/unx/diagnose.c (-17 lines)
Lines 127-144 Link Here
127
	else
127
	else
128
	{
128
	{
129
		/* format message into buffer */
129
		/* format message into buffer */
130
#ifdef S390		
131
		if(pszMessage != 0) 
132
		{
133
			s390_printf( "Assertion Failed: %s: File %s, Line %d: %s\n",
134
						 lpszAppName, pszFileName, nLine, pszMessage);
135
		}
136
		else
137
		{
138
			s390_printf( "Assertion Failed: %s: File %s, Line %d:\n",
139
						 lpszAppName, pszFileName, nLine);
140
		}
141
#else	
142
		if(pszMessage != 0) 
130
		if(pszMessage != 0) 
143
		{
131
		{
144
			fprintf(stderr, "Assertion Failed: %s: File %s, Line %lu: %s",
132
			fprintf(stderr, "Assertion Failed: %s: File %s, Line %lu: %s",
Lines 149-155 Link Here
149
			fprintf(stderr, "Assertion Failed: %s: File %s, Line %lu ",
137
			fprintf(stderr, "Assertion Failed: %s: File %s, Line %lu ",
150
					lpszAppName, pszFileName, nLine);
138
					lpszAppName, pszFileName, nLine);
151
		}
139
		}
152
#endif	
153
	}
140
	}
154
	
141
	
155
	return sal_False;   /* no abort */
142
	return sal_False;   /* no abort */
Lines 157-167 Link Here
157
144
158
sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszMessage)
145
sal_Int32 SAL_CALL osl_reportError(sal_uInt32 nType, const sal_Char* pszMessage)
159
{
146
{
160
#ifdef S390
161
	s390_printf( pszMessage );
162
#else	
163
	fputs(pszMessage, stderr);
147
	fputs(pszMessage, stderr);
164
#endif	
165
	return 0;
148
	return 0;
166
}
149
}
167
150
(-)oo_1.0.1_src/sal/osl/unx/security.c (-78 lines)
Lines 661-744 Link Here
661
		return osl_Security_E_UserUnknown;
661
		return osl_Security_E_UserUnknown;
662
	}
662
	}
663
663
664
#elif defined S390
665
666
	struct passwd 			*pPasswd;
667
668
	if ((pszUserName == NULL) || (pszPasswd == NULL) || (pSecurity == NULL))
669
		return osl_SEUNKNOWN;
670
	
671
	OSL_TRACE("osl_loginUser %s (for now without password validation!)\n", pszUserName);
672
673
    pPasswd = getpwnam(pszUserName);
674
	if (pPasswd)
675
	{	
676
		int   iResult = 0;
677
/* the function __passwd is not correctly implemented now; we have to wait for the next OS/390 release...
678
		sal_Char* _pszUserName = strdup(pszUserName);
679
		sal_Char* _pszPasswd = strdup(pszPasswd);
680
		asc2ebc(_pszUserName);
681
		asc2ebc(_pszPasswd);
682
683
		iResult = __passwd(_pszUserName, _pszPasswd, NULL);
684
		if(iResult == -1)
685
		{
686
			OSL_TRACE("__passwd result: %d", errno);
687
			perror(NULL);
688
		}
689
690
		free(_pszUserName);
691
		free(_pszPasswd);
692
*/
693
		if (iResult == 0) 
694
		{
695
			if (strlen(pPasswd->pw_name) + 
696
				strlen(pPasswd->pw_dir) +
697
				strlen(pPasswd->pw_shell) + 7 <= PASSWD_BUFFER_SIZE)
698
			{
699
				sal_Char *p;
700
				oslSecurityImpl *pSecImpl = malloc(sizeof(oslSecurityImpl));
701
702
				pSecImpl->m_pPasswd = *pPasswd;
703
704
				p = pSecImpl->m_buffer;
705
				pSecImpl->m_pPasswd.pw_name = p;
706
				strcpy(p, pPasswd->pw_name);
707
708
				p += strlen(pPasswd->pw_name) + 1;
709
				pSecImpl->m_pPasswd.pw_dir = p;
710
				strcpy(p, pPasswd->pw_dir);
711
712
				p += strlen(pPasswd->pw_dir) + 1;
713
				pSecImpl->m_pPasswd.pw_shell = p;			
714
				strcpy(p, pPasswd->pw_shell);
715
716
				pSecImpl->m_isValid = sal_True;
717
				*pSecurity = (oslSecurity)pSecImpl;
718
719
				OSL_TRACE("Homedirectory of %s: %s\n", pSecImpl->m_pPasswd.pw_name, pSecImpl->m_pPasswd.pw_dir);
720
721
				return osl_Security_E_None;
722
			}
723
			else
724
			{
725
				*pSecurity = NULL;
726
				return osl_SEUNKNOWN;	
727
			}
728
		}
729
		else
730
		{
731
			*pSecurity = NULL;
732
			return osl_Security_E_WrongPassword;		
733
		}
734
	}
735
	else
736
	{
737
		*pSecurity = NULL;
738
		return osl_Security_E_UserUnknown;
739
	}
740
741
742
#elif (LINUX && (GLIBC >= 2))
664
#elif (LINUX && (GLIBC >= 2))
743
	
665
	
744
	struct passwd	*pPasswd; 
666
	struct passwd	*pPasswd; 
(-)oo_1.0.1_src/sal/osl/unx/system.h (-23 / +1 lines)
Lines 341-368 Link Here
341
extern char *strdup(const char *);
341
extern char *strdup(const char *);
342
#endif
342
#endif
343
343
344
#ifdef S390
345
#   define  AF_IPX -1
346
#	include <stropts.h>
347
#	include <pthread.h>
348
#	include <xti.h>
349
#	include <sys/time.h>
350
#	include <sys/ioctl.h>
351
#   include <sys/ps.h>
352
#	include <dll.h>
353
#	define  _BIG_ENDIAN
354
#	define  LIBPATH "LIPPATH"
355
# 	define  PTHREAD_NONE_INIT 			{ 0 }
356
#   define  sched_yield()		 		pthread_yield(NULL)
357
#	define  SLEEP_TIMESPEC(timespec)  	OSL_TRACE("WARNINIG:sleep not implemented (%s:%d)", __FILE__, __LINE__)
358
#   define  pthread_testcancel 			pthread_testintr
359
#	define  pthread_detach(t)  			pthread_detach(&(t))
360
#   define  NO_PTHREAD_SEMAPHORES
361
#	define  NO_PTHREAD_PRIORITY
362
#   define  NO_DL_FUNCTIONS
363
#	define  PATH_MAX 					_POSIX_PATH_MAX
364
#endif
365
366
#ifdef SOLARIS
344
#ifdef SOLARIS
367
#	include <shadow.h>
345
#	include <shadow.h>
368
#	include <sys/procfs.h>
346
#	include <sys/procfs.h>
Lines 415-421 Link Here
415
393
416
#if !defined(_WIN32)  && !defined(_WIN16) && !defined(OS2)  && \
394
#if !defined(_WIN32)  && !defined(_WIN16) && !defined(OS2)  && \
417
    !defined(LINUX)   && !defined(NETBSD) && !defined(FREEBSD) && !defined(SCO)  && \
395
    !defined(LINUX)   && !defined(NETBSD) && !defined(FREEBSD) && !defined(SCO)  && \
418
	!defined(AIX)     && !defined(HPUX)   && !defined(S390) && \
396
	!defined(AIX)     && !defined(HPUX)   && \
419
	!defined(SOLARIS) && !defined(IRIX)   && !defined(MAC) && \
397
	!defined(SOLARIS) && !defined(IRIX)   && !defined(MAC) && \
420
	!defined(MACOSX)
398
	!defined(MACOSX)
421
#	error "Target plattform not specified !"
399
#	error "Target plattform not specified !"
(-)oo_1.0.1_src/sal/osl/unx/thread.c (-5 lines)
Lines 400-410 Link Here
400
400
401
    pthread_mutex_unlock(&pThreadImpl->m_AccessLock);
401
    pthread_mutex_unlock(&pThreadImpl->m_AccessLock);
402
    
402
    
403
#ifdef S390
404
	pthread_setintrtype(PTHREAD_INTR_CONTROLLED);
405
	pthread_setintrtype(PTHREAD_INTR_ENABLE);
406
#endif	
407
408
	return (oslThread)pThreadImpl;
403
	return (oslThread)pThreadImpl;
409
}
404
}
410
405
(-)oo_1.0.1_src/solenv/bin/modules/osarch.pm (-1 lines)
Lines 34-40 Link Here
34
%osDefTable	= ("SunOS",		"-DSYSV -DSOLARIS",
34
%osDefTable	= ("SunOS",		"-DSYSV -DSOLARIS",
35
			   "HP-UX",		"-DSYSV -DHPUX",
35
			   "HP-UX",		"-DSYSV -DHPUX",
36
			   "AIX",		"-DSYSV -DAIX",
36
			   "AIX",		"-DSYSV -DAIX",
37
			   "OS/390",	"-DS390 -DS390_ASCII",
38
			   "Linux",		"-DLINUX",
37
			   "Linux",		"-DLINUX",
39
			   "FreeBSD",	"-DFREEBSD",
38
			   "FreeBSD",	"-DFREEBSD",
40
			   "NetBSD",	"-DNETBSD",
39
			   "NetBSD",	"-DNETBSD",
(-)oo_1.0.1_src/solenv/inc/_tg_shl.mk (-30 lines)
Lines 399-407 Link Here
399
	$(SHL1STDLIBS) $(SHL1ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
399
	$(SHL1STDLIBS) $(SHL1ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
400
	@cat $(MISC)$/$(@:b).cmd
400
	@cat $(MISC)$/$(@:b).cmd
401
	@+source $(MISC)$/$(@:b).cmd
401
	@+source $(MISC)$/$(@:b).cmd
402
.IF "$(OS)"=="S390"
403
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
404
.ENDIF
405
.IF "$(UPDATER)"=="YES"
402
.IF "$(UPDATER)"=="YES"
406
.IF "$(SHL1NOCHECK)"==""
403
.IF "$(SHL1NOCHECK)"==""
407
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL1TARGETN)
404
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL1TARGETN)
Lines 824-832 Link Here
824
	$(SHL2STDLIBS) $(SHL2ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
821
	$(SHL2STDLIBS) $(SHL2ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
825
	@cat $(MISC)$/$(@:b).cmd
822
	@cat $(MISC)$/$(@:b).cmd
826
	@+source $(MISC)$/$(@:b).cmd
823
	@+source $(MISC)$/$(@:b).cmd
827
.IF "$(OS)"=="S390"
828
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
829
.ENDIF
830
.IF "$(UPDATER)"=="YES"
824
.IF "$(UPDATER)"=="YES"
831
.IF "$(SHL2NOCHECK)"==""
825
.IF "$(SHL2NOCHECK)"==""
832
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL2TARGETN)
826
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL2TARGETN)
Lines 1249-1257 Link Here
1249
	$(SHL3STDLIBS) $(SHL3ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
1243
	$(SHL3STDLIBS) $(SHL3ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
1250
	@cat $(MISC)$/$(@:b).cmd
1244
	@cat $(MISC)$/$(@:b).cmd
1251
	@+source $(MISC)$/$(@:b).cmd
1245
	@+source $(MISC)$/$(@:b).cmd
1252
.IF "$(OS)"=="S390"
1253
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
1254
.ENDIF
1255
.IF "$(UPDATER)"=="YES"
1246
.IF "$(UPDATER)"=="YES"
1256
.IF "$(SHL3NOCHECK)"==""
1247
.IF "$(SHL3NOCHECK)"==""
1257
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL3TARGETN)
1248
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL3TARGETN)
Lines 1674-1682 Link Here
1674
	$(SHL4STDLIBS) $(SHL4ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
1665
	$(SHL4STDLIBS) $(SHL4ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
1675
	@cat $(MISC)$/$(@:b).cmd
1666
	@cat $(MISC)$/$(@:b).cmd
1676
	@+source $(MISC)$/$(@:b).cmd
1667
	@+source $(MISC)$/$(@:b).cmd
1677
.IF "$(OS)"=="S390"
1678
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
1679
.ENDIF
1680
.IF "$(UPDATER)"=="YES"
1668
.IF "$(UPDATER)"=="YES"
1681
.IF "$(SHL4NOCHECK)"==""
1669
.IF "$(SHL4NOCHECK)"==""
1682
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL4TARGETN)
1670
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL4TARGETN)
Lines 2099-2107 Link Here
2099
	$(SHL5STDLIBS) $(SHL5ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2087
	$(SHL5STDLIBS) $(SHL5ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2100
	@cat $(MISC)$/$(@:b).cmd
2088
	@cat $(MISC)$/$(@:b).cmd
2101
	@+source $(MISC)$/$(@:b).cmd
2089
	@+source $(MISC)$/$(@:b).cmd
2102
.IF "$(OS)"=="S390"
2103
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
2104
.ENDIF
2105
.IF "$(UPDATER)"=="YES"
2090
.IF "$(UPDATER)"=="YES"
2106
.IF "$(SHL5NOCHECK)"==""
2091
.IF "$(SHL5NOCHECK)"==""
2107
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL5TARGETN)
2092
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL5TARGETN)
Lines 2524-2532 Link Here
2524
	$(SHL6STDLIBS) $(SHL6ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2509
	$(SHL6STDLIBS) $(SHL6ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2525
	@cat $(MISC)$/$(@:b).cmd
2510
	@cat $(MISC)$/$(@:b).cmd
2526
	@+source $(MISC)$/$(@:b).cmd
2511
	@+source $(MISC)$/$(@:b).cmd
2527
.IF "$(OS)"=="S390"
2528
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
2529
.ENDIF
2530
.IF "$(UPDATER)"=="YES"
2512
.IF "$(UPDATER)"=="YES"
2531
.IF "$(SHL6NOCHECK)"==""
2513
.IF "$(SHL6NOCHECK)"==""
2532
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL6TARGETN)
2514
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL6TARGETN)
Lines 2949-2957 Link Here
2949
	$(SHL7STDLIBS) $(SHL7ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2931
	$(SHL7STDLIBS) $(SHL7ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
2950
	@cat $(MISC)$/$(@:b).cmd
2932
	@cat $(MISC)$/$(@:b).cmd
2951
	@+source $(MISC)$/$(@:b).cmd
2933
	@+source $(MISC)$/$(@:b).cmd
2952
.IF "$(OS)"=="S390"
2953
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
2954
.ENDIF
2955
.IF "$(UPDATER)"=="YES"
2934
.IF "$(UPDATER)"=="YES"
2956
.IF "$(SHL7NOCHECK)"==""
2935
.IF "$(SHL7NOCHECK)"==""
2957
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL7TARGETN)
2936
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL7TARGETN)
Lines 3374-3382 Link Here
3374
	$(SHL8STDLIBS) $(SHL8ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
3353
	$(SHL8STDLIBS) $(SHL8ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
3375
	@cat $(MISC)$/$(@:b).cmd
3354
	@cat $(MISC)$/$(@:b).cmd
3376
	@+source $(MISC)$/$(@:b).cmd
3355
	@+source $(MISC)$/$(@:b).cmd
3377
.IF "$(OS)"=="S390"
3378
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
3379
.ENDIF
3380
.IF "$(UPDATER)"=="YES"
3356
.IF "$(UPDATER)"=="YES"
3381
.IF "$(SHL8NOCHECK)"==""
3357
.IF "$(SHL8NOCHECK)"==""
3382
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL8TARGETN)
3358
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL8TARGETN)
Lines 3799-3807 Link Here
3799
	$(SHL9STDLIBS) $(SHL9ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
3775
	$(SHL9STDLIBS) $(SHL9ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
3800
	@cat $(MISC)$/$(@:b).cmd
3776
	@cat $(MISC)$/$(@:b).cmd
3801
	@+source $(MISC)$/$(@:b).cmd
3777
	@+source $(MISC)$/$(@:b).cmd
3802
.IF "$(OS)"=="S390"
3803
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
3804
.ENDIF
3805
.IF "$(UPDATER)"=="YES"
3778
.IF "$(UPDATER)"=="YES"
3806
.IF "$(SHL9NOCHECK)"==""
3779
.IF "$(SHL9NOCHECK)"==""
3807
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL9TARGETN)
3780
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL9TARGETN)
Lines 4224-4232 Link Here
4224
	$(SHL10STDLIBS) $(SHL10ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
4197
	$(SHL10STDLIBS) $(SHL10ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
4225
	@cat $(MISC)$/$(@:b).cmd
4198
	@cat $(MISC)$/$(@:b).cmd
4226
	@+source $(MISC)$/$(@:b).cmd
4199
	@+source $(MISC)$/$(@:b).cmd
4227
.IF "$(OS)"=="S390"
4228
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
4229
.ENDIF
4230
.IF "$(UPDATER)"=="YES"
4200
.IF "$(UPDATER)"=="YES"
4231
.IF "$(SHL10NOCHECK)"==""
4201
.IF "$(SHL10NOCHECK)"==""
4232
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL10TARGETN)
4202
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL10TARGETN)
(-)oo_1.0.1_src/solenv/inc/tg_shl.mk (-3 lines)
Lines 499-507 Link Here
499
	$(SHL$(TNR)STDLIBS) $(SHL$(TNR)ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
499
	$(SHL$(TNR)STDLIBS) $(SHL$(TNR)ARCHIVES) $(STDSHL) $(LINKOUTPUT_FILTER) > $(MISC)$/$(@:b).cmd
500
	@cat $(MISC)$/$(@:b).cmd
500
	@cat $(MISC)$/$(@:b).cmd
501
	@+source $(MISC)$/$(@:b).cmd
501
	@+source $(MISC)$/$(@:b).cmd
502
.IF "$(OS)"=="S390"
503
	+mv -f ($@:s/$(DLLPOST)/.x/) $(LB)
504
.ENDIF
505
.IF "$(UPDATER)"=="YES"
502
.IF "$(UPDATER)"=="YES"
506
.IF "$(SHL$(TNR)NOCHECK)"==""
503
.IF "$(SHL$(TNR)NOCHECK)"==""
507
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL$(TNR)TARGETN)
504
	+$(SOLARENV)$/bin$/checkdll.sh -L$(LB) $(SOLARLIB:s/2.6//) $(SHL$(TNR)TARGETN)
(-)oo_1.0.1_src/solenv/inc/unx.mk (-4 lines)
Lines 140-149 Link Here
140
.INCLUDE : unxbsda.mk
140
.INCLUDE : unxbsda.mk
141
.ENDIF
141
.ENDIF
142
142
143
.IF "$(COM)$(OS)$(CPU)" == "ICCS390G"
144
.INCLUDE : unxmvsg.mk
145
.ENDIF
146
147
.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
143
.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
148
.INCLUDE : unxaixp.mk
144
.INCLUDE : unxaixp.mk
149
.ENDIF
145
.ENDIF
(-)oo_1.0.1_src/solenv/inc/unxmvsg.mk (-149 lines)
Lines 1-149 Link Here
1
#
2
# cc statisch
3
#
4
cc  -W "c,LONGNAME,LANGLVL(EXTENDED)" -c  
5
-o ../../salc32s390/obj/diagnose.o 
6
-I. -I../inc -I../../inc -I../../inc -I../../unx/inc -I../../salc32s390/inc 
7
	-I../../../solar/inc -I../../../solar/sal/res -I../../../solar/res 
8
	-I/nw386/dev/s/solenv/res -I/solarserver/inc/stl 
9
	-I/solarserver/364/salc32s390/inc -I/solarserver/s390g3/inc 
10
	-I/solarserver/s390g3/java/inc -I/solarserver/inc/Xp31 -I/solarserver/inc      
11
-D_DEBUG -DS390_ASCII -DS390 -DG3 -DC32 -DUNX -DVCL -DSO3 -D_PTHREADS 
12
	-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DNO_AUDIO 
13
	-D_ALL_SOURCE -DS390_ASCII -DCSET_31 -DSUPD=364 -DSOLAR_VERSION=3640 
14
	-DUPDVER='"SV364"' -DDBG_UTIL          
15
_diagnose.c
16
17
#
18
# cc pic
19
#
20
cc  -W "c,LONGNAME,LANGLVL(EXTENDED),EXPORTALL,DLL" -c 
21
-o ../../salc32s390/so/diagnose.o 
22
-I. -I../inc -I../../inc -I../../inc -I../../unx/inc -I../../salc32s390/inc 
23
	-I../../../solar/inc -I../../../solar/sal/res -I../../../solar/res 
24
	-I/nw386/dev/s/solenv/res -I/solarserver/inc/stl 
25
	-I/solarserver/364/salc32s390/inc -I/solarserver/s390g3/inc 	
26
	-I/solarserver/s390g3/java/inc -I/solarserver/inc/Xp31 -I/solarserver/inc         
27
-D_DEBUG -DSHAREDLIB -DSHARED -DS390_ASCII -DS390 -DG3 -DC32 -DUNX -DVCL -DSO3 
28
	-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE 
29
	-DNO_AUDIO -D_ALL_SOURCE -DS390_ASCII -DCSET_31 -DSUPD=364 -DSOLAR_VERSION=3640 
30
	-DUPDVER='"SV364"' -DDBG_UTIL     
31
_diagnose.c
32
33
#
34
# CC statisch
35
#
36
cxx -W "c,LONGNAME,LANGLVL(EXTENDED)" -c  
37
-o ../../salc32s390/obj/date.o 
38
-I. -I../inc -I../../inc -I../../inc -I../../unx/inc -I../../salc32s390/inc 
39
	-I../../../solar/inc -I../../../solar/sal/res -I../../../solar/res 
40
	-I/nw386/dev/s/solenv/res -I/solarserver/inc/stl 	
41
	-I/solarserver/364/salc32s390/inc -I/solarserver/s390g3/inc 
42
	-I/solarserver/s390g3/java/inc -I/solarserver/inc/Xp31 -I/solarserver/inc 
43
-D_DEBUG -DS390_ASCII -DS390 -DG3 -DC32 -DUNX -DVCL -DSO3 -D_PTHREADS 
44
	-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DNO_AUDIO 
45
	-D_ALL_SOURCE -DS390_ASCII -DCSET_31 -DSUPD=364 -DSOLAR_VERSION=3640 
46
	-DUPDVER='"SV364"' -DDBG_UTIL  
47
-+ _date.cxx
48
49
#
50
# CC pic
51
#
52
cxx -W "c,LONGNAME,LANGLVL(EXTENDED),EXPORTALL" -c  
53
-o ../../salc32s390/so/date.o 
54
-I. -I../inc -I../../inc -I../../inc -I../../unx/inc -I../../salc32s390/inc 
55
	-I../../../solar/inc -I../../../solar/sal/res -I../../../solar/res 
56
	-I/nw386/dev/s/solenv/res -I/solarserver/inc/stl 
57
	-I/solarserver/364/salc32s390/inc -I/solarserver/s390g3/inc 	
58
	-I/solarserver/s390g3/java/inc -I/solarserver/inc/Xp31 -I/solarserver/inc         
59
-D_DEBUG -DSHAREDLIB -DSHARED -DS390_ASCII -DS390 -DG3 -DC32 -DUNX -DVCL -DSO3 	
60
	-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE 
61
	-DNO_AUDIO -D_ALL_SOURCE -DS390_ASCII -DCSET_31 -DSUPD=364 -DSOLAR_VERSION=3640 
62
	-DUPDVER='"SV364"' -DDBG_UTIL     
63
-+ _date.cxx
64
65
66
# mak file fuer unxmvsg
67
68
ASM=
69
AFLAGS=
70
71
cc=				cc -c
72
CC=				cxx -c
73
74
CFLAGSCCOBJ=	-W "c,LONGNAME,LANGLVL(EXTENDED)"
75
CFLAGSCCSLO=	-W "c,LONGNAME,LANGLVL(EXTENDED),EXPORTALL,DLL"
76
CFLAGSCXXOBJ=	-W "c,LONGNAME,LANGLVL(EXTENDED)"
77
CFLAGSCXXSLO=	-W "c,LONGNAME,LANGLVL(EXTENDED),EXPORTALL"
78
79
CDEFS+=			-DALL_SOURCE -DS390_ASCII -DCSET_31
80
CDEFS+=			-D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
81
CDEFS+=			-D_PTHREADS
82
CDEFS+= 		-DNO_AUDIO -DPRINTER_DUMMY
83
84
CFLAGS=			-I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC)
85
CFLAGSCC=
86
CFLAGSCXX=
87
CFLAGSOBJGUIST=
88
CFLAGSOBJCUIST=
89
CFLAGSOBJGUIMT=
90
CFLAGSOBJCUIMT=
91
CFLAGSSLOGUIMT=
92
CFLAGSSLOCUIMT=
93
CFLAGSPROF=
94
CFLAGSDEBUG=	-g
95
CFLAGSDBGUTIL=
96
CFLAGSOPT=		-O2
97
CFLAGSNOOPT=
98
CFLAGSOUTOBJ=	-o
99
100
101
STATIC=			-Bstatic
102
DYNAMIC=		-Bdynamic
103
104
THREADLIB=
105
LINK=			cxx 
106
LINKFLAGS=		-W "l,DLL"
107
LINKFLAGSAPPGUI=
108
LINKFLAGSSHLGUI=
109
LINKFLAGSAPPCUI=
110
LINKFLAGSSHLCUI=
111
LINKFLAGSTACK=
112
LINKFLAGSPROF=
113
LINKFLAGSDEBUG=
114
LINKFLAGSOPT=
115
116
STDOBJGUI=
117
STDSLOGUI=
118
STDOBJCUI=
119
STDSLOCUI=
120
STDLIBGUIST=-lrpclib -lm -lc		# Applikationen
121
STDLIBCUIST=
122
STDLIBGUIMT=
123
STDLIBCUIMT=
124
STDSHLGUIMT=-lrpclib -lm -lc		# Shared Libraries
125
STDSHLCUIMT=
126
127
LIBMGR=			ar
128
LIBFLAGS=		-r
129
LIBEXT=			.a
130
131
IMPLIB=
132
IMPLIBFLAGS=
133
134
MAPSYM=
135
MAPSYMFLAGS=
136
137
RC=				irc
138
RCFLAGS=		-fo$@ $(RCFILES)
139
RCLINK=
140
RCLINKFLAGS=
141
RCSETVERSION=
142
143
DLLPOSTFIX=		mg
144
DLLPRE=			lib
145
DLLPOST=		.so
146
147
LDUMP=
148
149
(-)oo_1.0.1_src/soltools/cpp/_cpp.c (-1 / +1 lines)
Lines 51-57 Link Here
51
void
51
void
52
    process(Tokenrow * trp)
52
    process(Tokenrow * trp)
53
{
53
{
54
    int anymacros = 0;  /* S390: XDBX stürzt ab! */
54
    int anymacros = 0;
55
55
56
    for (;;)
56
    for (;;)
57
    {
57
    {
(-)oo_1.0.1_src/soltools/cpp/_include.c (-4 / +1 lines)
Lines 2-8 Link Here
2
#include <stdlib.h>
2
#include <stdlib.h>
3
#include <string.h>
3
#include <string.h>
4
#include <fcntl.h>
4
#include <fcntl.h>
5
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
5
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
6
#	include <io.h>
6
#	include <io.h>
7
#else
7
#else
8
#	include <unistd.h>
8
#	include <unistd.h>
Lines 14-22 Link Here
14
#ifdef _MSC_VER
14
#ifdef _MSC_VER
15
#	define _POSIX_
15
#	define _POSIX_
16
#endif
16
#endif
17
#ifdef S390
18
#   define PATH_MAX _POSIX_PATH_MAX
19
#endif
20
#ifdef __IBMC__
17
#ifdef __IBMC__
21
#	include <fcntl.h>
18
#	include <fcntl.h>
22
#   define PATH_MAX _MAX_PATH
19
#   define PATH_MAX _MAX_PATH
(-)oo_1.0.1_src/soltools/cpp/_lex.c (-12 / +4 lines)
Lines 1-7 Link Here
1
#include <stdio.h>
1
#include <stdio.h>
2
#include <stdlib.h>
2
#include <stdlib.h>
3
#include <string.h>
3
#include <string.h>
4
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
4
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
5
#include <io.h>
5
#include <io.h>
6
#else
6
#else
7
#include <unistd.h>
7
#include <unistd.h>
Lines 37-47 Link Here
37
#define	C_ALPH	2
37
#define	C_ALPH	2
38
#define	C_NUM	3
38
#define	C_NUM	3
39
#define	C_EOF	4
39
#define	C_EOF	4
40
#ifdef S390
41
#define	C_XX	6
42
#else
43
#define	C_XX	5
40
#define	C_XX	5
44
#endif
45
41
46
enum state
42
enum state
47
{
43
{
Lines 268-279 Link Here
268
                    continue;
264
                    continue;
269
                case C_ALPH:
265
                case C_ALPH:
270
                    for (j = 0; j <= 256; j++)
266
                    for (j = 0; j <= 256; j++)
271
#ifdef S390
272
						if( isalpha( j ) || (j == '_') )
273
#else							
274
                        if ('a' <= j && j <= 'z' || 'A' <= j && j <= 'Z'
267
                        if ('a' <= j && j <= 'z' || 'A' <= j && j <= 'Z'
275
                            || j == '_')
268
                            || j == '_')
276
#endif							
277
                            bigfsm[j][fp->state] = nstate;
269
                            bigfsm[j][fp->state] = nstate;
278
                    continue;
270
                    continue;
279
                case C_NUM:
271
                case C_NUM:
Lines 351-357 Link Here
351
            }
343
            }
352
    }
344
    }
353
    maxp = &trp->bp[trp->max];
345
    maxp = &trp->bp[trp->max];
354
    runelen = 1;  /* S390: XDBX stürzt ab! */
346
    runelen = 1;
355
    for (;;)
347
    for (;;)
356
    {
348
    {
357
continue2:
349
continue2:
Lines 370-376 Link Here
370
        {
362
        {
371
            oldstate = state;
363
            oldstate = state;
372
364
373
            c = *ip;  /* S390: XDBX stürzt (gelegentlich) ab! */
365
            c = *ip;
374
						
366
						
375
            if ((state = bigfsm[c][state]) >= 0)
367
            if ((state = bigfsm[c][state]) >= 0)
376
            {
368
            {
Lines 416-422 Link Here
416
408
417
					if (c == '\n')
409
					if (c == '\n')
418
					{
410
					{
419
					    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF); /* S390: XDBX stürzt (manchmal) ab! */
411
					    while (s->inp + 1 >= s->inl && fillbuf(s) != EOF);
420
					
412
					
421
						if (s->inp[1] == '\r')
413
						if (s->inp[1] == '\r')
422
						{
414
						{
(-)oo_1.0.1_src/soltools/cpp/_macro.c (-3 lines)
Lines 8-16 Link Here
8
#ifdef _MSC_VER
8
#ifdef _MSC_VER
9
#	define _POSIX_
9
#	define _POSIX_
10
#endif
10
#endif
11
#ifdef S390
12
#   define PATH_MAX _POSIX_PATH_MAX
13
#endif
14
#ifdef __IBMC__
11
#ifdef __IBMC__
15
#   define PATH_MAX _MAX_PATH
12
#   define PATH_MAX _MAX_PATH
16
#endif
13
#endif
(-)oo_1.0.1_src/soltools/cpp/_tokens.c (-1 / +1 lines)
Lines 2-8 Link Here
2
#include <stdlib.h>
2
#include <stdlib.h>
3
#include <string.h>
3
#include <string.h>
4
#include <ctype.h>
4
#include <ctype.h>
5
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
5
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
6
#include <io.h>
6
#include <io.h>
7
#else
7
#else
8
#include <unistd.h>
8
#include <unistd.h>
(-)oo_1.0.1_src/soltools/cpp/_unix.c (-1 / +1 lines)
Lines 4-10 Link Here
4
#include <string.h>
4
#include <string.h>
5
#include <ctype.h>
5
#include <ctype.h>
6
#include <fcntl.h>
6
#include <fcntl.h>
7
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__)) && !(defined S390)
7
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
8
#include <io.h>
8
#include <io.h>
9
#else
9
#else
10
#include <unistd.h>
10
#include <unistd.h>
(-)oo_1.0.1_src/soltools/cpp/cpp.h (-6 lines)
Lines 47-60 Link Here
47
#define	ISARCHITECTURE	0x10            /* architecture */
47
#define	ISARCHITECTURE	0x10            /* architecture */
48
#define ISACTIVE        0x80            /* is macro currently expanded */
48
#define ISACTIVE        0x80            /* is macro currently expanded */
49
49
50
#ifdef S390
51
/* 0xfe und 0xfd fallen auf der S/390 auf Control-Chars */
52
#define EOB     0x07
53
#define EOFC    0x08
54
#else
55
#define	EOB		0xFE                    /* sentinel for end of input buffer */
50
#define	EOB		0xFE                    /* sentinel for end of input buffer */
56
#define	EOFC	0xFD                    /* sentinel for end of input file */
51
#define	EOFC	0xFD                    /* sentinel for end of input file */
57
#endif
58
#define	XPWS	1                       /* token flag: white space to assure token sep. */
52
#define	XPWS	1                       /* token flag: white space to assure token sep. */
59
#define XTWS	2
53
#define XTWS	2
60
54
(-)oo_1.0.1_src/svtools/inc/svarray.hxx (-1 / +1 lines)
Lines 1042-1048 Link Here
1042
#define C40_PTR_REPLACE( c, p) Replace( (c const *) p )
1042
#define C40_PTR_REPLACE( c, p) Replace( (c const *) p )
1043
#define C40_GETPOS( c, r) GetPos( (c const *)r )
1043
#define C40_GETPOS( c, r) GetPos( (c const *)r )
1044
#else
1044
#else
1045
#if defined WTC || defined IRIX || defined ICC || defined S390 || defined HPUX || (defined GCC && __GNUC__ >= 3)
1045
#if defined WTC || defined IRIX || defined ICC || defined HPUX || (defined GCC && __GNUC__ >= 3)
1046
#define C40_INSERT( c, p, n ) Insert( (c const *&) p, n )
1046
#define C40_INSERT( c, p, n ) Insert( (c const *&) p, n )
1047
#define C40_PUSH( c, p) Push( (c const *&) p )
1047
#define C40_PUSH( c, p) Push( (c const *&) p )
1048
#define C40_PTR_INSERT( c, p ) Insert( (c const *&) p )
1048
#define C40_PTR_INSERT( c, p ) Insert( (c const *&) p )
(-)oo_1.0.1_src/svtools/source/filter.vcl/filter/sgvspln.cxx (-10 lines)
Lines 92-100 Link Here
92
92
93
/*-----------------------  FILE u_const.h  ---------------------------*/
93
/*-----------------------  FILE u_const.h  ---------------------------*/
94
94
95
#ifndef S390
96
#define IEEE
95
#define IEEE
97
#endif
98
96
99
/* IEEE - Norm fuer die Darstellung von Gleitkommazahlen:
97
/* IEEE - Norm fuer die Darstellung von Gleitkommazahlen:
100
98
Lines 133-144 Link Here
133
131
134
#else               /*------------------ sonst -----------------------*/
132
#else               /*------------------ sonst -----------------------*/
135
133
136
#ifndef S390
137
double exp  (double);
134
double exp  (double);
138
double atan (double);
135
double atan (double);
139
double pow  (double,double);
136
double pow  (double,double);
140
double sqrt (double);
137
double sqrt (double);
141
#endif
142
138
143
double masch()            /* MACH_EPS maschinenunabhaengig bestimmen  */
139
double masch()            /* MACH_EPS maschinenunabhaengig bestimmen  */
144
{
140
{
Lines 167-180 Link Here
167
   gepasst werden.
163
   gepasst werden.
168
   */
164
   */
169
165
170
#ifndef S390
171
#define MAXEXPON  1023.0                   /* groesster Exponent      */
166
#define MAXEXPON  1023.0                   /* groesster Exponent      */
172
#define MINEXPON -1024.0                   /* kleinster Exponent      */
167
#define MINEXPON -1024.0                   /* kleinster Exponent      */
173
#else
174
#include <float.h>
175
#define MAXEXPON  75.0
176
#define MINEXPON  -79.0
177
#endif
178
168
179
169
180
#define MACH_EPS  masch()
170
#define MACH_EPS  masch()
(-)oo_1.0.1_src/svtools/source/numbers/zformat.cxx (-5 lines)
Lines 109-121 Link Here
109
const USHORT _MAX_FRACTION_PREC = 3;
109
const USHORT _MAX_FRACTION_PREC = 3;
110
const double D_EPS = 1.0E-2;
110
const double D_EPS = 1.0E-2;
111
111
112
#ifdef S390
113
const double _D_MAX_D_BY_100  = 7.2E73;
114
const double _D_MIN_M_BY_1000 = 5.4E-76;
115
#else
116
const double _D_MAX_D_BY_100  = 1.7E306;
112
const double _D_MAX_D_BY_100  = 1.7E306;
117
const double _D_MIN_M_BY_1000 = 2.3E-305;
113
const double _D_MIN_M_BY_1000 = 2.3E-305;
118
#endif
119
114
120
static BYTE cCharWidths[ 128-32 ] = {
115
static BYTE cCharWidths[ 128-32 ] = {
121
	1,1,1,2,2,3,2,1,1,1,1,2,1,1,1,1,
116
	1,1,1,2,2,3,2,1,1,1,1,2,1,1,1,1,
(-)oo_1.0.1_src/tools/source/fsys/unx.cxx (-7 / +1 lines)
Lines 73-81 Link Here
73
#include <sys/mntctl.h>
73
#include <sys/mntctl.h>
74
#include <sys/vmount.h>
74
#include <sys/vmount.h>
75
extern "C" int mntctl( int cmd, size_t size, char* buf );
75
extern "C" int mntctl( int cmd, size_t size, char* buf );
76
#elif defined S390
77
#include <sys/mntent.h>
78
#define mnttab w_mntent
79
#elif defined(NETBSD) 
76
#elif defined(NETBSD) 
80
#include <sys/mount.h>
77
#include <sys/mount.h>
81
#elif defined(FREEBSD) || defined(MACOSX)
78
#elif defined(FREEBSD) || defined(MACOSX)
Lines 111-119 Link Here
111
#define MNTTAB 		 "/etc/mnttab"
108
#define MNTTAB 		 "/etc/mnttab"
112
#define MOUNTSPECIAL mt_dev
109
#define MOUNTSPECIAL mt_dev
113
#define MOUNTPOINT   mt_filsys
110
#define MOUNTPOINT   mt_filsys
114
#elif defined S390
115
#define MOUNTSPECIAL mnt_fsname
116
#define MOUNTPOINT 	 mnt_mountpoint
117
#else
111
#else
118
#define MOUNTSPECIAL mnt_fsname
112
#define MOUNTSPECIAL mnt_fsname
119
#define MOUNTPOINT   mnt_dir
113
#define MOUNTPOINT   mnt_dir
Lines 190-196 Link Here
190
		return FALSE;
184
		return FALSE;
191
	struct mnttab mnt[1];
185
	struct mnttab mnt[1];
192
	while (fread (&mnt, sizeof mnt, 1, fp) > 0)
186
	while (fread (&mnt, sizeof mnt, 1, fp) > 0)
193
#elif defined DECUNIX || defined AIX || defined S390
187
#elif defined DECUNIX || defined AIX
194
	FILE *fp = NULL;
188
	FILE *fp = NULL;
195
	if (! fp)
189
	if (! fp)
196
		return FALSE;
190
		return FALSE;
(-)oo_1.0.1_src/tools/source/fsys/unx.hxx (-4 lines)
Lines 65-75 Link Here
65
#include <string.h>
65
#include <string.h>
66
#include <sys/types.h>
66
#include <sys/types.h>
67
#include <sys/stat.h>
67
#include <sys/stat.h>
68
69
#ifndef S390
70
#include <sys/param.h>
68
#include <sys/param.h>
71
#endif
72
73
#include <dirent.h>
69
#include <dirent.h>
74
#include <unistd.h>
70
#include <unistd.h>
75
/* #include <sysent.h> */
71
/* #include <sysent.h> */
(-)oo_1.0.1_src/tools/source/rc/resmgr.cxx (-12 lines)
Lines 144-151 Link Here
144
144
145
#if defined( OS2 ) && defined( ICC )
145
#if defined( OS2 ) && defined( ICC )
146
static int _Optlink Compare( const void * pFirst, const void * pSecond )
146
static int _Optlink Compare( const void * pFirst, const void * pSecond )
147
#elif S390
148
extern "C" { int Compare( const void * pFirst, const void * pSecond )
149
#else
147
#else
150
static int __LOADONCALLAPI Compare( const void * pFirst, const void * pSecond )
148
static int __LOADONCALLAPI Compare( const void * pFirst, const void * pSecond )
151
#endif
149
#endif
Lines 158-171 Link Here
158
        return( 0 );
156
        return( 0 );
159
}
157
}
160
158
161
#ifdef S390
162
}
163
#endif
164
165
#if defined( OS2 ) && defined( ICC )
159
#if defined( OS2 ) && defined( ICC )
166
static int _Optlink Search( const void * nTypeAndId, const void * pSecond )
160
static int _Optlink Search( const void * nTypeAndId, const void * pSecond )
167
#elif S390
168
extern "C" { int Search( const void * nTypeAndId, const void * pSecond )
169
#else
161
#else
170
static int __LOADONCALLAPI Search( const void * nTypeAndId, const void * pSecond )
162
static int __LOADONCALLAPI Search( const void * nTypeAndId, const void * pSecond )
171
#endif
163
#endif
Lines 178-187 Link Here
178
        return( 0 );
170
        return( 0 );
179
}
171
}
180
172
181
#ifdef S390
182
}
183
#endif
184
185
// =======================================================================
173
// =======================================================================
186
174
187
static ResHookProc pImplResHookProc = 0;
175
static ResHookProc pImplResHookProc = 0;
(-)oo_1.0.1_src/tools/source/stream/strmunx.cxx (-1 / +1 lines)
Lines 244-250 Link Here
244
        { 0,            SVSTREAM_OK },
244
        { 0,            SVSTREAM_OK },
245
        { EACCES,       SVSTREAM_ACCESS_DENIED },
245
        { EACCES,       SVSTREAM_ACCESS_DENIED },
246
        { EBADF,        SVSTREAM_INVALID_HANDLE },
246
        { EBADF,        SVSTREAM_INVALID_HANDLE },
247
#if defined( RS6000 ) || defined( ALPHA ) || defined( HP9000 ) || defined( NETBSD ) || defined( S390 ) || defined(FREEBSD) || defined(MACOSX)
247
#if defined( RS6000 ) || defined( ALPHA ) || defined( HP9000 ) || defined( NETBSD ) || defined(FREEBSD) || defined(MACOSX)
248
        { EDEADLK,      SVSTREAM_LOCKING_VIOLATION },
248
        { EDEADLK,      SVSTREAM_LOCKING_VIOLATION },
249
#else
249
#else
250
        { EDEADLOCK,    SVSTREAM_LOCKING_VIOLATION },
250
        { EDEADLOCK,    SVSTREAM_LOCKING_VIOLATION },
(-)oo_1.0.1_src/vcl/unx/inc/salpdecl.h (-1 / +1 lines)
Lines 71-77 Link Here
71
extern "C" {
71
extern "C" {
72
#endif
72
#endif
73
73
74
#if defined S390 || defined AIX
74
#if defined AIX
75
#define NO_SHM_FUNCTIONS
75
#define NO_SHM_FUNCTIONS
76
#endif
76
#endif
77
77
(-)oo_1.0.1_src/vcl/unx/source/app/saldisp.cxx (-1 / +1 lines)
Lines 219-225 Link Here
219
#include "vertcurs_mask.h" 
219
#include "vertcurs_mask.h" 
220
220
221
#include "invert50.h"
221
#include "invert50.h"
222
#if !(defined S390 || defined AIX)
222
#if !(defined AIX)
223
#include <X11/extensions/XShm.h>
223
#include <X11/extensions/XShm.h>
224
#endif
224
#endif
225
#include <X11/keysym.h>
225
#include <X11/keysym.h>
(-)oo_1.0.1_src/vcl/unx/source/app/salmain.cxx (-4 lines)
Lines 78-88 Link Here
78
// -=-= main() -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
78
// -=-= main() -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
79
BEGIN_C
79
BEGIN_C
80
80
81
#ifdef S390
82
int sv_main( int argc, char *argv[] )
83
#else
84
int main( int argc, char *argv[] )
81
int main( int argc, char *argv[] )
85
#endif
86
{
82
{
87
    SVMain();
83
    SVMain();
88
84

Return to issue 8385