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
bd9ada59
Commit
bd9ada59
authored
Jan 08, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: remove CYGWIN remnants
parent
424c0e8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
15 deletions
+1
-15
connection.c
nx-X11/programs/Xserver/os/connection.c
+0
-4
osinit.c
nx-X11/programs/Xserver/os/osinit.c
+1
-4
utils.c
nx-X11/programs/Xserver/os/utils.c
+0
-7
No files found.
nx-X11/programs/Xserver/os/connection.c
View file @
bd9ada59
...
...
@@ -185,8 +185,6 @@ InitConnectionLimits(void)
{
lastfdesc
=
-
1
;
#ifndef __CYGWIN__
#if !defined(XNO_SYSCONF) && defined(_SC_OPEN_MAX)
lastfdesc
=
sysconf
(
_SC_OPEN_MAX
)
-
1
;
#endif
...
...
@@ -201,8 +199,6 @@ InitConnectionLimits(void)
lastfdesc
=
_NFILE
-
1
;
#endif
#endif
/* __CYGWIN__ */
/* This is the fallback */
if
(
lastfdesc
<
0
)
lastfdesc
=
MAXSOCKS
;
...
...
nx-X11/programs/Xserver/os/osinit.c
View file @
bd9ada59
...
...
@@ -101,11 +101,8 @@ OsInit(void)
InitNotifyFds
();
#if !defined(__CYGWIN__)
fclose
(
stdin
);
fclose
(
stdout
);
#endif
/*
* If a write of zero bytes to stderr returns non-zero, i.e. -1,
...
...
@@ -131,7 +128,7 @@ OsInit(void)
dup2
(
fileno
(
err
),
2
);
fclose
(
err
);
}
#if defined(SYSV) || defined(SVR4)
|| defined(__CYGWIN__)
#if defined(SYSV) || defined(SVR4)
{
static
char
buf
[
BUFSIZ
];
setvbuf
(
stderr
,
buf
,
_IOLBF
,
BUFSIZ
);
...
...
nx-X11/programs/Xserver/os/utils.c
View file @
bd9ada59
...
...
@@ -78,11 +78,6 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include <dix-config.h>
#endif
#ifdef __CYGWIN__
#include <stdlib.h>
#include <signal.h>
#endif
#include <nx-X11/Xos.h>
#include <stdio.h>
#include "misc.h"
...
...
@@ -903,11 +898,9 @@ ProcessCommandLine(int argc, char *argv[])
#ifdef SERVER_LOCK
else
if
(
strcmp
(
argv
[
i
],
"-nolock"
)
==
0
)
{
#if !defined(__CYGWIN__)
if
(
getuid
()
!=
0
)
ErrorF
(
"Warning: the -nolock option can only be used by root
\n
"
);
else
#endif
nolock
=
TRUE
;
}
#endif
...
...
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