Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: nspr/pr/src/pthreads/ptio.c

Issue 68173008: Update to NSPR 4.10.2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Update README.chromium Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « nspr/pr/src/misc/prsystem.c ('k') | nspr/pr/src/pthreads/ptthread.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « nspr/pr/src/misc/prsystem.c ('k') | nspr/pr/src/pthreads/ptthread.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698