Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0db44a1f
...
0db44a1f8c8dee91d34fd3a16d82ba05446cefc3
authored
2000-07-04 02:50:19 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mapfile_stream.c
noop everything whith #ifdef _POSIX_MAPPED_FILE
1 parent
61e324d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
mailbox/mapfile_stream.c
mailbox/mapfile_stream.c
View file @
0db44a1
...
...
@@ -25,10 +25,13 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <io0.h>
#ifdef _POSIX_MAPPED_FILES
#include <sys/mman.h>
struct
_mapfile_stream
{
int
fd
;
...
...
@@ -257,9 +260,14 @@ _mapfile_open (stream_t stream, const char *filename, int port, int flags)
return
0
;
}
#endif
/* _POSIX_MAPPED_FILES */
int
mapfile_stream_create
(
stream_t
*
stream
)
{
#ifndef _POSIX_MAPPED_FILES
return
ENOTSUP
;
#else
struct
_mapfile_stream
*
fs
;
int
ret
;
...
...
@@ -288,4 +296,5 @@ mapfile_stream_create (stream_t *stream)
stream_set_flush
(
*
stream
,
_mapfile_flush
,
fs
);
stream_set_destroy
(
*
stream
,
_mapfile_destroy
,
fs
);
return
0
;
#endif
/* _POSIX_MAPPED_FILES */
}
...
...
Please
register
or
sign in
to post a comment