Classes |
| struct | PRFileDesc |
| struct | PRIPv6Addr |
| union | PRNetAddr |
| struct | PRLinger |
| struct | PRMcastRequest |
| struct | PRSocketOptionData |
| struct | PRIOVec |
| struct | PRIOMethods |
| struct | PRFileInfo |
| struct | PRFileInfo64 |
| struct | PRDirEntry |
| struct | PRSendFileData |
| struct | PRPollDesc |
Defines |
| #define | PR_AF_INET AF_INET |
| #define | PR_AF_LOCAL AF_UNIX |
| #define | PR_INADDR_ANY INADDR_ANY |
| #define | PR_INADDR_LOOPBACK INADDR_LOOPBACK |
| #define | PR_INADDR_BROADCAST INADDR_BROADCAST |
| #define | PR_AF_UNSPEC 0 |
| #define | pr_s6_addr _S6_un._S6_u8 |
| #define | pr_s6_addr16 _S6_un._S6_u16 |
| #define | pr_s6_addr32 _S6_un._S6_u32 |
| #define | pr_s6_addr64 _S6_un._S6_u64 |
| #define | PR_STDIN PR_GetSpecialFD(PR_StandardInput) |
| #define | PR_STDOUT PR_GetSpecialFD(PR_StandardOutput) |
| #define | PR_STDERR PR_GetSpecialFD(PR_StandardError) |
| #define | PR_IO_LAYER_HEAD (PRDescIdentity)-3 |
| #define | PR_INVALID_IO_LAYER (PRDescIdentity)-1 |
| #define | PR_TOP_IO_LAYER (PRDescIdentity)-2 |
| #define | PR_NSPR_IO_LAYER (PRDescIdentity)0 |
| #define | PR_RDONLY 0x01 |
| #define | PR_WRONLY 0x02 |
| #define | PR_RDWR 0x04 |
| #define | PR_CREATE_FILE 0x08 |
| #define | PR_APPEND 0x10 |
| #define | PR_TRUNCATE 0x20 |
| #define | PR_SYNC 0x40 |
| #define | PR_EXCL 0x80 |
| #define | PR_IRWXU 00700 |
| #define | PR_IRUSR 00400 |
| #define | PR_IWUSR 00200 |
| #define | PR_IXUSR 00100 |
| #define | PR_IRWXG 00070 |
| #define | PR_IRGRP 00040 |
| #define | PR_IWGRP 00020 |
| #define | PR_IXGRP 00010 |
| #define | PR_IRWXO 00007 |
| #define | PR_IROTH 00004 |
| #define | PR_IWOTH 00002 |
| #define | PR_IXOTH 00001 |
| #define | PR_MAX_IOVECTOR_SIZE 16 |
| #define | PR_DirName(dirEntry) (dirEntry->name) |
| #define | PR_MSG_PEEK 0x2 |
| #define | PR_ACCEPT_READ_BUF_OVERHEAD (32+(2*sizeof(PRNetAddr))) |
| #define | PR_POLL_READ 0x1 |
| #define | PR_POLL_WRITE 0x2 |
| #define | PR_POLL_EXCEPT 0x4 |
| #define | PR_POLL_ERR 0x8 |
| #define | PR_POLL_NVAL 0x10 |
| #define | PR_POLL_HUP 0x20 |
Typedefs |
| typedef struct PRDir | PRDir |
| typedef struct PRDirEntry | PRDirEntry |
| typedef struct PRFileDesc | PRFileDesc |
| typedef struct PRFileInfo | PRFileInfo |
| typedef struct PRFileInfo64 | PRFileInfo64 |
| typedef union PRNetAddr | PRNetAddr |
| typedef struct PRIOMethods | PRIOMethods |
| typedef struct PRPollDesc | PRPollDesc |
| typedef struct PRFilePrivate | PRFilePrivate |
| typedef struct PRSendFileData | PRSendFileData |
| typedef PRIntn | PRDescIdentity |
| typedef enum PRTransmitFileFlags | PRTransmitFileFlags |
| typedef struct PRIPv6Addr | PRIPv6Addr |
| typedef enum PRSockOption | PRSockOption |
| typedef struct PRLinger | PRLinger |
| typedef struct PRMcastRequest | PRMcastRequest |
| typedef struct PRSocketOptionData | PRSocketOptionData |
| typedef struct PRIOVec | PRIOVec |
| typedef enum PRDescType | PRDescType |
| typedef enum PRSeekWhence | PRSeekWhence |
| typedef PRStatus(* | PRCloseFN )(PRFileDesc *fd) |
| typedef PRInt32(* | PRReadFN )(PRFileDesc *fd, void *buf, PRInt32 amount) |
| typedef PRInt32(* | PRWriteFN )(PRFileDesc *fd, const void *buf, PRInt32 amount) |
| typedef PRInt32(* | PRAvailableFN )(PRFileDesc *fd) |
| typedef PRInt64(* | PRAvailable64FN )(PRFileDesc *fd) |
| typedef PRStatus(* | PRFsyncFN )(PRFileDesc *fd) |
| typedef PROffset32(* | PRSeekFN )(PRFileDesc *fd, PROffset32 offset, PRSeekWhence how) |
| typedef PROffset64(* | PRSeek64FN )(PRFileDesc *fd, PROffset64 offset, PRSeekWhence how) |
| typedef PRStatus(* | PRFileInfoFN )(PRFileDesc *fd, PRFileInfo *info) |
| typedef PRStatus(* | PRFileInfo64FN )(PRFileDesc *fd, PRFileInfo64 *info) |
| typedef PRInt32(* | PRWritevFN )(PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, PRIntervalTime timeout) |
| typedef PRStatus(* | PRConnectFN )(PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout) |
| typedef PRFileDesc *(* | PRAcceptFN )(PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout) |
| typedef PRStatus(* | PRBindFN )(PRFileDesc *fd, const PRNetAddr *addr) |
| typedef PRStatus(* | PRListenFN )(PRFileDesc *fd, PRIntn backlog) |
| typedef PRStatus(* | PRShutdownFN )(PRFileDesc *fd, PRIntn how) |
| typedef PRInt32(* | PRRecvFN )(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) |
| typedef PRInt32(* | PRSendFN )(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) |
| typedef PRInt32(* | PRRecvfromFN )(PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) |
| typedef PRInt32(* | PRSendtoFN )(PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) |
| typedef PRInt16(* | PRPollFN )(PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags) |
| typedef PRInt32(* | PRAcceptreadFN )(PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr, void *buf, PRInt32 amount, PRIntervalTime t) |
| typedef PRInt32(* | PRTransmitfileFN )(PRFileDesc *sd, PRFileDesc *fd, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime t) |
| typedef PRStatus(* | PRGetsocknameFN )(PRFileDesc *fd, PRNetAddr *addr) |
| typedef PRStatus(* | PRGetpeernameFN )(PRFileDesc *fd, PRNetAddr *addr) |
| typedef PRStatus(* | PRGetsocketoptionFN )(PRFileDesc *fd, PRSocketOptionData *data) |
| typedef PRStatus(* | PRSetsocketoptionFN )(PRFileDesc *fd, const PRSocketOptionData *data) |
| typedef PRInt32(* | PRSendfileFN )(PRFileDesc *networkSocket, PRSendFileData *sendData, PRTransmitFileFlags flags, PRIntervalTime timeout) |
| typedef PRStatus(* | PRConnectcontinueFN )(PRFileDesc *fd, PRInt16 out_flags) |
| typedef PRIntn(* | PRReservedFN )(PRFileDesc *fd) |
| typedef enum PRSpecialFD | PRSpecialFD |
| typedef enum PRFileType | PRFileType |
| typedef enum PRAccessHow | PRAccessHow |
| typedef enum PRDirFlags | PRDirFlags |
| typedef enum PRShutdownHow | PRShutdownHow |
| typedef struct PRFileMap | PRFileMap |
| typedef enum PRFileMapProtect | PRFileMapProtect |
Enumerations |
| enum | PRTransmitFileFlags { PR_TRANSMITFILE_KEEP_OPEN = 0,
PR_TRANSMITFILE_CLOSE_SOCKET = 1,
PR_TRANSMITFILE_KEEP_OPEN = 0,
PR_TRANSMITFILE_CLOSE_SOCKET = 1
} |
| enum | PRSockOption {
PR_SockOpt_Nonblocking,
PR_SockOpt_Linger,
PR_SockOpt_Reuseaddr,
PR_SockOpt_Keepalive,
PR_SockOpt_RecvBufferSize,
PR_SockOpt_SendBufferSize,
PR_SockOpt_IpTimeToLive,
PR_SockOpt_IpTypeOfService,
PR_SockOpt_AddMember,
PR_SockOpt_DropMember,
PR_SockOpt_McastInterface,
PR_SockOpt_McastTimeToLive,
PR_SockOpt_McastLoopback,
PR_SockOpt_NoDelay,
PR_SockOpt_MaxSegment,
PR_SockOpt_Broadcast,
PR_SockOpt_Last,
PR_SockOpt_Nonblocking,
PR_SockOpt_Linger,
PR_SockOpt_Reuseaddr,
PR_SockOpt_Keepalive,
PR_SockOpt_RecvBufferSize,
PR_SockOpt_SendBufferSize,
PR_SockOpt_IpTimeToLive,
PR_SockOpt_IpTypeOfService,
PR_SockOpt_AddMember,
PR_SockOpt_DropMember,
PR_SockOpt_McastInterface,
PR_SockOpt_McastTimeToLive,
PR_SockOpt_McastLoopback,
PR_SockOpt_NoDelay,
PR_SockOpt_MaxSegment,
PR_SockOpt_Broadcast,
PR_SockOpt_Last
} |
| enum | PRDescType {
PR_DESC_FILE = 1,
PR_DESC_SOCKET_TCP = 2,
PR_DESC_SOCKET_UDP = 3,
PR_DESC_LAYERED = 4,
PR_DESC_PIPE = 5,
PR_DESC_FILE = 1,
PR_DESC_SOCKET_TCP = 2,
PR_DESC_SOCKET_UDP = 3,
PR_DESC_LAYERED = 4,
PR_DESC_PIPE = 5
} |
| enum | PRSeekWhence {
PR_SEEK_SET = 0,
PR_SEEK_CUR = 1,
PR_SEEK_END = 2,
PR_SEEK_SET = 0,
PR_SEEK_CUR = 1,
PR_SEEK_END = 2
} |
| enum | PRSpecialFD {
PR_StandardInput,
PR_StandardOutput,
PR_StandardError,
PR_StandardInput,
PR_StandardOutput,
PR_StandardError
} |
| enum | PRFileType {
PR_FILE_FILE = 1,
PR_FILE_DIRECTORY = 2,
PR_FILE_OTHER = 3,
PR_FILE_FILE = 1,
PR_FILE_DIRECTORY = 2,
PR_FILE_OTHER = 3
} |
| enum | PRAccessHow {
PR_ACCESS_EXISTS = 1,
PR_ACCESS_WRITE_OK = 2,
PR_ACCESS_READ_OK = 3,
PR_ACCESS_EXISTS = 1,
PR_ACCESS_WRITE_OK = 2,
PR_ACCESS_READ_OK = 3
} |
| enum | PRDirFlags {
PR_SKIP_NONE = 0x0,
PR_SKIP_DOT = 0x1,
PR_SKIP_DOT_DOT = 0x2,
PR_SKIP_BOTH = 0x3,
PR_SKIP_HIDDEN = 0x4,
PR_SKIP_NONE = 0x0,
PR_SKIP_DOT = 0x1,
PR_SKIP_DOT_DOT = 0x2,
PR_SKIP_BOTH = 0x3,
PR_SKIP_HIDDEN = 0x4
} |
| enum | PRShutdownHow {
PR_SHUTDOWN_RCV = 0,
PR_SHUTDOWN_SEND = 1,
PR_SHUTDOWN_BOTH = 2,
PR_SHUTDOWN_RCV = 0,
PR_SHUTDOWN_SEND = 1,
PR_SHUTDOWN_BOTH = 2
} |
| enum | PRFileMapProtect {
PR_PROT_READONLY,
PR_PROT_READWRITE,
PR_PROT_WRITECOPY,
PR_PROT_READONLY,
PR_PROT_READWRITE,
PR_PROT_WRITECOPY
} |
Functions |
| PRDescType | PR_GetDescType (PRFileDesc *file) |
| PRFileDesc * | PR_GetSpecialFD (PRSpecialFD id) |
| PRDescIdentity | PR_GetUniqueIdentity (const char *layer_name) |
| const char * | PR_GetNameForIdentity (PRDescIdentity ident) |
| PRDescIdentity | PR_GetLayersIdentity (PRFileDesc *fd) |
| PRFileDesc * | PR_GetIdentitiesLayer (PRFileDesc *fd_stack, PRDescIdentity id) |
| const PRIOMethods * | PR_GetDefaultIOMethods (void) |
| PRFileDesc * | PR_CreateIOLayerStub (PRDescIdentity ident, const PRIOMethods *methods) |
| PRFileDesc * | PR_CreateIOLayer (PRFileDesc *fd) |
| PRStatus | PR_PushIOLayer (PRFileDesc *fd_stack, PRDescIdentity id, PRFileDesc *layer) |
| PRFileDesc * | PR_PopIOLayer (PRFileDesc *fd_stack, PRDescIdentity id) |
| PRFileDesc * | PR_Open (const char *name, PRIntn flags, PRIntn mode) |
| PRFileDesc * | PR_OpenFile (const char *name, PRIntn flags, PRIntn mode) |
| PRStatus | PR_Close (PRFileDesc *fd) |
| PRInt32 | PR_Read (PRFileDesc *fd, void *buf, PRInt32 amount) |
| PRInt32 | PR_Write (PRFileDesc *fd, const void *buf, PRInt32 amount) |
| PRInt32 | PR_Writev (PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size, PRIntervalTime timeout) |
| PRStatus | PR_Delete (const char *name) |
| PRStatus | PR_GetFileInfo (const char *fn, PRFileInfo *info) |
| PRStatus | PR_GetFileInfo64 (const char *fn, PRFileInfo64 *info) |
| PRStatus | PR_GetOpenFileInfo (PRFileDesc *fd, PRFileInfo *info) |
| PRStatus | PR_GetOpenFileInfo64 (PRFileDesc *fd, PRFileInfo64 *info) |
| PRStatus | PR_Rename (const char *from, const char *to) |
| PRStatus | PR_Access (const char *name, PRAccessHow how) |
| PROffset32 | PR_Seek (PRFileDesc *fd, PROffset32 offset, PRSeekWhence whence) |
| PROffset64 | PR_Seek64 (PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence) |
| PRInt32 | PR_Available (PRFileDesc *fd) |
| PRInt64 | PR_Available64 (PRFileDesc *fd) |
| PRStatus | PR_Sync (PRFileDesc *fd) |
| PRDir * | PR_OpenDir (const char *name) |
| PRDirEntry * | PR_ReadDir (PRDir *dir, PRDirFlags flags) |
| PRStatus | PR_CloseDir (PRDir *dir) |
| PRStatus | PR_MkDir (const char *name, PRIntn mode) |
| PRStatus | PR_MakeDir (const char *name, PRIntn mode) |
| PRStatus | PR_RmDir (const char *name) |
| PRFileDesc * | PR_NewUDPSocket (void) |
| PRFileDesc * | PR_NewTCPSocket (void) |
| PRFileDesc * | PR_OpenUDPSocket (PRIntn af) |
| PRFileDesc * | PR_OpenTCPSocket (PRIntn af) |
| PRStatus | PR_Connect (PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout) |
| PRStatus | PR_ConnectContinue (PRFileDesc *fd, PRInt16 out_flags) |
| PRStatus | PR_GetConnectStatus (const PRPollDesc *pd) |
| PRFileDesc * | PR_Accept (PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout) |
| PRStatus | PR_Bind (PRFileDesc *fd, const PRNetAddr *addr) |
| PRStatus | PR_Listen (PRFileDesc *fd, PRIntn backlog) |
| PRStatus | PR_Shutdown (PRFileDesc *fd, PRShutdownHow how) |
| PRInt32 | PR_Recv (PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) |
| PRInt32 | PR_Send (PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, PRIntervalTime timeout) |
| PRInt32 | PR_RecvFrom (PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout) |
| PRInt32 | PR_SendTo (PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout) |
| PRInt32 | PR_TransmitFile (PRFileDesc *networkSocket, PRFileDesc *sourceFile, const void *headers, PRInt32 hlen, PRTransmitFileFlags flags, PRIntervalTime timeout) |
| PRInt32 | PR_SendFile (PRFileDesc *networkSocket, PRSendFileData *sendData, PRTransmitFileFlags flags, PRIntervalTime timeout) |
| PRInt32 | PR_AcceptRead (PRFileDesc *listenSock, PRFileDesc **acceptedSock, PRNetAddr **peerAddr, void *buf, PRInt32 amount, PRIntervalTime timeout) |
| PRStatus | PR_NewTCPSocketPair (PRFileDesc *fds[2]) |
| PRStatus | PR_GetSockName (PRFileDesc *fd, PRNetAddr *addr) |
| PRStatus | PR_GetPeerName (PRFileDesc *fd, PRNetAddr *addr) |
| PRStatus | PR_GetSocketOption (PRFileDesc *fd, PRSocketOptionData *data) |
| PRStatus | PR_SetSocketOption (PRFileDesc *fd, const PRSocketOptionData *data) |
| PRStatus | PR_SetFDInheritable (PRFileDesc *fd, PRBool inheritable) |
| PRFileDesc * | PR_GetInheritedFD (const char *name) |
| PRFileMap * | PR_CreateFileMap (PRFileDesc *fd, PRInt64 size, PRFileMapProtect prot) |
| PRInt32 | PR_GetMemMapAlignment (void) |
| void * | PR_MemMap (PRFileMap *fmap, PROffset64 offset, PRUint32 len) |
| PRStatus | PR_MemUnmap (void *addr, PRUint32 len) |
| PRStatus | PR_CloseFileMap (PRFileMap *fmap) |
| PRStatus | PR_CreatePipe (PRFileDesc **readPipe, PRFileDesc **writePipe) |
| PRInt32 | PR_Poll (PRPollDesc *pds, PRIntn npds, PRIntervalTime timeout) |
| PRFileDesc * | PR_NewPollableEvent (void) |
| PRStatus | PR_DestroyPollableEvent (PRFileDesc *event) |
| PRStatus | PR_SetPollableEvent (PRFileDesc *event) |
| PRStatus | PR_WaitForPollableEvent (PRFileDesc *event) |