Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container Registry
Model registry
Operate
Environments
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
pikelang
pike
Commits
68eed88e
Commit
68eed88e
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Some compilers have broken typedef handling (Hi Metrowerks!).
Rev: src/fdlib.h:1.16
parent
fe9b5e77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fdlib.h
+13
-5
13 additions, 5 deletions
src/fdlib.h
with
13 additions
and
5 deletions
src/fdlib.h
+
13
−
5
View file @
68eed88e
/*
/*
* $Id: fdlib.h,v 1.1
5
1998/05/22
08:25:53 neotron
Exp $
* $Id: fdlib.h,v 1.1
6
1998/05/22
11:29:15 grubba
Exp $
*/
*/
#ifndef FDLIB_H
#ifndef FDLIB_H
#define FDLIB_H
#define FDLIB_H
...
@@ -27,6 +27,10 @@
...
@@ -27,6 +27,10 @@
#include
<sys/file.h>
#include
<sys/file.h>
#endif
#endif
#ifdef HAVE_SOCKET_H
#include
<socket.h>
#endif
/* HAVE_SOCKET_H */
#define fd_INTERPROCESSABLE 1
#define fd_INTERPROCESSABLE 1
#define fd_CAN_NONBLOCK 2
#define fd_CAN_NONBLOCK 2
...
@@ -157,10 +161,12 @@ void fd_waitor_set_customer(struct fd_waitor *x, FD customer, int flags);
...
@@ -157,10 +161,12 @@ void fd_waitor_set_customer(struct fd_waitor *x, FD customer, int flags);
#define fd_LOCK_UN 4
#define fd_LOCK_UN 4
#define fd_LOCK_NB 8
#define fd_LOCK_NB 8
typedef
struct
my_fd_set_s
struct
my_fd_set_s
{
{
char
bits
[
MAX_OPEN_FILEDESCRIPTORS
/
8
];
char
bits
[
MAX_OPEN_FILEDESCRIPTORS
/
8
];
}
my_fd_set
;
};
typedef
struct
my_fd_set_s
my_fd_set
;
#ifdef DEBUG
#ifdef DEBUG
#define fd_check_fd(X) do { if(fd_type[X]>=0) fatal("FD_SET on closed fd %d (%d) %s:%d.\n",X,da_handle[X],__FILE__,__LINE__); }while(0)
#define fd_check_fd(X) do { if(fd_type[X]>=0) fatal("FD_SET on closed fd %d (%d) %s:%d.\n",X,da_handle[X],__FILE__,__LINE__); }while(0)
...
@@ -283,10 +289,12 @@ typedef int FD;
...
@@ -283,10 +289,12 @@ typedef int FD;
#define fd_shutdown_write 1
#define fd_shutdown_write 1
#define fd_shutdown_both 2
#define fd_shutdown_both 2
typedef
struct
my_fd_set_s
struct
my_fd_set_s
{
{
fd_set
tmp
;
fd_set
tmp
;
}
my_fd_set
;
};
typedef
struct
my_fd_set_s
my_fd_set
;
#define my_FD_CLR(FD,S) FD_CLR((FD), & (S)->tmp)
#define my_FD_CLR(FD,S) FD_CLR((FD), & (S)->tmp)
#define my_FD_SET(FD,S) FD_SET((FD), & (S)->tmp)
#define my_FD_SET(FD,S) FD_SET((FD), & (S)->tmp)
...
...
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