Searched refs:osfd (Results 1 - 25 of 47) sorted by relevance

12

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw95sock.c49 PRInt32 osfd,
89 _MD_CloseSocket(PRInt32 osfd) argument
93 rv = closesocket((SOCKET) osfd );
105 if (ioctlsocket(fd->secret->md.osfd, FIONREAD, &result) < 0) {
118 PRInt32 osfd = fd->secret->md.osfd; local
121 while ((rv = accept(osfd, (struct sockaddr *) raddr, rlen)) == -1)
126 if ((rv = socket_io_wait(osfd, READ_FD, timeout)) < 0)
144 PRInt32 osfd = fd->secret->md.osfd; local
204 PRInt32 osfd = fd->secret->md.osfd; local
238 PRInt32 osfd = fd->secret->md.osfd; local
282 PRInt32 osfd = fd->secret->md.osfd; local
327 PRInt32 osfd = fd->secret->md.osfd; local
471 socket_io_wait( PRInt32 osfd, PRInt32 fd_type, PRIntervalTime timeout) argument
[all...]
H A Dw16sock.c133 if (ioctlsocket(fd->secret->md.osfd, FIONREAD, &result) < 0) {
146 _PR_MD_CLOSE_SOCKET(PRInt32 osfd) argument
150 rv = closesocket((SOCKET) osfd );
161 rv = listen(fd->secret->md.osfd, backlog);
173 PRInt32 osfd = fd->secret->md.osfd; local
180 while ((rv = (SOCKET)accept(osfd, (struct sockaddr *) addr,
187 if (_PR_WaitForFD(osfd, PR_POLL_READ, timeout) == 0) {
225 PRInt32 osfd = fd->secret->md.osfd; local
294 PRInt32 osfd = fd->secret->md.osfd; local
338 PRInt32 osfd = fd->secret->md.osfd; local
382 PRInt32 osfd = fd->secret->md.osfd; local
427 PRInt32 osfd = fd->secret->md.osfd; local
576 _PR_WaitForFD(PRInt32 osfd, PRUintn how, PRIntervalTime timeout) argument
722 PRInt32 osfd = pds->osfd; local
759 PRInt32 osfd = pds->osfd; local
886 PRInt32 osfd = pds->osfd; local
921 PRInt32 osfd = pds->osfd; local
1037 PRInt32 osfd; local
1124 PRInt32 osfd; local
[all...]
H A Dw32poll.c146 SOCKET osfd; local
196 osfd = (SOCKET) bottom->secret->md.osfd;
200 FD_SET(osfd, &rd);
206 FD_SET(osfd, &wt);
212 FD_SET(osfd, &rd);
218 FD_SET(osfd, &wt);
222 FD_SET(osfd, &ex);
291 SOCKET osfd; local
295 osfd
[all...]
H A Dntio.c176 union { SOCKET osfd; } arg1; /* #1 - the op's fd */ member in union:pt_Continuation::__anon17231
222 SOCKET osfd, const void *buf,
225 static PRInt32 pt_RecvFrom(SOCKET osfd, void *buf, PRInt32 amount,
1156 PRInt32 osfd; member in struct:connect_data_s
1167 cd->status = connect(cd->osfd, cd->addr, cd->addrlen);
1180 PRInt32 osfd = fd->secret->md.osfd; local
1187 rv = _md_MakeNonblock((HANDLE)osfd);
1192 if ((rv = connect(osfd, (struct sockaddr *) addr, addrlen)) == -1) {
1206 rv = ioctlsocket((SOCKET)osfd, FIONBI
1276 PRInt32 osfd = fd->secret->md.osfd; local
1710 PRInt32 osfd = fd->secret->md.osfd; local
1809 PRInt32 osfd = fd->secret->md.osfd; local
1904 PRInt32 osfd = fd->secret->md.osfd; local
1922 PRInt32 osfd = fd->secret->md.osfd; local
1940 PRInt32 osfd = fd->secret->md.osfd; local
2616 _PR_MD_CLOSE(PRInt32 osfd, PRBool socket) argument
3797 PRInt32 osfd = fd->secret->md.osfd; local
3856 PRInt32 osfd = fd->secret->md.osfd; local
3909 PRInt32 osfd = fd->secret->md.osfd; local
3953 PRInt32 osfd = fd->secret->md.osfd; local
4049 PRInt32 osfd = fd->secret->md.osfd; local
4114 PRInt32 osfd = fd->secret->md.osfd; local
4612 pt_SendTo( SOCKET osfd, const void *buf, PRInt32 amount, PRInt32 flags, const PRNetAddr *addr, PRIntn addrlen, PRIntervalTime timeout) argument
4650 pt_RecvFrom(SOCKET osfd, void *buf, PRInt32 amount, PRInt32 flags, PRNetAddr *addr, PRIntn *addr_len, PRIntervalTime timeout) argument
[all...]
H A Dw16io.c144 ( fd->secret->md.osfd == PR_StandardInput ) &&
151 rv = read( fd->secret->md.osfd, buf, len );
180 switch ( fd->secret->md.osfd )
197 rv = write( fd->secret->md.osfd, buf, len );
207 rv = write( fd->secret->md.osfd, buf, len );
231 rv = lseek( fd->secret->md.osfd, offset, whence );
275 rv = (PRInt32) fsync( fd->secret->md.osfd );
292 _PR_MD_CLOSE_FILE(PRInt32 osfd) argument
296 rv = (PRInt32) close( osfd );
509 rv = fstat( fd->secret->md.osfd,
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2poll.c51 PRBool IsSocketSet( PRInt32 osfd, int* socks, int start, int count ) argument
58 if( socks[i] == osfd )
151 PRInt32 osfd = bottom->secret->md.osfd; local
152 if (osfd > maxfd)
153 maxfd = osfd;
158 FD_SET(osfd, &rd);
160 socks[rd] = osfd;
168 FD_SET(osfd, &wt);
170 socks[npds+wt] = osfd;
300 PRInt32 osfd; local
[all...]
H A Dos2sock.c81 PRInt32 osfd, err; local
83 osfd = socket(domain, type, flags);
85 if (osfd == -1)
93 err = fcntl(osfd, F_SETFD, FD_CLOEXEC);
96 soclose(osfd);
101 return(osfd);
109 _MD_CloseSocket(PRInt32 osfd) argument
113 rv = soclose(osfd);
126 if (_OS2_IOCTL(fd->secret->md.osfd, FIONREAD, (char *) &result, sizeof(result)) < 0) {
134 socket_io_wait( PRInt32 osfd, PRInt3 argument
288 PRInt32 osfd = fd->secret->md.osfd; local
325 PRInt32 osfd = fd->secret->md.osfd; local
426 PRInt32 osfd = fd->secret->md.osfd; local
456 PRInt32 osfd = fd->secret->md.osfd; local
500 PRInt32 osfd = fd->secret->md.osfd; local
537 PRInt32 osfd = fd->secret->md.osfd; local
576 PRInt32 osfd = fd->secret->md.osfd; local
638 _PR_MD_SOCKETPAIR(int af, int type, int flags, PRInt32 *osfd) argument
718 PRInt32 osfd = fd->secret->md.osfd; local
[all...]
H A Dos2io.c225 rv = DosRead((HFILE)fd->secret->md.osfd,
250 rv = DosWrite((HFILE)fd->secret->md.osfd,
276 rv = DosSetFilePtr((HFILE)fd->secret->md.osfd, offset, whence, &newLocation);
293 rv = DosSetFilePtr((HFILE)fd->secret->md.osfd, low, whence, &newLocation);
294 rv = DosSetFilePtr((HFILE)fd->secret->md.osfd, hi, FILE_CURRENT, &newLocation);
326 rc = DosSetFilePtr((HFILE)fd->secret->md.osfd, lo, where, (PULONG)&newLocation);
348 PRInt32 rc = DosResetBuffer((HFILE)fd->secret->md.osfd);
360 _MD_CloseFile(PRInt32 osfd) argument
364 rv = DosClose((HFILE)osfd);
609 _setmode(fd->secret->md.osfd, O_BINAR
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbnet.c79 static PRInt32 socket_io_wait(PRInt32 osfd, PRInt32 fd_type, argument
103 FD_SET(osfd, &rd_wr);
105 rv = _MD_SELECT(osfd + 1, &rd_wr, NULL, NULL, &tv);
107 rv = _MD_SELECT(osfd + 1, NULL, &rd_wr, NULL, &tv);
150 FD_SET(osfd, &rd_wr);
152 rv = _MD_SELECT(osfd + 1, &rd_wr, NULL, NULL, &tv);
154 rv = _MD_SELECT(osfd + 1, NULL, &rd_wr, NULL, &tv);
215 PRInt32 osfd = fd->secret->md.osfd; local
236 while ((rv = recv(osfd, bu
267 PRInt32 osfd = fd->secret->md.osfd; local
311 PRInt32 osfd = fd->secret->md.osfd; local
387 PRInt32 osfd = fd->secret->md.osfd; local
441 PRInt32 osfd = fd->secret->md.osfd; local
499 PRInt32 osfd = fd->secret->md.osfd; local
548 PRInt32 osfd = fd->secret->md.osfd; local
733 _MD_socketpair(int af, int type, int flags, PRInt32 *osfd) argument
739 _MD_close_socket(PRInt32 osfd) argument
836 PRInt32 osfd, err; local
852 PRInt32 osfd, err; local
918 _MD_beos_get_nonblocking_connect_error(int osfd) argument
[all...]
H A Dbfile.c117 setsockopt(fd->secret->md.osfd, SOL_SOCKET, SO_NONBLOCK, &blocking, sizeof(blocking));
126 rv = fcntl(fd->secret->md.osfd, F_SETFD, inheritable ? 0 : FD_CLOEXEC);
140 int flags = fcntl(fd->secret->md.osfd, F_GETFD, 0);
156 flags = fcntl(fd->secret->md.osfd, F_GETFD, 0);
211 _MD_close_file (PRInt32 osfd) argument
215 rv = close(osfd);
227 PRInt32 osfd = fd->secret->md.osfd; local
229 rv = read( osfd, buf, amount );
241 PRInt32 osfd local
636 PRInt32 osfd = bottom->secret->md.osfd; local
726 PRInt32 osfd; local
836 _MD_lockfile(PRInt32 osfd) argument
855 _MD_tlockfile(PRInt32 osfd) argument
874 _MD_unlockfile(PRInt32 osfd) argument
[all...]
H A Dbproc.c99 /* the osfd's to redirect stdin, stdout, and stderr to */
103 && attr->stdinFd->secret->md.osfd != 0) {
104 in_osfd = attr->stdinFd->secret->md.osfd;
114 && attr->stdoutFd->secret->md.osfd != 1) {
115 out_osfd = attr->stdoutFd->secret->md.osfd;
125 && attr->stderrFd->secret->md.osfd != 2) {
126 err_osfd = attr->stderrFd->secret->md.osfd;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/io/
H A Dprio.c102 PR_IMPLEMENT(PRFileDesc*) PR_GetSpecialFD(PRSpecialFD osfd) argument
105 PR_ASSERT((int) osfd >= PR_StandardInput && osfd <= PR_StandardError);
109 switch (osfd)
121 PRInt32 osfd, const PRIOMethods *methods)
130 PR_ASSERT(osfd < FD_SETSIZE);
137 fd->secret->md.osfd = osfd;
120 PR_AllocFileDesc( PRInt32 osfd, const PRIOMethods *methods) argument
H A Dprfile.c75 ("read: fd=%p osfd=%d buf=%p amount=%d",
76 fd, fd ? fd->secret->md.osfd : 0, buf, amount));
115 ("write: fd=%p osfd=%d buf=%p amount=%d",
116 fd, fd ? fd->secret->md.osfd : 0, buf, amount));
260 if (_PR_MD_CLOSE_FILE(fd->secret->md.osfd) < 0) {
369 PRInt32 osfd; local
379 osfd = _PR_MD_OPEN(name, flags, mode);
380 if (osfd != -1) {
381 fd = PR_AllocFileDesc(osfd, &_pr_fileMethods);
383 (void) _PR_MD_CLOSE_FILE(osfd);
397 PRInt32 osfd; local
576 PR_ImportFile(PRInt32 osfd) argument
595 PR_ImportPipe(PRInt32 osfd) argument
820 PRInt32 osfd; local
[all...]
H A Dprsocket.c193 PR_IMPLEMENT(PRFileDesc *) PR_ImportTCPSocket(PRInt32 osfd) argument
198 fd = PR_AllocFileDesc(osfd, PR_GetTCPMethods());
203 _PR_MD_CLOSE_SOCKET(osfd);
207 PR_IMPLEMENT(PRFileDesc *) PR_ImportUDPSocket(PRInt32 osfd) argument
212 fd = PR_AllocFileDesc(osfd, PR_GetUDPMethods());
217 _PR_MD_CLOSE_SOCKET(osfd);
224 PR_IMPLEMENT(PRFileDesc*) PR_CreateSocketPollFd(PRInt32 osfd) argument
235 fd->secret->md.osfd = osfd;
290 PRInt32 osfd; local
400 PRInt32 osfd; local
479 PRInt32 osfd; local
1257 PRInt32 osfd; local
1272 PRInt32 osfd; local
1360 PRInt32 rv, osfd[2]; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Dreliantunix.c60 PRInt32 _MD_connect(PRInt32 osfd, PRNetAddr *addr, PRInt32 addrlen, argument
66 rv = _connect(osfd,addr,addrlen);
70 PRInt32 _MD_accept(PRInt32 osfd, PRNetAddr *addr, PRInt32 addrlen, argument
76 rv = _accept(osfd,addr,addrlen);
H A Dscoos.c60 PRInt32 _MD_connect(PRInt32 osfd, PRNetAddr *addr, PRInt32 addrlen, argument
66 rv = _connect(osfd,addr,addrlen);
70 PRInt32 _MD_accept(PRInt32 osfd, PRNetAddr *addr, PRInt32 addrlen, argument
76 rv = _accept(osfd,addr,addrlen);
H A Dunix.c126 static PRInt32 local_io_wait(PRInt32 osfd, PRInt32 wait_flag,
321 PRInt32 osfd = fd->secret->md.osfd; local
325 FD_SET(osfd, &rd);
327 pfd.fd = osfd;
330 while ((rv = read(osfd,buf,amount)) == -1) {
337 if ((rv = local_io_wait(osfd, _PR_UNIX_POLL_READ,
342 while ((rv = _MD_SELECT(osfd + 1, &rd, NULL, NULL, NULL))
385 PRInt32 osfd = fd->secret->md.osfd; local
452 _MD_close(PRInt32 osfd) argument
466 PRInt32 osfd, err; local
511 socket_io_wait(PRInt32 osfd, PRInt32 fd_type, PRIntervalTime timeout) argument
629 socket_io_wait(PRInt32 osfd, PRInt32 fd_type, PRIntervalTime timeout) argument
758 local_io_wait( PRInt32 osfd, PRInt32 wait_flag, PRIntervalTime timeout) argument
790 PRInt32 osfd = fd->secret->md.osfd; local
833 PRInt32 osfd = fd->secret->md.osfd; local
876 PRInt32 osfd = fd->secret->md.osfd; local
955 PRInt32 osfd = fd->secret->md.osfd; local
1003 PRInt32 osfd = fd->secret->md.osfd; local
1066 PRInt32 osfd = fd->secret->md.osfd; local
1111 PRInt32 osfd = fd->secret->md.osfd; local
1237 _MD_socketpair(int af, int type, int flags, PRInt32 *osfd) argument
1373 PRInt32 osfd = pds->osfd; local
1403 PRInt32 osfd = pds->osfd; local
1816 PRInt32 osfd = pds->osfd; local
1851 PRInt32 osfd = pds->osfd; local
2193 PRInt32 osfd = fd->secret->md.osfd; local
2660 _MD_solaris25_fstat64(PRIntn osfd, _MDStat64 *buf) argument
2707 _MD_Unix_lseek64(PRIntn osfd, PROffset64 offset, PRIntn whence) argument
3060 PRInt32 osfd = unixpd->osfd; local
3120 PRInt32 osfd = unixpd->osfd; local
3213 _MD_unix_get_nonblocking_connect_error(int osfd) argument
3631 int osfd = filedes[i].fd; local
[all...]
H A Duxwrap.c118 int osfd; local
201 for (osfd = 0; osfd < width; osfd++) {
203 if (rd && FD_ISSET(osfd, rd)) {
206 if (wr && FD_ISSET(osfd, wr)) {
209 if (ex && FD_ISSET(osfd, ex)) {
213 unixpd->osfd = osfd;
264 ("select returns EBADF for %d", unixpd->osfd));
[all...]
H A Duxpoll.c130 syspoll[index].fd = bottom->secret->md.osfd;
352 PRInt32 osfd = bottom->secret->md.osfd; local
353 if (osfd > maxfd) maxfd = osfd;
357 FD_SET(osfd, &rd);
362 FD_SET(osfd, &wt);
367 FD_SET(osfd, &rd);
372 FD_SET(osfd, &wt);
374 if (pd->in_flags & PR_POLL_EXCEPT) FD_SET(osfd,
442 PRInt32 osfd; local
[all...]
H A Duxshm.c117 int osfd = open( shm->ipcname, (O_RDWR | O_CREAT), shm->mode ); local
118 if ( -1 == osfd ) {
124 if ( close(osfd) == -1 ) {
244 int osfd = open( ipcname, (O_RDWR | O_CREAT), 0666 ); local
245 if ( -1 == osfd ) {
249 if ( close(osfd) == -1 ) {
501 int osfd; local
526 osfd = open( genName, (O_CREAT | O_EXCL | O_RDWR), mode );
527 if ( -1 == osfd ) {
544 PR_ASSERT( -1 == osfd );
627 PRInt32 osfd; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptio.c237 PRIntn osfd, PRDescType type, PRBool isAcceptedSocket, PRBool imported);
333 union { PRIntn osfd; } arg1; /* #1 - the op's fd */ member in union:pt_Continuation::__anon17246
452 PR_ASSERT(op->arg1.osfd < FD_SETSIZE);
464 FD_SET(op->arg1.osfd, &rd);
470 FD_SET(op->arg1.osfd, &wr);
475 rv = select(op->arg1.osfd + 1, rdp, wrp, NULL, &tv);
493 if ((op->event & POLLIN) && FD_ISSET(op->arg1.osfd, &rd))
495 if ((op->event & POLLOUT) && FD_ISSET(op->arg1.osfd, &wr))
517 FD_SET(op->arg1.osfd, &rd);
523 FD_SET(op->arg1.osfd,
1174 int osfd; local
1217 PR_GetSpecialFD(PRSpecialFD osfd) argument
1629 PRInt32 osfd; local
1671 PRIntn syserrno, osfd = -1; local
3276 pt_MakeFdNonblock(PRIntn osfd) argument
3299 pt_MakeSocketNonblock(PRIntn osfd) argument
3308 pt_SetMethods( PRIntn osfd, PRDescType type, PRBool isAcceptedSocket, PRBool imported) argument
3379 PR_AllocFileDesc( PRInt32 osfd, const PRIOMethods *methods) argument
3410 PRInt32 osfd; local
3442 PRIntn osfd; local
3523 PRIntn syserrno, osfd = -1, osflags = 0;; local
4363 PRInt32 osfd[2]; local
4453 PR_ImportFile(PRInt32 osfd) argument
4463 PR_ImportPipe(PRInt32 osfd) argument
4473 PR_ImportTCPSocket(PRInt32 osfd) argument
4486 PR_ImportUDPSocket(PRInt32 osfd) argument
4496 PR_CreateSocketPollFd(PRInt32 osfd) argument
4530 PRInt32 osfd = -1; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/obsolete/
H A Dprobslet.h159 ** PR_FD_NSET(osfd, &fdset) includes a particular native file descriptor osfd
161 ** PR_FD_NCLR(osfd, &fdset) removes a native file descriptor osfd from fdset.
162 ** PR_FD_NISSET(osfd, &fdset) is nonzero if native file descriptor osfd is a member of
170 NSPR_API(void) PR_FD_NSET(PRInt32 osfd, PR_fd_set *set);
171 NSPR_API(void) PR_FD_NCLR(PRInt32 osfd, PR_fd_set *set);
172 NSPR_API(PRInt32) PR_FD_NISSET(PRInt32 osfd, PR_fd_set *set);
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/private/
H A Dpprio.h96 NSPR_API(PRFileDesc*) PR_AllocFileDesc(PRInt32 osfd,
102 NSPR_API(PRFileDesc*) PR_ImportFile(PRInt32 osfd); variable
103 NSPR_API(PRFileDesc*) PR_ImportPipe(PRInt32 osfd); variable
104 NSPR_API(PRFileDesc*) PR_ImportTCPSocket(PRInt32 osfd); variable
105 NSPR_API(PRFileDesc*) PR_ImportUDPSocket(PRInt32 osfd); variable
126 NSPR_API(PRFileDesc*) PR_CreateSocketPollFd(PRInt32 osfd); variable
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dzerolen.c124 int osfd; local
170 osfd = PR_FileDesc2NativeHandle(acceptSock);
171 while ((nbytes = write(osfd, buf, sizeof(buf))) != -1) {
211 osfd = PR_FileDesc2NativeHandle(acceptSock);
212 while ((nbytes = write(osfd, buf, sizeof(buf))) != -1) {
250 osfd = PR_FileDesc2NativeHandle(acceptSock);
251 while ((nbytes = write(osfd, buf, sizeof(buf))) != -1) {
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/md/
H A D_macos.h123 PRInt32 osfd; member in struct:_MDFileDesc
409 extern PRStatus _MD_LockFile(PRInt32 osfd);
411 extern PRStatus _MD_TLockFile(PRInt32 osfd);
413 extern PRStatus _MD_UnlockFile(PRInt32 osfd);
502 #define _MD_SEND(fd,buf,amount,flags,timeout) macsock_send(fd->secret->md.osfd,buf,amount,flags)
503 #define _MD_SENDTO(fd,buf,amount,flags,addr,addrlen,timeout) macsock_sendto(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen)
504 #define _MD_RECV(fd,buf,amount,flags,timeout) macsock_recv(fd->secret->md.osfd,buf,amount,flags)
505 #define _MD_RECVFROM(fd,buf,amount,flags,addr,addrlen,timeout) macsock_recvfrom(fd->secret->md.osfd,buf,amount,flags,(struct sockaddr *)addr,addrlen)
509 #define _MD_ACCEPT(fd,addr,addrlen,timeout) macsock_accept(fd->secret->md.osfd,(struct sockaddr *)addr,addrlen)
510 #define _MD_CONNECT(fd,name,namelen,timeout) macsock_connect(fd->secret->md.osfd,(struc
[all...]

Completed in 111 milliseconds

12