|
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.71 GB of 70.42 GB (36.52%) |
|
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/
afx/
- drwxrwxrwx
|
Viewing file: afxpipe.C (1.75 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 2001-2009 Double Precision, Inc. ** See COPYING for distribution information. */
#include "afx.h"
#include <cstdio>
afxpipestreambuf::afxpipestreambuf(int f) : fd(f), iosp(0) { }
afxpipestreambuf::~afxpipestreambuf() { close(); }
void afxpipestreambuf::close() { if (fd >= 0) { sync(); ::close(fd); fd= -1; } }
void afxpipestreambuf::handle(int f) { close(); fd=f; }
int afxpipestreambuf::overflow(int c) { if (sync()) return (EOF); int rc=sputc(c); return (rc); }
void afxpipestreambuf::seekg(std::streampos p) { seekp(p); }
void afxpipestreambuf::seekp(std::streampos p) { if (sync()) return;
if (lseek(fd, p, SEEK_SET) < 0 && iosp) iosp->setstate(std::ios::badbit); else setg(buffer, buffer+sizeof(buffer), buffer+sizeof(buffer)); }
int afxpipestreambuf::sync() { if (fd < 0) return (-1);
char *p=pbase(); char *e=pptr();
while (p < e) { int n=::write(fd, p, e-p);
if (n <= 0 && iosp) iosp->setstate(std::ios::badbit);
if (n <= 0) return (-1);
p += n; }
setp( buffer, buffer+sizeof(buffer)); return (0); }
int afxpipestreambuf::underflow() { int n;
if (fd < 0) return (-1);
n=read(fd, buffer, sizeof(buffer));
if (n < 0 && iosp) iosp->setstate(std::ios::badbit); if (n == 0 && iosp) iosp->setstate(std::ios::eofbit); if (n <= 0) return (EOF);
setg(buffer, buffer, buffer+n); return (sgetc()); }
afxipipestream::afxipipestream(int f) : std::istream(&fd_), fd_(f) { fd_.iosp=this; }
afxipipestream::~afxipipestream() { }
afxopipestream::afxopipestream(int f) : std::ostream(&fd_), fd_(f) { fd_.iosp=this; }
afxopipestream::~afxopipestream() { }
afxiopipestream::afxiopipestream(int f) : std::iostream(&fd_), fd_(f) { fd_.iosp=this; }
afxiopipestream::~afxiopipestream() { }
|