| 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 /* | 6 /* |
| 7 * File: prio.h | 7 * File: prio.h |
| 8 * | 8 * |
| 9 * Description: PR i/o related stuff, such as file system access, file | 9 * Description: PR i/o related stuff, such as file system access, file |
| 10 * i/o, socket i/o, etc. | 10 * i/o, socket i/o, etc. |
| (...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 PRFileMap *fmap, | 1848 PRFileMap *fmap, |
| 1849 PROffset64 offset, /* must be aligned and sized according to the | 1849 PROffset64 offset, /* must be aligned and sized according to the |
| 1850 * return value of PR_GetMemMapAlignment() */ | 1850 * return value of PR_GetMemMapAlignment() */ |
| 1851 PRUint32 len); | 1851 PRUint32 len); |
| 1852 | 1852 |
| 1853 NSPR_API(PRStatus) PR_MemUnmap(void *addr, PRUint32 len); | 1853 NSPR_API(PRStatus) PR_MemUnmap(void *addr, PRUint32 len); |
| 1854 | 1854 |
| 1855 NSPR_API(PRStatus) PR_CloseFileMap(PRFileMap *fmap); | 1855 NSPR_API(PRStatus) PR_CloseFileMap(PRFileMap *fmap); |
| 1856 | 1856 |
| 1857 /* | 1857 /* |
| 1858 * Synchronously flush the given memory-mapped address range of the given open |
| 1859 * file to disk. The function does not return until all modified data have |
| 1860 * been written to disk. |
| 1861 * |
| 1862 * On some platforms, the function will call PR_Sync(fd) internally if it is |
| 1863 * necessary for flushing modified data to disk synchronously. |
| 1864 */ |
| 1865 NSPR_API(PRStatus) PR_SyncMemMap( |
| 1866 PRFileDesc *fd, |
| 1867 void *addr, |
| 1868 PRUint32 len); |
| 1869 |
| 1870 /* |
| 1858 ****************************************************************** | 1871 ****************************************************************** |
| 1859 * | 1872 * |
| 1860 * Interprocess communication | 1873 * Interprocess communication |
| 1861 * | 1874 * |
| 1862 ****************************************************************** | 1875 ****************************************************************** |
| 1863 */ | 1876 */ |
| 1864 | 1877 |
| 1865 /* | 1878 /* |
| 1866 * Creates an anonymous pipe and returns file descriptors for the | 1879 * Creates an anonymous pipe and returns file descriptors for the |
| 1867 * read and write ends of the pipe. | 1880 * read and write ends of the pipe. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 | 2009 |
| 1997 NSPR_API(PRStatus) PR_DestroyPollableEvent(PRFileDesc *event); | 2010 NSPR_API(PRStatus) PR_DestroyPollableEvent(PRFileDesc *event); |
| 1998 | 2011 |
| 1999 NSPR_API(PRStatus) PR_SetPollableEvent(PRFileDesc *event); | 2012 NSPR_API(PRStatus) PR_SetPollableEvent(PRFileDesc *event); |
| 2000 | 2013 |
| 2001 NSPR_API(PRStatus) PR_WaitForPollableEvent(PRFileDesc *event); | 2014 NSPR_API(PRStatus) PR_WaitForPollableEvent(PRFileDesc *event); |
| 2002 | 2015 |
| 2003 PR_END_EXTERN_C | 2016 PR_END_EXTERN_C |
| 2004 | 2017 |
| 2005 #endif /* prio_h___ */ | 2018 #endif /* prio_h___ */ |
| OLD | NEW |