1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

Merge branch 'master' into multi-monitor

This commit is contained in:
Jon Trulson 2013-05-17 23:55:51 -06:00
commit fbe451187f
16 changed files with 59 additions and 19 deletions

View file

@ -417,8 +417,19 @@ gettransient(int proto, int vers, int *sockp)
// if you try to grab a number for udp and we have it grabbed
// for tcp).
// search up in the range 0x4fffffff - 0x5fffffff
for (prognum = 0x4fffffff; prognum <= 0x5fffffff; prognum++) {
// JET - this is way too many pnums to search, and causes what
// appears to be an infinite loop (though it isn't) if the
// user is running an rpcbind in secure mode and not using
// libtirpc - a common error. The end result is staring at
// the dthello welcome screen. So - rather than search this
// immense space, we will only search from start to +-50
// before bailing. If a hundred attmepts to get a transient
// fail, I don't see that doing approximately 537 million
// attempts are worth it :)
#define MAX_TRANS_RANGE 50
// search up in the range 0x4fffffff to 0x4fffffff + MAX_TRANS_RANGE
for (prognum = 0x4fffffff; prognum <= (0x4fffffff + MAX_TRANS_RANGE); prognum++) {
/* XXX: pmap_set allows the same prognum for different */
/* protocols so we hack around that by attemptint to */
/* set both tcp and udp. */
@ -447,7 +458,7 @@ gettransient(int proto, int vers, int *sockp)
}
// search down in the range 0x4ffffffe - 0x40000000
for (prognum = 0x4ffffffe; prognum >= 0x40000000; prognum--) {
for (prognum = 0x4ffffffe; prognum >= (0x4ffffffe - MAX_TRANS_RANGE); prognum--) {
/* XXX: pmap_set allows the same prognum for different */
/* protocols so we hack around that by attemptint to */
/* set both tcp and udp. */

View file

@ -10,7 +10,7 @@ EXTRADIRS = types localized tttypes $(NSGMLSDIR) util
XCOMM some of these cannot be built on linux yet.
XCOMM dtksh dtinfo
#if defined(LinuxArchitecture)
DTKSHDIR =
DTKSHDIR = dtksh
DTINFODIR =
DTCMDIR = dtcm
DTLOGINDIR = dtlogin

View file

@ -61,16 +61,15 @@ EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
.NO_PARALLEL:
#endif
#ifdef LinuxArchitecture
SYS_LIBRARIES = -lm -ldl
#endif
#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
#if defined(LinuxArchitecture)
SUBDIRS = examples
KSH93OBJ =
#else
SUBDIRS = examples ksh93
KSH93OBJ = $(KSH93SRC)/ksh93.o
#endif
MakeSubdirs($(SUBDIRS))

View file

@ -56,7 +56,7 @@ ALL_SUBS = *
ksh93src:
$(RM) $(SHIP_DIR)/$(ALL_SUBS)/$(ALL_SUBS)/BUILT; \
SHELL=$(KORNSHELL) CC=$(CC) CCFLAGS="$(CCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)
SHELL=$(KORNSHELL) CC="$(CC)" CCFLAGS="$(CCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)
ksh93.o: $(OBJS)
$(LD) -r -o $@ $(OBJS)

View file

@ -1103,7 +1103,7 @@ $inc
*) e='-e /[\\\\/]sys[\\\\/]'$x'\.h"/d' ;;
esac
if $cc -E $tmp.c <&$nullin >$tmp.i
then i=`sed -e '/^#[line ]*[0-9][0-9]*[ ][ ]*"[\\\\/].*[\\\\/]'$x'\.h"/!d' $e -e s'/.*"\(.*\)".*/\1/' -e 's,\\\\,/,g' -e 's,///*,/,g' $tmp.i | sort -u`
then i=`sed -e '/^#[line ]*[0-9][0-9]*[ ][ ]*"[\\\\/].*[\\\\/]'$x'\.h"/!d' $e -e '/\/bits\//d' -e s'/.*"\(.*\)".*/\1/' -e 's,\\\\,/,g' -e 's,///*,/,g' $tmp.i | sort -u`
for i in $i
do break
done

View file

@ -235,7 +235,11 @@ OPEN_MAX_CEIL 50 AST XX 1 L OPEN_MAX
OS_VERSION 119 AES SC 1 FSU
PAGESIZE 51 POSIX SC 1 L PAGE_SIZE 4096
#if _lib_getpagesize
#if defined(linux)
extern int getpagesize(void);
#else
extern ssize_t getpagesize(void);
#endif
#define _LOCAL_PAGESIZE getpagesize()
#endif
PAGE_SIZE 101 XOPEN SC 1 L PAGESIZE

View file

@ -239,7 +239,11 @@ OPEN_MAX_CEIL 50 AST XX 1 L OPEN_MAX
OS_VERSION 119 AES SC 1 FSU
PAGESIZE 51 POSIX SC 1 L PAGE_SIZE 4096
#if _lib_getpagesize
#if defined(linux)
extern int getpagesize(void);
#else
extern ssize_t getpagesize(void);
#endif
#define _LOCAL_PAGESIZE getpagesize()
#endif
PAGE_SIZE 101 XOPEN SC 1 L PAGESIZE

View file

@ -1,4 +1,3 @@
mac _STAT_VER,fstat,lstat,stat,_MKNOD_VER,mknod sys/types.h sys/stat.h
cat{
#if defined(__uxp__)
#include <sys/types.h>

View file

@ -5,10 +5,10 @@ lib _cleanup,BSDsetpgrp,atexit,bcopy,bzero,confstr,dirread,dup2,fchmod
lib fcntl,fnmatch,fork,fsync,getconf,getdents,getdirentries,getdtablesize
lib getgroups,getpagesize,getrlimit,getuniverse,index,killpg,link
lib localeconv,lstat,mbtowc,memccpy
lib memchr,memcmp,memcpy,memdup,memmove,memset,mkdir,mkfifo,mknod,mktemp
lib memchr,memcmp,memcpy,memmove,memset,mkdir,mkfifo,mknod,mktemp
lib mount,on_exit,onexit,opendir,pathconf,readlink,remove,rename,rindex
lib rmdir,rewinddir,setlocale,setpgid,setpgrp,setpgrp2,setreuid,setsid
lib setuid,sigaction,sigprocmask,sigsetmask,sigunblock,sigvec
lib setuid,sigaction,sigprocmask,sigsetmask,sigvec
lib socketpair,spawnve,spawnveg,strchr,strcoll,strdup,strerror,strrchr
lib strtod,strtol,strtoul,strxfrm,symlink,sysconf
lib telldir,tmpnam,tzset,universe,unlink,utime,vfork

View file

@ -16,5 +16,7 @@ cat{
#else
#undef ioctl
#endif
#if !defined(linux)
extern int ioctl(int, int, ...);
#endif
}end

View file

@ -121,9 +121,17 @@
* workaround botched headers that assume <stdio.h>
*/
#if defined(linux)
#ifndef __FILE
#define __FILE FILE
#endif
#endif
#if !defined(CSRG_BASED)
#ifndef FILE
#define FILE Sfio_t
#endif
#endif
/*
* exit() support -- this matches shell exit codes

View file

@ -137,7 +137,9 @@
#define _SKIP_SFSTDIO_H
#else
#define _SFSTDIO_H
#if !defined(linux)
#define FILE int
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#if !_std_def_calloc
__STDPP__directive pragma pp:hide calloc
@ -339,8 +341,6 @@ typedef unsigned short wchar_t;
#include <ast_types.h>
#endif
struct stat;
#if defined(__cplusplus) || !defined(_std_stdlib) && !defined(__STDC__)
/* <stdlib.h> */

View file

@ -149,9 +149,11 @@
#define _STDIO_INCLUDED 1
#endif
#if !defined(CSRG_BASED)
#ifndef FILE
#define FILE Sfio_t
#endif
#endif
#endif /* __cplusplus */
typedef struct _sfio_ Sfile_t, Sfio_t, SFIO;

View file

@ -301,7 +301,7 @@ loop_fa :
GETARG(form,form,argf,args,char*,char*,'1',t_user,n_user);
if(!form)
form = "";
#if defined(CSRG_BASED) && !defined(__LP64__)
#if (defined(CSRG_BASED) && !defined(__LP64__)) || (defined(linux) && !defined(__LP64__))
GETARG(argsp,argsp,argf,args,va_list*,va_list*,'2',t_user,n_user);
memcpy((Void_t*)(&(fa->args)), (Void_t*)(&args), sizeof(va_list));
memcpy((Void_t*)(&args), (Void_t*)argsp, sizeof(va_list));

View file

@ -1 +1,8 @@
lib lchmod,lchown
lib lchown
tst lib_lchmod note{ lchmod() in default lib(s) }end link{
#include <sys/stat.h>
main()
{ lchmod("/tmp/lchmod_test", 0755);
return 0;
}
}end

View file

@ -633,6 +633,11 @@ CreateFirstPad(
initialServerResources = pPad->xrdb;
initialServerResources.server = False; /* so window will be mapped */
initialServerGeometry = pPad->geometry;
if(pPad->xrdb.workspaceList)
pPad->xrdb.workspaceList = strdup(pPad->xrdb.workspaceList);
if(pPad->xrdb.session)
pPad->xrdb.session = strdup(pPad->xrdb.session);
pPad->geometry = strdup(pPad->geometry);
}
/* Set some initial Editor instance values */
@ -1677,7 +1682,6 @@ RestoreInitialServerResources(
XtFree(pPad->geometry );
pPad->xrdb = initialServerResources;
pPad->geometry = initialServerGeometry;
/* -----> duplicate resource strings */
if (initialServerResources.workspaceList != (char *)NULL)