|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 25.75 GB of 70.42 GB (36.57%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
courier-0.66.1/
rfc2045/
- drwxrwxrwx
|
Viewing file: rfc2045_fromfd.c (1.47 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 2008 Double Precision, Inc. See COPYING for ** distribution information. */
/* */ #if HAVE_CONFIG_H #include "rfc2045_config.h" #endif
#include <sys/types.h>
#include "rfc2045.h" #if HAVE_UNISTD_H #include <unistd.h> #endif
/* Convert a message to the RFC2045 structure */
struct rfc2045 *rfc2045_fromfd(int fd) { struct rfc2045 *rfc; char buf[BUFSIZ]; int n; off_t orig_pos;
if ((orig_pos=lseek(fd, 0L, SEEK_CUR)) == (off_t)-1) return (NULL); if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) return (NULL); if ((rfc=rfc2045_alloc()) == 0) return (NULL);
while ((n=read(fd, buf, sizeof(buf))) > 0) rfc2045_parse(rfc, buf, n); rfc2045_parse_partial(rfc);
if (lseek(fd, orig_pos, SEEK_SET) == (off_t)-1) { rfc2045_free(rfc); rfc=0; } return (rfc); }
/* Convert a message to the RFC2045 structure, halting after header */
struct rfc2045 *rfc2045header_fromfd(int fd) { struct rfc2045 *rfc; char buf[BUFSIZ]; int n; off_t orig_pos;
if ((orig_pos=lseek(fd, 0L, SEEK_CUR)) == (off_t)-1) return (NULL); if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) return (NULL); if ((rfc=rfc2045_alloc()) == 0) return (NULL);
while (rfc->workinheader && (n=read(fd, buf, sizeof(buf))) > 0) rfc2045_parse(rfc, buf, n); if (lseek(fd, orig_pos, SEEK_SET) == (off_t)-1) { rfc2045_free(rfc); rfc=0; } return (rfc); }
|