|
os_art
os_art
/*
* Program: Operating-system dependent routines -- AIX/RT version
*
* Author: Mark Crispin
* Networks and Distributed Computing
* Computing & Communications
* University of Washington
* Administration Building, AG-44
* Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU
*
* Date: 10 April 1992
* Last Edited: 10 April 2001
*
* The IMAP toolkit provided in this Distribution is
* Copyright 2001 University of Washington.
* The full text of our legal notices is contained in the file called
* CPYRIGHT, included with this Distribution.
*/
#include "tcp_unix.h" /* must be before osdep includes tcp.h */
#include "mail.h"
#include "osdep.h"
#include
#include
#include
#include
#include
#include
#include
extern int errno;
#include
#include
#include
#define KERNEL
#include
#undef KERNEL
#include "misc.h"
#define DIR_SIZE(d) sizeof (DIR)
extern int sys_nerr;
extern char *sys_errlist[];
#define toint(c) ((c)-'0')
#define isodigit(c) (((unsigned)(c)>=060)&((unsigned)(c)<=067))
#define NBBY 8 /* number of bits in a byte */
#define FD_SETSIZE 256
typedef long fd_mask;
#define NFDBITS (sizeof(fd_mask) * NBBY)
/* bits per mask */
#define howmany(x, y) (((x)+((y)-1))/(y))
typedef struct fd_set {
fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];
} fd_set;
#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= \
(1 << ((n) % NFDBITS)))
#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= \
~(1 << ((n) % NFDBITS)))
#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & \
(1 << ((n) % NFDBITS)))
#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
#include "fs_unix.c"
#include "ftl_unix.c"
#include "nl_unix.c"
#include "env_unix.c"
#include "tcp_unix.c"
#include "gr_wait.c"
#include "flocksim.c"
#include "memmove2.c"
#include "strerror.c"
#include "tz_sv4.c"
PostgreSQL PHP Hosting
/*
* Program: Winsock TCP/IP routines
*
* Author: Mike Seibel from Unix version by Mark Crispin
* Computing & Communications
* University of Washington
* Administration Building, AG-44
* Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU
*
* Date: 11 April 1989
* Last Edited: 24 October 2000
*
* The IMAP toolkit provided in this Distribution is
* Copyright 2000 University of Washington.
* The full text of our legal notices is contained in the file called
* CPYRIGHT, included with this Distribution.
*/
/* TCP input buffer -- must be large enough to prevent overflow */
#define BUFLEN 16384 /* 32768 causes stdin read() to barf */
#include
#define _INC_WINDOWS
#include
/* TCP I/O stream (must be before osdep.h is included) */
#define TCPSTREAM struct tcp_stream
TCPSTREAM {
char *host; /* host name */
char *remotehost; /* remote host name */
unsigned long port; /* port number */
char *localhost; /* local host name */
SOCKET tcpsi; /* tcp socket */
SOCKET tcpso; /* tcp socket */
long ictr; /* input counter */
char *iptr; /* input pointer */
char ibuf[BUFLEN]; /* input buffer */
};
Page:
1
2
3
4
5
6
7
8
9
10
PHP PostgreSQL Web Hosting
Cheap PHP Web Host
PHP Hosting plan
PHP Web Hosting
|