/[emacs]/emacs/lib-src/pop.c
ViewVC logotype

Diff of /emacs/lib-src/pop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by eliz, Fri May 17 11:24:02 2002 UTC revision 1.31.2.1 by miles, Fri Apr 4 06:19:55 2003 UTC
# Line 119  extern int h_errno; Line 119  extern int h_errno;
119  #endif  #endif
120  #endif  #endif
121    
122  #ifndef _P  #ifndef __P
123  # ifdef __STDC__  # ifdef __STDC__
124  #  define _P(a) a  #  define __P(a) a
125  # else  # else
126  #  define _P(a) ()  #  define __P(a) ()
127  # endif /* __STDC__ */  # endif /* __STDC__ */
128  #endif /* ! __P */  #endif /* ! __P */
129    
130  static int socket_connection _P((char *, int));  static int socket_connection __P((char *, int));
131  static int pop_getline _P((popserver, char **));  static int pop_getline __P((popserver, char **));
132  static int sendline _P((popserver, char *));  static int sendline __P((popserver, char *));
133  static int fullwrite _P((int, char *, int));  static int fullwrite __P((int, char *, int));
134  static int getok _P((popserver));  static int getok __P((popserver));
135  #if 0  #if 0
136  static int gettermination _P((popserver));  static int gettermination __P((popserver));
137  #endif  #endif
138  static void pop_trash _P((popserver));  static void pop_trash __P((popserver));
139  static char *find_crlf _P((char *, int));  static char *find_crlf __P((char *, int));
140    
141  #define ERROR_MAX 160           /* a pretty arbitrary size, but needs  #define ERROR_MAX 160           /* a pretty arbitrary size, but needs
142                                     to be bigger than the original                                     to be bigger than the original
# Line 261  pop_open (host, username, password, flag Line 261  pop_open (host, username, password, flag
261  #else  #else
262  #define DONT_NEED_PASSWORD 0  #define DONT_NEED_PASSWORD 0
263  #endif  #endif
264    
265    if ((! password) && (! DONT_NEED_PASSWORD))    if ((! password) && (! DONT_NEED_PASSWORD))
266      {      {
267        if (! (flags & POP_NO_GETPASS))        if (! (flags & POP_NO_GETPASS))
# Line 560  pop_list (server, message, IDs, sizes) Line 560  pop_list (server, message, IDs, sizes)
560   *              of lines with '>'.   *              of lines with '>'.
561   *      msg_buf Output parameter to which a buffer containing the   *      msg_buf Output parameter to which a buffer containing the
562   *              message is assigned.   *              message is assigned.
563   *   *
564   * Return value: The number of bytes in msg_buf, which may contain   * Return value: The number of bytes in msg_buf, which may contain
565   *      embedded nulls, not including its final null, or -1 on error   *      embedded nulls, not including its final null, or -1 on error
566   *      with pop_error set.   *      with pop_error set.
# Line 643  pop_retrieve (server, message, markfrom, Line 643  pop_retrieve (server, message, markfrom,
643    
644    free (ptr);    free (ptr);
645    return (-1);    return (-1);
646  }      }
647    
648  int  int
649  pop_retrieve_first (server, message, response)  pop_retrieve_first (server, message, response)

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.31.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26