Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
eb4ee6c3
Commit
eb4ee6c3
authored
8 years ago
by
Ulrich Sibiller
Committed by
Mike Gabriel
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undef hpux
parent
175a3416
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
91 deletions
+4
-91
Xtrans.c
nx-X11/lib/xtrans/Xtrans.c
+2
-2
Xtransint.h
nx-X11/lib/xtrans/Xtransint.h
+1
-1
Xtranssock.c
nx-X11/lib/xtrans/Xtranssock.c
+1
-88
No files found.
nx-X11/lib/xtrans/Xtrans.c
View file @
eb4ee6c3
...
@@ -681,7 +681,7 @@ TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg)
...
@@ -681,7 +681,7 @@ TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg)
break
;
break
;
case
1
:
/* Set to non-blocking mode */
case
1
:
/* Set to non-blocking mode */
#if defined(O_NONBLOCK) && (!defined(ultrix) && !defined(
hpux) && !defined(AIXV3) && !defined(
uniosu) && !defined(__UNIXOS2__) && !defined(SCO325)) && !defined(__QNX__)
#if defined(O_NONBLOCK) && (!defined(ultrix) && !defined(uniosu) && !defined(__UNIXOS2__) && !defined(SCO325)) && !defined(__QNX__)
ret
=
fcntl
(
fd
,
F_GETFL
,
0
);
ret
=
fcntl
(
fd
,
F_GETFL
,
0
);
if
(
ret
!=
-
1
)
if
(
ret
!=
-
1
)
ret
=
fcntl
(
fd
,
F_SETFL
,
ret
|
O_NONBLOCK
);
ret
=
fcntl
(
fd
,
F_SETFL
,
ret
|
O_NONBLOCK
);
...
@@ -1295,7 +1295,7 @@ static int TRANS(WriteV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
...
@@ -1295,7 +1295,7 @@ static int TRANS(WriteV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
#endif
/* SYSV && i386 || WIN32 || __sxg__ */
#endif
/* SYSV && i386 || WIN32 || __sxg__ */
#if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(
hpux) || defined(
USG) || defined(SVR4) || defined(__SCO__)
#if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(USG) || defined(SVR4) || defined(__SCO__)
#ifndef NEED_UTSNAME
#ifndef NEED_UTSNAME
#define NEED_UTSNAME
#define NEED_UTSNAME
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
nx-X11/lib/xtrans/Xtransint.h
View file @
eb4ee6c3
...
@@ -100,7 +100,7 @@ from The Open Group.
...
@@ -100,7 +100,7 @@ from The Open Group.
* to avoid a race condition. JKJ (6/5/97)
* to avoid a race condition. JKJ (6/5/97)
*/
*/
# if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(
hpux) || defined(
USG) || defined(SVR4) || defined(__SCO__)
# if (defined(_POSIX_SOURCE) && !defined(AIXV3) && !defined(__QNX__)) || defined(USG) || defined(SVR4) || defined(__SCO__)
# ifndef NEED_UTSNAME
# ifndef NEED_UTSNAME
# define NEED_UTSNAME
# define NEED_UTSNAME
# endif
# endif
...
...
This diff is collapsed.
Click to expand it.
nx-X11/lib/xtrans/Xtranssock.c
View file @
eb4ee6c3
...
@@ -117,7 +117,7 @@ from the copyright holders.
...
@@ -117,7 +117,7 @@ from the copyright holders.
#include <sys/stat.h>
#include <sys/stat.h>
#endif
#endif
#if defined(
hpux) || (defined(MOTOROLA) && defined(SYSV)
)
#if defined(
MOTOROLA) && defined(SYSV
)
#define NO_TCP_H
#define NO_TCP_H
#endif
#endif
...
@@ -228,36 +228,6 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
...
@@ -228,36 +228,6 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
#ifdef UNIXCONN
#ifdef UNIXCONN
#ifdef hpux
#if defined(X11_t)
#define UNIX_PATH "/usr/spool/sockets/X11/"
#define UNIX_DIR "/usr/spool/sockets/X11"
#define OLD_UNIX_PATH "/tmp/.X11-unix/X"
#endif
/* X11_t */
#if defined(XIM_t)
#define UNIX_PATH "/usr/spool/sockets/XIM/"
#define UNIX_DIR "/usr/spool/sockets/XIM"
#define OLD_UNIX_PATH "/tmp/.XIM-unix/XIM"
#endif
/* XIM_t */
#if defined(FS_t) || defined(FONT_t)
#define UNIX_PATH "/usr/spool/sockets/fontserv/"
#define UNIX_DIR "/usr/spool/sockets/fontserv"
#endif
/* FS_t || FONT_t */
#if defined(ICE_t)
#define UNIX_PATH "/usr/spool/sockets/ICE/"
#define UNIX_DIR "/usr/spool/sockets/ICE"
#endif
/* ICE_t */
#if defined(TEST_t)
#define UNIX_PATH "/usr/spool/sockets/xtrans_test/"
#define UNIX_DIR "/usr/spool/sockets/xtrans_test"
#endif
#if defined(LBXPROXY_t)
#define UNIX_PATH "/usr/spool/sockets/X11/"
#define UNIX_DIR "/usr/spool/sockets/X11"
#endif
#else
/* !hpux */
#if defined(X11_t)
#if defined(X11_t)
#define UNIX_PATH "/tmp/.X11-unix/X"
#define UNIX_PATH "/tmp/.X11-unix/X"
...
@@ -284,7 +254,6 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
...
@@ -284,7 +254,6 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
#define UNIX_DIR "/tmp/.X11-unix"
#define UNIX_DIR "/tmp/.X11-unix"
#endif
#endif
#endif
/* hpux */
#endif
/* UNIXCONN */
#endif
/* UNIXCONN */
...
@@ -481,30 +450,6 @@ _NXGetUnixPathError:
...
@@ -481,30 +450,6 @@ _NXGetUnixPathError:
return
_NXUnixPath
;
return
_NXUnixPath
;
}
}
#ifdef hpux
static
char
*
_NXGetOldUnixPath
(
char
*
path
)
{
PRMSG
(
3
,
"_NXGetOldUnixPath(%s)
\n
"
,
path
,
0
,
0
);
if
(
strcmp
(
path
,
OLD_UNIX_PATH
)
==
0
)
{
#ifdef NX_TRANS_TEST
fprintf
(
stderr
,
"_NXGetOldUnixPath: Returning X11 Unix path [%s].
\n
"
,
_NXGetUnixPath
(
path
));
#endif
return
_NXGetUnixPath
(
path
);
}
#ifdef NX_TRANS_TEST
fprintf
(
stderr
,
"_NXGetOldUnixPath: Returning other old X11 Unix path [%s].
\n
"
,
path
);
#endif
return
path
;
}
#endif
/* #ifdef hpux */
/*
/*
* Forcibly close any connection attempt on the
* Forcibly close any connection attempt on the
...
@@ -2635,10 +2580,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
...
@@ -2635,10 +2580,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
abstract
=
ciptr
->
transptr
->
flags
&
TRANS_ABSTRACT
;
abstract
=
ciptr
->
transptr
->
flags
&
TRANS_ABSTRACT
;
#endif
#endif
#if defined(hpux) && defined(X11_t)
struct
sockaddr_un
old_sockname
;
int
old_namelen
;
#endif
PRMSG
(
2
,
"SocketUNIXConnect(%d,%s,%s)
\n
"
,
ciptr
->
fd
,
host
,
port
);
PRMSG
(
2
,
"SocketUNIXConnect(%d,%s,%s)
\n
"
,
ciptr
->
fd
,
host
,
port
);
...
@@ -2699,22 +2640,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
...
@@ -2699,22 +2640,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
#endif
#endif
#if defined(hpux) && defined(X11_t)
/*
* This is gross, but it was in Xlib
*/
old_sockname
.
sun_family
=
AF_UNIX
;
#ifdef NX_TRANS_SOCKET
if
(
set_sun_path
(
port
,
_NXGetOldUnixPath
(
OLD_UNIX_PATH
),
old_sockname
.
sun_path
)
!=
0
)
{
#else
if
(
set_sun_path
(
port
,
OLD_UNIX_PATH
,
old_sockname
.
sun_path
)
!=
0
)
{
#endif
PRMSG
(
1
,
"SocketUNIXConnect: path too long
\n
"
,
0
,
0
,
0
);
return
TRANS_CONNECT_FAILED
;
}
old_namelen
=
strlen
(
old_sockname
.
sun_path
)
+
sizeof
(
old_sockname
.
sun_family
);
#endif
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
#if defined(NX_TRANS_SOCKET) && defined(TRANS_CLIENT)
...
@@ -2747,18 +2672,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
...
@@ -2747,18 +2672,6 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
int
olderrno
=
errno
;
int
olderrno
=
errno
;
int
connected
=
0
;
int
connected
=
0
;
#if defined(hpux) && defined(X11_t)
if
(
olderrno
==
ENOENT
)
{
if
(
connect
(
ciptr
->
fd
,
(
struct
sockaddr
*
)
&
old_sockname
,
old_namelen
)
>=
0
)
{
connected
=
1
;
}
else
olderrno
=
errno
;
}
#endif
if
(
!
connected
)
if
(
!
connected
)
{
{
errno
=
olderrno
;
errno
=
olderrno
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment