[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mailutils/mailbox2 Makefile.am bstream.c fstrea...
From: |
Alain Magloire |
Subject: |
mailutils/mailbox2 Makefile.am bstream.c fstrea... |
Date: |
Sun, 09 Sep 2001 13:27:39 -0700 |
CVSROOT: /home/cvs
Module name: mailutils
Changes by: Alain Magloire <address@hidden> 01/09/09 13:27:39
Modified files:
mailbox2 : Makefile.am bstream.c fstream.c memstream.c
mutil.c stream.c tcpstream.c
mailbox2/include/mailutils: pop3.h stream.h
mailbox2/include/mailutils/sys: pop3.h stream.h
mailbox2/pop3 : Makefile.am pop3_apop.c pop3_capa.c
pop3_connect.c pop3_create.c pop3_dele.c
pop3_destroy.c pop3_disconnect.c
pop3_iterator.c pop3_list.c pop3_lista.c
pop3_noop.c pop3_pass.c pop3_quit.c
pop3_readline.c pop3_retr.c pop3_rset.c
pop3_sendline.c pop3_stat.c pop3_stream.c
pop3_timeout.c pop3_top.c pop3_uidl.c
pop3_uidla.c pop3_user.c pop3client.c
Added files:
mailbox2/pop3 : pop3_carrier.c
Removed files:
mailbox2 : mstream.c
Log message:
For the new mailbox, one of the short coming with the old stream_t
object was that select() was not cover, meaning it was not possible
to check if a stream was {read,write} ready. The old was to get
the fd (stream_get_fd()) and do the select. Providing,
stream_is_readready (stream_t, int timeout);
stream_is_writeready (stream_t, int timeout);
stream_is_exceptionpending (stream_t, int timeout);
stream_is_open (stream_t);
Takes care of it. It will work specially for tcp stream.
* mailbox2/stream.c: New functions for the select calls:
(stream_is_readready): New function.
(stream_is_writeready): New function.(stream_t, int timeout);
(stream_is_exceptionpending): New function.
(stream_is_open): New function.
* mailbox2/bstream.c (_bs_readline): Bug was truncating the string
to early.
(_bs_is_readready): New file.
(_bs_is_writeready): New file.
(_bs_is_exceptionpending): New file.
(_bs_is_open): New file.
* mailbox2/fstream.c: stubs for the select functions.
* mailbox2/memstream.c: stubs for the select functions.
* mailbox2/mapstream.c: stubs for the select functions.
* mailbox2/tcpstream.c: stubs for the select functions.
* mailbox2/include/mailutils/stream.h: Adjust the prototypes
* mailbox2/include/mailutils/sys/stream.h: Adjust the prototypes
It is better not to put threading (Pthread) code in the low level
API. But instead in mailbox_t framework, where it can be control.
* mailbox2/include/mailutils/pop3.h: Adjust the prototypes.
* mailbox2/pop3/*.c: Remove threading code.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/Makefile.am.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/bstream.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/fstream.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/memstream.c.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/mutil.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/stream.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/tcpstream.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/include/mailutils/pop3.h.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/include/mailutils/stream.h.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/include/mailutils/sys/pop3.h.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/include/mailutils/sys/stream.h.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_carrier.c?cvsroot=OldCVS&rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/Makefile.am.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_apop.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_capa.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_connect.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_create.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_dele.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_destroy.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_disconnect.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_iterator.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_list.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_lista.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_noop.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_pass.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_quit.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_readline.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_retr.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_rset.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_sendline.c.diff?cvsroot=OldCVS&tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_stat.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_stream.c.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_timeout.c.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_top.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_uidl.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_uidla.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3_user.c.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailbox2/pop3/pop3client.c.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mailutils/mailbox2 Makefile.am bstream.c fstrea...,
Alain Magloire <=