Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
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
Abuhujair Javed
Postgres FD Implementation
Commits
b1fd1f69
Commit
b1fd1f69
authored
Jan 25, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove asm/bitops.h, as its causing more problems then it fixes.
parent
9921eae7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
src/backend/port/linux/asm/bitops.h
src/backend/port/linux/asm/bitops.h
+0
-41
No files found.
src/backend/port/linux/asm/bitops.h
deleted
100644 → 0
View file @
9921eae7
/* This is a hack that lets us use the -Wmissing-prototypes compile option.
A bug or weakness in Linux's asm/bitops.h file makes it define a bunch
of inline functions without first declaring a prototype. This causes
-Wmissing-prototypes to generate warnings. These warnings are distracting
and, in the case of -Werror, fatal.
asm/bitops.h gets included by the Linux C library sem.h, which is included
in several Postgres backend source files.
Until Linux is fixed, we have our own version of asm/bitops.h that gets
included first because it is in a directory mentioned in a -I option,
whereas the Linux asm/bitops.h is in a standard include directory. (This
is GNU C preprocessor function).
Our asm/bitops.h declares prototypes and then includes the Linux
asm/bitops.h. If Linux changes these functions, our asm/bitops.h will
stop compiling and will have to be updated.
-Bryan 1996.11.17
*/
#ifndef POSTGRES_BITOPS_H
#define POSTGRES_BITOPS_H
#ifdef __SMP__
#define PG_BITOPS_VOLATILE volatile
#else
#define PG_BITOPS_VOLATILE
#endif
extern
__inline__
int
set_bit
(
int
nr
,
PG_BITOPS_VOLATILE
void
*
addr
);
extern
__inline__
int
clear_bit
(
int
nr
,
PG_BITOPS_VOLATILE
void
*
addr
);
extern
__inline__
int
change_bit
(
int
nr
,
PG_BITOPS_VOLATILE
void
*
addr
);
extern
__inline__
int
test_bit
(
int
nr
,
const
PG_BITOPS_VOLATILE
void
*
addr
);
extern
__inline__
int
find_first_zero_bit
(
void
*
addr
,
unsigned
size
);
extern
__inline__
int
find_next_zero_bit
(
void
*
addr
,
int
size
,
int
offset
);
extern
__inline__
unsigned
long
ffz
(
unsigned
long
word
);
#include_next <asm/bitops.h>
#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