Searched defs:osfd (Results 1 - 25 of 40) sorted by relevance

12

/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/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) {
H A Dselect2.c235 PRIntn osfd; local
256 osfd = PR_FileDesc2NativeHandle(newSock);
258 FD_SET(osfd, &rdset);
264 rv = select(osfd + 1, &rdset, NULL, NULL, &timeout);
268 if (FD_ISSET(osfd, &rdset)) {
/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 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 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 Dncr.c60 PRInt32 _MD_connect(PRInt32 osfd, const 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 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...]
H A Dunixware.c63 PRInt32 _MD_connect(PRInt32 osfd, const PRNetAddr *addr, PRInt32 addrlen, argument
69 rv = _connect(osfd,addr,addrlen);
73 PRInt32 _MD_accept(PRInt32 osfd, PRNetAddr *addr, PRInt32 addrlen, argument
79 rv = _accept(osfd,addr,addrlen);
/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/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 Dos2_errors.c751 int _MD_os2_get_nonblocking_connect_error(int osfd) argument
755 if (getsockopt(osfd, SOL_SOCKET, SO_ERROR, (char *) &err, &len) == -1) {
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/windows/
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 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 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...]
H A Dntmisc.c441 startupInfo.hStdInput = (HANDLE) attr->stdinFd->secret->md.osfd;
445 startupInfo.hStdOutput = (HANDLE) attr->stdoutFd->secret->md.osfd;
449 startupInfo.hStdError = (HANDLE) attr->stderrFd->secret->md.osfd;
653 PRUint32 osfd; local
655 osfd = ( fmap->fd == (PRFileDesc*)-1 )? -1 : fmap->fd->secret->md.osfd;
673 (HANDLE) osfd,
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...]
/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...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptsynch.c843 int osfd = open(osname, O_RDWR|O_CREAT, mode); local
844 if (-1 == osfd)
849 if (close(osfd) == -1)

Completed in 95 milliseconds

12