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
38ab9ad8
Commit
38ab9ad8
authored
Nov 07, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: unifdef __SCO__
parent
5fb7f53c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
62 deletions
+6
-62
access.c
nx-X11/programs/Xserver/os/access.c
+4
-8
io.c
nx-X11/programs/Xserver/os/io.c
+1
-1
osinit.c
nx-X11/programs/Xserver/os/osinit.c
+1
-4
utils.c
nx-X11/programs/Xserver/os/utils.c
+0
-49
No files found.
nx-X11/programs/Xserver/os/access.c
View file @
38ab9ad8
...
...
@@ -80,9 +80,9 @@ SOFTWARE.
#include <sys/ioctl.h>
#include <ctype.h>
#if defined(TCPCONN)
|| defined(__SCO__)
#if defined(TCPCONN)
#include <netinet/in.h>
#endif
/* TCPCONN
|| __SCO__
*/
#endif
/* TCPCONN */
#ifdef HAS_GETPEERUCRED
# include <ucred.h>
...
...
@@ -91,10 +91,10 @@ SOFTWARE.
# endif
#endif
#if defined(SVR4) || (defined(SYSV) && defined(
i386
)) || defined(__GNU__)
#if defined(SVR4) || (defined(SYSV) && defined(
__i386__
)) || defined(__GNU__)
# include <sys/utsname.h>
#endif
#if defined(SYSV) && defined(
i386
)
#if defined(SYSV) && defined(
__i386__
)
# include <sys/stream.h>
#endif
#ifdef __GNU__
...
...
@@ -154,10 +154,6 @@ SOFTWARE.
#endif
#endif
#ifdef __SCO__
/* The system defined value is wrong. MAXPATHLEN is set in sco5.cf. */
#undef PATH_MAX
#endif
#define X_INCLUDE_NETDB_H
#include <nx-X11/Xos_r.h>
...
...
nx-X11/programs/Xserver/os/io.c
View file @
38ab9ad8
...
...
@@ -358,7 +358,7 @@ ReadRequestFromClient(ClientPtr client)
{
if
((
result
<
0
)
&&
ETEST
(
errno
))
{
#if defined(SVR4) && defined(
i386
) && !defined(sun)
#if defined(SVR4) && defined(
__i386__
) && !defined(sun)
if
(
0
)
#endif
{
...
...
nx-X11/programs/Xserver/os/osinit.c
View file @
38ab9ad8
...
...
@@ -65,9 +65,6 @@ SOFTWARE.
#endif
#endif
#if defined(__SCO__)
#include <sys/wait.h>
#endif
#if !defined(SYSV) && !defined(WIN32)
#include <sys/resource.h>
...
...
@@ -104,7 +101,7 @@ OsInit(void)
InitNotifyFds
();
#if !defined(__
SCO__) && !defined(__
CYGWIN__) && !defined(__UNIXWARE__)
#if !defined(__CYGWIN__) && !defined(__UNIXWARE__)
fclose
(
stdin
);
fclose
(
stdout
);
#endif
...
...
nx-X11/programs/Xserver/os/utils.c
View file @
38ab9ad8
...
...
@@ -2232,52 +2232,3 @@ CheckUserAuthorization(void)
#endif
}
#ifdef __SCO__
#include <fcntl.h>
static
void
lockit
(
int
fd
,
short
what
)
{
struct
flock
lck
;
lck
.
l_whence
=
0
;
lck
.
l_start
=
0
;
lck
.
l_len
=
1
;
lck
.
l_type
=
what
;
(
void
)
fcntl
(
fd
,
F_SETLKW
,
&
lck
);
}
/* SCO OpenServer 5 lacks pread/pwrite. Emulate them. */
ssize_t
pread
(
int
fd
,
void
*
buf
,
size_t
nbytes
,
off_t
offset
)
{
off_t
saved
;
ssize_t
ret
;
lockit
(
fd
,
F_RDLCK
);
saved
=
lseek
(
fd
,
0
,
SEEK_CUR
);
lseek
(
fd
,
offset
,
SEEK_SET
);
ret
=
read
(
fd
,
buf
,
nbytes
);
lseek
(
fd
,
saved
,
SEEK_SET
);
lockit
(
fd
,
F_UNLCK
);
return
ret
;
}
ssize_t
pwrite
(
int
fd
,
const
void
*
buf
,
size_t
nbytes
,
off_t
offset
)
{
off_t
saved
;
ssize_t
ret
;
lockit
(
fd
,
F_WRLCK
);
saved
=
lseek
(
fd
,
0
,
SEEK_CUR
);
lseek
(
fd
,
offset
,
SEEK_SET
);
ret
=
write
(
fd
,
buf
,
nbytes
);
lseek
(
fd
,
saved
,
SEEK_SET
);
lockit
(
fd
,
F_UNLCK
);
return
ret
;
}
#endif
/* __SCO__ */
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