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

Side by Side Diff: mozilla/nsprpub/pr/include/md/_linux.h

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/include/md/_darwin.h ('k') | mozilla/nsprpub/pr/include/md/_linux.cfg » ('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: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1 /* -*- Mode: C++; tab-width: 8; 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 * This file is used by not only Linux but also other glibc systems 7 * This file is used by not only Linux but also other glibc systems
8 * such as GNU/Hurd and GNU/k*BSD. 8 * such as GNU/Hurd and GNU/k*BSD.
9 */ 9 */
10 10
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 PRThreadState state, 619 PRThreadState state,
620 PRUint32 stackSize); 620 PRUint32 stackSize);
621 extern void _MD_SET_PRIORITY(struct _MDThread *thread, PRUintn newPri); 621 extern void _MD_SET_PRIORITY(struct _MDThread *thread, PRUintn newPri);
622 extern PRStatus _MD_WAIT(PRThread *, PRIntervalTime timeout); 622 extern PRStatus _MD_WAIT(PRThread *, PRIntervalTime timeout);
623 extern PRStatus _MD_WAKEUP_WAITER(PRThread *); 623 extern PRStatus _MD_WAKEUP_WAITER(PRThread *);
624 extern void _MD_YIELD(void); 624 extern void _MD_YIELD(void);
625 625
626 #endif /* ! _PR_PTHREADS */ 626 #endif /* ! _PR_PTHREADS */
627 627
628 extern void _MD_EarlyInit(void); 628 extern void _MD_EarlyInit(void);
629 extern PRIntervalTime _PR_UNIX_GetInterval(void);
630 extern PRIntervalTime _PR_UNIX_TicksPerSecond(void);
631 629
632 #define _MD_EARLY_INIT _MD_EarlyInit 630 #define _MD_EARLY_INIT _MD_EarlyInit
633 #define _MD_FINAL_INIT _PR_UnixInit 631 #define _MD_FINAL_INIT _PR_UnixInit
634 #define _MD_GET_INTERVAL _PR_UNIX_GetInterval 632 #define HAVE_CLOCK_MONOTONIC
635 #define _MD_INTERVAL_PER_SEC _PR_UNIX_TicksPerSecond
636 633
637 /* 634 /*
638 * We wrapped the select() call. _MD_SELECT refers to the built-in, 635 * We wrapped the select() call. _MD_SELECT refers to the built-in,
639 * unwrapped version. 636 * unwrapped version.
640 */ 637 */
641 #define _MD_SELECT __select 638 #define _MD_SELECT __select
642 639
643 #ifdef _PR_POLL_AVAILABLE 640 #ifdef _PR_POLL_AVAILABLE
644 #include <sys/poll.h> 641 #include <sys/poll.h>
645 extern int __syscall_poll(struct pollfd *ufds, unsigned long int nfds, 642 extern int __syscall_poll(struct pollfd *ufds, unsigned long int nfds,
646 int timeout); 643 int timeout);
647 #define _MD_POLL __syscall_poll 644 #define _MD_POLL __syscall_poll
648 #endif 645 #endif
649 646
650 /* For writev() */ 647 /* For writev() */
651 #include <sys/uio.h> 648 #include <sys/uio.h>
652 649
653 extern void _MD_linux_map_sendfile_error(int err); 650 extern void _MD_linux_map_sendfile_error(int err);
654 651
655 #endif /* nspr_linux_defs_h___ */ 652 #endif /* nspr_linux_defs_h___ */
OLDNEW
« no previous file with comments | « mozilla/nsprpub/pr/include/md/_darwin.h ('k') | mozilla/nsprpub/pr/include/md/_linux.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698