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
175a3416
Commit
175a3416
authored
Oct 12, 2016
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undef __UNIXOS2__
parent
97d651fc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
49 deletions
+0
-49
Xtrans.c
nx-X11/lib/xtrans/Xtrans.c
+0
-4
Xtransint.h
nx-X11/lib/xtrans/Xtransint.h
+0
-11
Xtranssock.c
nx-X11/lib/xtrans/Xtranssock.c
+0
-31
transport.c
nx-X11/lib/xtrans/transport.c
+0
-3
No files found.
nx-X11/lib/xtrans/Xtrans.c
View file @
175a3416
...
...
@@ -703,11 +703,7 @@ TRANS(SetOption) (XtransConnInfo ciptr, int option, int arg)
arg
=
1
;
/* IBM TCP/IP understands this option too well: it causes TRANS(Read) to fail
* eventually with EWOULDBLOCK */
#ifndef __UNIXOS2__
ret
=
ioctl
(
fd
,
FIONBIO
,
&
arg
);
#else
/* ret = ioctl(fd, FIONBIO, &arg, sizeof(int));*/
#endif
}
#else
ret
=
fcntl
(
fd
,
F_GETFL
,
0
);
...
...
nx-X11/lib/xtrans/Xtransint.h
View file @
175a3416
...
...
@@ -71,11 +71,7 @@ from The Open Group.
*/
#ifndef XTRANSDEBUG
# ifndef __UNIXOS2__
# define XTRANSDEBUG 1
# else
# define XTRANSDEBUG 1
# endif
#endif
#ifdef WIN32
...
...
@@ -98,9 +94,6 @@ from The Open Group.
# endif
# include <netinet/in.h>
# include <arpa/inet.h>
# ifdef __UNIXOS2__
# include <sys/ioctl.h>
# endif
/*
* Moved the setting of NEED_UTSNAME to this header file from Xtrans.c,
...
...
@@ -167,11 +160,7 @@ from The Open Group.
# endif
/* TRANS_OPEN_MAX */
# ifdef __UNIXOS2__
# define ESET(val)
# else
# define ESET(val) errno = val
# endif
# define EGET() errno
#else
/* WIN32 */
...
...
nx-X11/lib/xtrans/Xtranssock.c
View file @
175a3416
...
...
@@ -169,35 +169,8 @@ from the copyright holders.
#undef SO_DONTLINGER
#endif
#if defined(__UNIXOS2__)
#if defined(NOT_EMX09A)
static
int
IBMsockInit
=
0
;
#define SocketInitOnce()\
if (!IBMsockInit) {\
sock_init();\
IBMsockInit = 1;\
}
#undef EINTR
#define EINTR SOCEINTR
#undef EINVAL
#define EINVAL SOCEINVAL
#undef errno
#define errno sock_errno()
#undef close
#define close soclose
#undef ioctl
#define ioctl sockioctl
#else
#define SocketInitOnce()
/**/
#endif
/* this is still not there */
#define SOCKET int
#else
/* others don't need this */
#define SocketInitOnce()
/**/
#endif
#if defined(linux)
#define HAVE_ABSTRACT_SOCKETS
...
...
@@ -2929,11 +2902,7 @@ TRANS(SocketBytesReadable) (XtransConnInfo ciptr, BytesReadable_t *pend)
#if (defined(i386) && defined(SYSV) && !defined(SCO325)) || (defined(_SEQUENT_) && _SOCKET_VERSION == 1)
return
ioctl
(
ciptr
->
fd
,
I_NREAD
,
(
char
*
)
pend
);
#else
#if defined(__UNIXOS2__)
return
ioctl
(
ciptr
->
fd
,
FIONREAD
,
(
char
*
)
pend
,
sizeof
(
int
));
#else
return
ioctl
(
ciptr
->
fd
,
FIONREAD
,
(
char
*
)
pend
);
#endif
/* __UNIXOS2__ */
#endif
/* i386 && SYSV || _SEQUENT_ && _SOCKET_VERSION == 1 */
#endif
/* WIN32 */
}
...
...
nx-X11/lib/xtrans/transport.c
View file @
175a3416
...
...
@@ -49,9 +49,6 @@ from The Open Group.
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef __UNIXOS2__
#define I_NEED_OS2_H
#endif
#ifdef XSERV_t
#include "os.h"
...
...
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