Lines Matching refs:PRFileDesc

139 typedef struct PRFileDesc       PRFileDesc;
161 struct PRFileDesc {
164 PRFileDesc *lower, *higher; /* pointers to adjacent layers */
165 void (PR_CALLBACK *dtor)(PRFileDesc *fd);
390 NSPR_API(PRDescType) PR_GetDescType(PRFileDesc *file);
408 typedef PRStatus (PR_CALLBACK *PRCloseFN)(PRFileDesc *fd);
409 typedef PRInt32 (PR_CALLBACK *PRReadFN)(PRFileDesc *fd, void *buf, PRInt32 amount);
410 typedef PRInt32 (PR_CALLBACK *PRWriteFN)(PRFileDesc *fd, const void *buf, PRInt32 amount);
411 typedef PRInt32 (PR_CALLBACK *PRAvailableFN)(PRFileDesc *fd);
412 typedef PRInt64 (PR_CALLBACK *PRAvailable64FN)(PRFileDesc *fd);
413 typedef PRStatus (PR_CALLBACK *PRFsyncFN)(PRFileDesc *fd);
414 typedef PROffset32 (PR_CALLBACK *PRSeekFN)(PRFileDesc *fd, PROffset32 offset, PRSeekWhence how);
415 typedef PROffset64 (PR_CALLBACK *PRSeek64FN)(PRFileDesc *fd, PROffset64 offset, PRSeekWhence how);
416 typedef PRStatus (PR_CALLBACK *PRFileInfoFN)(PRFileDesc *fd, PRFileInfo *info);
417 typedef PRStatus (PR_CALLBACK *PRFileInfo64FN)(PRFileDesc *fd, PRFileInfo64 *info);
419 PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size,
422 PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout);
423 typedef PRFileDesc* (PR_CALLBACK *PRAcceptFN) (
424 PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout);
425 typedef PRStatus (PR_CALLBACK *PRBindFN)(PRFileDesc *fd, const PRNetAddr *addr);
426 typedef PRStatus (PR_CALLBACK *PRListenFN)(PRFileDesc *fd, PRIntn backlog);
427 typedef PRStatus (PR_CALLBACK *PRShutdownFN)(PRFileDesc *fd, PRIntn how);
429 PRFileDesc *fd, void *buf, PRInt32 amount,
432 PRFileDesc *fd, const void *buf, PRInt32 amount,
435 PRFileDesc *fd, void *buf, PRInt32 amount,
438 PRFileDesc *fd, const void *buf, PRInt32 amount,
441 PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags);
443 PRFileDesc *sd, PRFileDesc **nd, PRNetAddr **raddr,
446 PRFileDesc *sd, PRFileDesc *fd, const void *headers,
448 typedef PRStatus (PR_CALLBACK *PRGetsocknameFN)(PRFileDesc *fd, PRNetAddr *addr);
449 typedef PRStatus (PR_CALLBACK *PRGetpeernameFN)(PRFileDesc *fd, PRNetAddr *addr);
451 PRFileDesc *fd, PRSocketOptionData *data);
453 PRFileDesc *fd, const PRSocketOptionData *data);
455 PRFileDesc *networkSocket, PRSendFileData *sendData,
458 PRFileDesc *fd, PRInt16 out_flags);
459 typedef PRIntn (PR_CALLBACK *PRReservedFN)(PRFileDesc *fd);
515 * RETURNS: PRFileDesc *
529 NSPR_API(PRFileDesc*) PR_GetSpecialFD(PRSpecialFD id);
571 NSPR_API(PRDescIdentity) PR_GetLayersIdentity(PRFileDesc* fd);
572 NSPR_API(PRFileDesc*) PR_GetIdentitiesLayer(PRFileDesc* fd_stack, PRDescIdentity id);
593 NSPR_API(PRFileDesc*) PR_CreateIOLayerStub(
610 NSPR_API(PRFileDesc*) PR_CreateIOLayer(PRFileDesc* fd);
627 PRFileDesc *fd_stack, PRDescIdentity id, PRFileDesc *layer);
643 NSPR_API(PRFileDesc*) PR_PopIOLayer(PRFileDesc *fd_stack, PRDescIdentity id);
674 * RETURNS: PRFileDesc *
676 * returns a pointer to the PRFileDesc
684 * PRFileDesc object.
717 NSPR_API(PRFileDesc*) PR_Open(const char *name, PRIntn flags, PRIntn mode);
743 NSPR_API(PRFileDesc*) PR_OpenFile(
750 NSPR_API(PRFileDesc*) PR_OpenFileUTF16(
760 * PRFileDesc *fd
761 * a pointer to a PRFileDesc.
774 NSPR_API(PRStatus) PR_Close(PRFileDesc *fd);
785 * PRFileDesc *fd
786 * pointer to the PRFileDesc object for the file or socket
809 NSPR_API(PRInt32) PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount);
818 * PRFileDesc *fd
819 * pointer to a PRFileDesc object that refers to a file or socket
833 NSPR_API(PRInt32) PR_Write(PRFileDesc *fd,const void *buf,PRInt32 amount);
843 * PRFileDesc *fd
844 * Pointer that points to a PRFileDesc object for a socket.
868 PRFileDesc *fd, const PRIOVec *iov, PRInt32 iov_size,
946 * given PRFileDesc object.
948 * const PRFileDesc *fd
958 NSPR_API(PRStatus) PR_GetOpenFileInfo(PRFileDesc *fd, PRFileInfo *info);
959 NSPR_API(PRStatus) PR_GetOpenFileInfo64(PRFileDesc *fd, PRFileInfo64 *info);
1017 * PRFileDesc *fd
1018 * Pointer to a PRFileDesc object.
1044 NSPR_API(PROffset32) PR_Seek(PRFileDesc *fd, PROffset32 offset, PRSeekWhence whence);
1045 NSPR_API(PROffset64) PR_Seek64(PRFileDesc *fd, PROffset64 offset, PRSeekWhence whence);
1054 * PRFileDesc *fd
1055 * Pointer to a PRFileDesc object that refers to a file or
1067 NSPR_API(PRInt32) PR_Available(PRFileDesc *fd);
1068 NSPR_API(PRInt64) PR_Available64(PRFileDesc *fd);
1076 * PRFileDesc *fd
1077 * Pointer to a PRFileDesc object that refers to a file or
1087 NSPR_API(PRStatus) PR_Sync(PRFileDesc *fd);
1264 * RETURN: PRFileDesc*
1266 * to the PRFileDesc created for the newly opened UDP socket.
1272 NSPR_API(PRFileDesc*) PR_NewUDPSocket(void);
1283 * RETURN: PRFileDesc*
1285 * to the PRFileDesc created for the newly opened TCP socket.
1291 NSPR_API(PRFileDesc*) PR_NewTCPSocket(void);
1303 * RETURN: PRFileDesc*
1305 * to the PRFileDesc created for the newly opened UDP socket.
1311 NSPR_API(PRFileDesc*) PR_OpenUDPSocket(PRIntn af);
1323 * RETURN: PRFileDesc*
1325 * to the PRFileDesc created for the newly opened TCP socket.
1331 NSPR_API(PRFileDesc*) PR_OpenTCPSocket(PRIntn af);
1339 * PRFileDesc *fd
1340 * Points to a PRFileDesc object representing a socket
1356 PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout);
1372 * PRFileDesc *fd
1390 NSPR_API(PRStatus) PR_ConnectContinue(PRFileDesc *fd, PRInt16 out_flags);
1428 * PRFileDesc *fd
1429 * Points to a PRFileDesc object representing the rendezvous socket
1437 * RETURN: PRFileDesc*
1444 NSPR_API(PRFileDesc*) PR_Accept(
1445 PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout);
1453 * PRFileDesc *fd
1454 * Points to a PRFileDesc object representing a socket.
1466 NSPR_API(PRStatus) PR_Bind(PRFileDesc *fd, const PRNetAddr *addr);
1474 * PRFileDesc *fd
1475 * Points to a PRFileDesc object representing a socket that will be
1488 NSPR_API(PRStatus) PR_Listen(PRFileDesc *fd, PRIntn backlog);
1496 * PRFileDesc *fd
1497 * Points to a PRFileDesc object representing a connected socket.
1519 NSPR_API(PRStatus) PR_Shutdown(PRFileDesc *fd, PRShutdownHow how);
1530 * PRFileDesc *fd
1531 * points to a PRFileDesc object representing a socket.
1552 NSPR_API(PRInt32) PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount,
1563 * PRFileDesc *fd
1564 * points to a PRFileDesc object representing a socket.
1583 NSPR_API(PRInt32) PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount,
1596 * PRFileDesc *fd
1597 * points to a PRFileDesc object representing a socket.
1619 PRFileDesc *fd, void *buf, PRInt32 amount, PRIntn flags,
1630 * PRFileDesc *fd
1631 * points to a PRFileDesc object representing an unconnected socket.
1652 PRFileDesc *fd, const void *buf, PRInt32 amount, PRIntn flags,
1668 ** PRFileDesc *networkSocket
1670 ** PRFileDesc *sourceFile
1692 PRFileDesc *networkSocket, PRFileDesc *sourceFile,
1710 ** PRFileDesc *networkSocket
1731 PRFileDesc *fd; /* file to send */
1744 PRFileDesc *networkSocket, PRSendFileData *sendData,
1757 ** PRFileDesc *listenSock
1775 ** PRFileDesc **acceptedSock
1798 PRFileDesc *listenSock, PRFileDesc **acceptedSock,
1812 ** PRFileDesc *fds[2]
1821 NSPR_API(PRStatus) PR_NewTCPSocketPair(PRFileDesc *fds[2]);
1830 ** PRFileDesc *fd
1831 ** Points to a PRFileDesc object representing the socket.
1841 NSPR_API(PRStatus) PR_GetSockName(PRFileDesc *fd, PRNetAddr *addr);
1851 ** PRFileDesc *fd
1852 ** Points to a PRFileDesc object representing the connected peer.
1863 NSPR_API(PRStatus) PR_GetPeerName(PRFileDesc *fd, PRNetAddr *addr);
1866 PRFileDesc *fd, PRSocketOptionData *data);
1869 PRFileDesc *fd, const PRSocketOptionData *data);
1886 * PRFileDesc *fd
1887 * Points to a PRFileDesc object.
1899 PRFileDesc *fd,
1911 * RETURN: PRFileDesc *
1918 NSPR_API(PRFileDesc *) PR_GetInheritedFD(const char *name);
1940 PRFileDesc *fd,
1973 PRFileDesc **readPipe,
1974 PRFileDesc **writePipe
1982 PRFileDesc* fd;
2022 ** PRPollDesc.fd should be set to a pointer to a PRFileDesc object
2024 ** PR_Poll that this PRFileDesc object should be ignored.
2097 NSPR_API(PRFileDesc *) PR_NewPollableEvent(void);
2099 NSPR_API(PRStatus) PR_DestroyPollableEvent(PRFileDesc *event);
2101 NSPR_API(PRStatus) PR_SetPollableEvent(PRFileDesc *event);
2103 NSPR_API(PRStatus) PR_WaitForPollableEvent(PRFileDesc *event);