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

Side by Side Diff: mozilla/nsprpub/pr/src/pthreads/ptio.c

Issue 12089033: Update to NSPR 4.9.5 Beta 2, part 2: actual changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 months 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 | « mozilla/nsprpub/pr/src/misc/prtime.c ('k') | mozilla/nsprpub/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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 /* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option 1143 /* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option
1144 * is turned on by default, contrary to what RFC 3493, Section 1144 * is turned on by default, contrary to what RFC 3493, Section
1145 * 5.3 says. So we have to turn it off. Find out whether we 1145 * 5.3 says. So we have to turn it off. Find out whether we
1146 * are running on such a system. 1146 * are running on such a system.
1147 */ 1147 */
1148 { 1148 {
1149 int osfd; 1149 int osfd;
1150 osfd = socket(AF_INET6, SOCK_STREAM, 0); 1150 osfd = socket(AF_INET6, SOCK_STREAM, 0);
1151 if (osfd != -1) { 1151 if (osfd != -1) {
1152 int on; 1152 int on;
1153 int optlen = sizeof(on); 1153 socklen_t optlen = sizeof(on);
1154 if (getsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, 1154 if (getsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY,
1155 &on, &optlen) == 0) { 1155 &on, &optlen) == 0) {
1156 _pr_ipv6_v6only_on_by_default = on; 1156 _pr_ipv6_v6only_on_by_default = on;
1157 } 1157 }
1158 close(osfd); 1158 close(osfd);
1159 } 1159 }
1160 } 1160 }
1161 #endif 1161 #endif
1162 } /* _PR_InitIO */ 1162 } /* _PR_InitIO */
1163 1163
(...skipping 3679 matching lines...) Expand 10 before | Expand all | Expand 10 after
4843 if (unwarned) unwarned = _PR_Obsolete("PR_FD_NISSET (PR_Select)", "PR_Poll") ; 4843 if (unwarned) unwarned = _PR_Obsolete("PR_FD_NISSET (PR_Select)", "PR_Poll") ;
4844 for (index = 0; index<set->nsize; index++) 4844 for (index = 0; index<set->nsize; index++)
4845 if (set->narray[index] == fd) { 4845 if (set->narray[index] == fd) {
4846 return 1; 4846 return 1;
4847 } 4847 }
4848 return 0; 4848 return 0;
4849 } 4849 }
4850 4850
4851 #include <sys/types.h> 4851 #include <sys/types.h>
4852 #include <sys/time.h> 4852 #include <sys/time.h>
4853 #if !defined(SUNOS4) && !defined(HPUX) \ 4853 #if !defined(HPUX) \
4854 && !defined(LINUX) && !defined(__GNU__) && !defined(__GLIBC__) 4854 && !defined(LINUX) && !defined(__GNU__) && !defined(__GLIBC__)
4855 #include <sys/select.h> 4855 #include <sys/select.h>
4856 #endif 4856 #endif
4857 4857
4858 static PRInt32 4858 static PRInt32
4859 _PR_getset(PR_fd_set *pr_set, fd_set *set) 4859 _PR_getset(PR_fd_set *pr_set, fd_set *set)
4860 { 4860 {
4861 PRUint32 index; 4861 PRUint32 index;
4862 PRInt32 max = 0; 4862 PRInt32 max = 0;
4863 4863
(...skipping 137 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 | « mozilla/nsprpub/pr/src/misc/prtime.c ('k') | mozilla/nsprpub/pr/src/pthreads/ptthread.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698