Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8db3252f
Commit
8db3252f
authored
Oct 28, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NetWare specific change to use a LibC API instead of a
kernel function to prevent CPU hogs.
parent
a1d92b8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
include/config-netware.h
include/config-netware.h
+1
-4
No files found.
include/config-netware.h
View file @
8db3252f
...
@@ -116,15 +116,12 @@ extern "C" {
...
@@ -116,15 +116,12 @@ extern "C" {
/* do not use the extended time in LibC sys\stat.h */
/* do not use the extended time in LibC sys\stat.h */
#define _POSIX_SOURCE
#define _POSIX_SOURCE
/* Kernel call on NetWare that will only yield if our time slice is up */
void
kYieldIfTimeSliceUp
(
void
);
/* Some macros for portability */
/* Some macros for portability */
#define set_timespec(ABSTIME,SEC) { (ABSTIME).tv_sec=time(NULL)+(SEC); (ABSTIME).tv_nsec=0; }
#define set_timespec(ABSTIME,SEC) { (ABSTIME).tv_sec=time(NULL)+(SEC); (ABSTIME).tv_nsec=0; }
/* extra protection against CPU Hogs on NetWare */
/* extra protection against CPU Hogs on NetWare */
#define NETWARE_YIELD
kYieldIfTimeSliceUp
()
#define NETWARE_YIELD
pthread_yield
()
/* Screen mode for help texts */
/* Screen mode for help texts */
#define NETWARE_SET_SCREEN_MODE(A) setscreenmode(A)
#define NETWARE_SET_SCREEN_MODE(A) setscreenmode(A)
...
...
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