OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 /* | 6 /* |
7 ** File: ptio.c | 7 ** File: ptio.c |
8 ** Descritpion: Implemenation of I/O methods for pthreads | 8 ** Descritpion: Implemenation of I/O methods for pthreads |
9 */ | 9 */ |
10 | 10 |
(...skipping 4568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4579 #endif | 4579 #endif |
4580 return fd; | 4580 return fd; |
4581 } /* PR_ImportTCPSocket */ | 4581 } /* PR_ImportTCPSocket */ |
4582 | 4582 |
4583 PR_IMPLEMENT(PRFileDesc*) PR_ImportUDPSocket(PRInt32 osfd) | 4583 PR_IMPLEMENT(PRFileDesc*) PR_ImportUDPSocket(PRInt32 osfd) |
4584 { | 4584 { |
4585 PRFileDesc *fd; | 4585 PRFileDesc *fd; |
4586 | 4586 |
4587 if (!_pr_initialized) _PR_ImplicitInitialization(); | 4587 if (!_pr_initialized) _PR_ImplicitInitialization(); |
4588 fd = pt_SetMethods(osfd, PR_DESC_SOCKET_UDP, PR_FALSE, PR_TRUE); | 4588 fd = pt_SetMethods(osfd, PR_DESC_SOCKET_UDP, PR_FALSE, PR_TRUE); |
4589 if (NULL != fd) close(osfd); | 4589 if (NULL == fd) close(osfd); |
4590 return fd; | 4590 return fd; |
4591 } /* PR_ImportUDPSocket */ | 4591 } /* PR_ImportUDPSocket */ |
4592 | 4592 |
4593 PR_IMPLEMENT(PRFileDesc*) PR_CreateSocketPollFd(PRInt32 osfd) | 4593 PR_IMPLEMENT(PRFileDesc*) PR_CreateSocketPollFd(PRInt32 osfd) |
4594 { | 4594 { |
4595 PRFileDesc *fd; | 4595 PRFileDesc *fd; |
4596 | 4596 |
4597 if (!_pr_initialized) _PR_ImplicitInitialization(); | 4597 if (!_pr_initialized) _PR_ImplicitInitialization(); |
4598 | 4598 |
4599 fd = _PR_Getfd(); | 4599 fd = _PR_Getfd(); |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5001 | 5001 |
5002 PR_IMPLEMENT(PRStatus) PR_GetFileInfo64UTF16(const PRUnichar *fn, PRFileInfo64 *
info) | 5002 PR_IMPLEMENT(PRStatus) PR_GetFileInfo64UTF16(const PRUnichar *fn, PRFileInfo64 *
info) |
5003 { | 5003 { |
5004 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); | 5004 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
5005 return PR_FAILURE; | 5005 return PR_FAILURE; |
5006 } | 5006 } |
5007 /* ================ UTF16 Interfaces ================================ */ | 5007 /* ================ UTF16 Interfaces ================================ */ |
5008 #endif /* MOZ_UNICODE */ | 5008 #endif /* MOZ_UNICODE */ |
5009 | 5009 |
5010 /* ptio.c */ | 5010 /* ptio.c */ |
OLD | NEW |