Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
add28c2e
Commit
add28c2e
authored
21 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Initial Support For NetBSD and QNX
parent
64a40960
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/uifc/uifc.h
+4
-0
4 additions, 0 deletions
src/uifc/uifc.h
src/uifc/uifcc.c
+9
-0
9 additions, 0 deletions
src/uifc/uifcc.c
with
13 additions
and
0 deletions
src/uifc/uifc.h
+
4
−
0
View file @
add28c2e
...
...
@@ -221,9 +221,13 @@
#ifndef BOOL
#define BOOL int
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#endif
typedef
struct
{
uint
left
,
top
,
right
,
bot
;
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifcc.c
+
9
−
0
View file @
add28c2e
...
...
@@ -38,6 +38,9 @@
#include
<unistd.h>
#include
<sys/time.h>
#include
"uifc.h"
#ifdef __QNX__
#include
<strings.h>
#endif
#if defined(__OS2__)
...
...
@@ -84,7 +87,9 @@ enum {
#define BLINK 128
#define SH_DENYWR 1
#define SH_DENYRW 2
#ifndef O_BINARY
#define O_BINARY 0
#endif
static
char
hfclr
,
hbclr
,
hclr
,
lclr
,
bclr
,
cclr
,
show_free_mem
=
0
;
static
char
*
helpfile
=
0
;
...
...
@@ -106,7 +111,9 @@ static int gettext(int sx, int sy, int ex, int ey, unsigned char *fill);
static
short
curses_color
(
short
color
);
static
void
textattr
(
unsigned
char
attr
);
static
int
kbhit
(
void
);
#ifndef __QNX__
static
void
delay
(
int
msec
);
#endif
static
int
ugetstr
(
char
*
outstr
,
int
max
,
long
mode
);
static
int
wherey
(
void
);
static
int
wherex
(
void
);
...
...
@@ -2047,10 +2054,12 @@ static int kbhit(void)
return
(
select
(
fileno
(
stdin
)
+
1
,
&
rfds
,
NULL
,
NULL
,
&
timeout
));
}
#ifndef __QNX__
static
void
delay
(
msec
)
{
usleep
(
msec
*
1000
);
}
#endif
static
int
wherey
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment