OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
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 #ifndef prunixos_h___ | 6 #ifndef prunixos_h___ |
7 #define prunixos_h___ | 7 #define prunixos_h___ |
8 | 8 |
9 /* | 9 /* |
10 * If FD_SETSIZE is not defined on the command line, set the default value | 10 * If FD_SETSIZE is not defined on the command line, set the default value |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 extern void * _MD_MemMap(struct PRFileMap *fmap, PRInt64 offset, | 486 extern void * _MD_MemMap(struct PRFileMap *fmap, PRInt64 offset, |
487 PRUint32 len); | 487 PRUint32 len); |
488 #define _MD_MEM_MAP _MD_MemMap | 488 #define _MD_MEM_MAP _MD_MemMap |
489 | 489 |
490 extern PRStatus _MD_MemUnmap(void *addr, PRUint32 size); | 490 extern PRStatus _MD_MemUnmap(void *addr, PRUint32 size); |
491 #define _MD_MEM_UNMAP _MD_MemUnmap | 491 #define _MD_MEM_UNMAP _MD_MemUnmap |
492 | 492 |
493 extern PRStatus _MD_CloseFileMap(struct PRFileMap *fmap); | 493 extern PRStatus _MD_CloseFileMap(struct PRFileMap *fmap); |
494 #define _MD_CLOSE_FILE_MAP _MD_CloseFileMap | 494 #define _MD_CLOSE_FILE_MAP _MD_CloseFileMap |
495 | 495 |
| 496 extern PRStatus _MD_SyncMemMap( |
| 497 PRFileDesc *fd, |
| 498 void *addr, |
| 499 PRUint32 len); |
| 500 #define _MD_SYNC_MEM_MAP _MD_SyncMemMap |
| 501 |
496 /* | 502 /* |
497 * The standard (XPG4) gettimeofday() (from BSD) takes two arguments. | 503 * The standard (XPG4) gettimeofday() (from BSD) takes two arguments. |
498 * On some SVR4 derivatives, gettimeofday() takes only one argument. | 504 * On some SVR4 derivatives, gettimeofday() takes only one argument. |
499 * The GETTIMEOFDAY macro is intended to hide this difference. | 505 * The GETTIMEOFDAY macro is intended to hide this difference. |
500 */ | 506 */ |
501 #ifdef HAVE_SVID_GETTOD | 507 #ifdef HAVE_SVID_GETTOD |
502 #define GETTIMEOFDAY(tp) gettimeofday(tp) | 508 #define GETTIMEOFDAY(tp) gettimeofday(tp) |
503 #else | 509 #else |
504 #define GETTIMEOFDAY(tp) gettimeofday((tp), NULL) | 510 #define GETTIMEOFDAY(tp) gettimeofday((tp), NULL) |
505 #endif | 511 #endif |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 { | 615 { |
610 _MD_Open64 _open64; | 616 _MD_Open64 _open64; |
611 _MD_Mmap64 _mmap64; | 617 _MD_Mmap64 _mmap64; |
612 _MD_Stat64 _stat64; | 618 _MD_Stat64 _stat64; |
613 _MD_Fstat64 _fstat64; | 619 _MD_Fstat64 _fstat64; |
614 _MD_Lseek64 _lseek64; | 620 _MD_Lseek64 _lseek64; |
615 }; | 621 }; |
616 extern struct _MD_IOVector _md_iovector; | 622 extern struct _MD_IOVector _md_iovector; |
617 | 623 |
618 #endif /* prunixos_h___ */ | 624 #endif /* prunixos_h___ */ |
OLD | NEW |