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
71da3446
...
71da34463c159d4bff5687e6cc4bc5e2a589f314
authored
2001-08-05 13:44:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added message_stream_size().
1 parent
5d0daf09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
mailbox/message.c
mailbox/message.c
View file @
71da344
...
...
@@ -44,6 +44,7 @@ static int message_sender __P ((envelope_t envelope, char *buf, size_t len,
size_t
*
pnwrite
));
static
int
message_date
__P
((
envelope_t
envelope
,
char
*
buf
,
size_t
len
,
size_t
*
pnwrite
));
static
int
message_stream_size
__P
((
stream_t
stream
,
off_t
*
psize
));
/* Allocate ressources for the message_t. */
int
...
...
@@ -333,6 +334,7 @@ message_get_stream (message_t msg, stream_t *pstream)
stream_set_read
(
stream
,
message_read
,
msg
);
stream_set_write
(
stream
,
message_write
,
msg
);
stream_set_fd
(
stream
,
message_get_fd
,
msg
);
stream_set_size
(
stream
,
message_stream_size
,
msg
);
stream_set_flags
(
stream
,
MU_STREAM_RDWR
);
msg
->
stream
=
stream
;
}
...
...
@@ -857,6 +859,13 @@ message_get_fd (stream_t stream, int *pfd)
return
stream_get_fd
(
is
,
pfd
);
}
int
message_stream_size
(
stream_t
stream
,
off_t
*
psize
)
{
message_t
msg
=
stream_get_owner
(
stream
);
return
message_size
(
msg
,
(
size_t
*
)
psize
);
}
static
int
message_date
(
envelope_t
envelope
,
char
*
buf
,
size_t
len
,
size_t
*
pnwrite
)
{
...
...
Please
register
or
sign in
to post a comment