Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-23 04:31:31 +0400
committerChristopher Faylor <me@cgf.cx>2002-09-23 04:31:31 +0400
commitf0227ea3c78d8d23dc35f0939219649447eecfae (patch)
tree0a116e294fa35db8a66901f6ef85b41720913c2f /winsup/cygwin/mmap.cc
parentc87c8a533f9e917878d433956420953598ab6cd6 (diff)
More GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index e2684630e..bb45ac8e6 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -25,8 +25,8 @@ details. */
#define PAGE_CNT(bytes) howmany((bytes),getpagesize())
-#define PGBITS (sizeof(DWORD)*8)
-#define MAPSIZE(pages) howmany((pages),PGBITS)
+#define PGBITS (sizeof (DWORD)*8)
+#define MAPSIZE(pages) howmany ((pages), PGBITS)
#define MAP_SET(n) (map_map_[(n)/PGBITS] |= (1L << ((n) % PGBITS)))
#define MAP_CLR(n) (map_map_[(n)/PGBITS] &= ~(1L << ((n) % PGBITS)))
@@ -80,7 +80,7 @@ class mmap_record
void alloc_map ()
{
/* Allocate one bit per page */
- map_map_ = (DWORD *) calloc (MAPSIZE(PAGE_CNT (size_to_map_)),
+ map_map_ = (DWORD *) calloc (MAPSIZE (PAGE_CNT (size_to_map_)),
sizeof (DWORD));
if (wincap.virtual_protect_works_on_shared_pages ())
{
@@ -191,7 +191,7 @@ mmap_record::unmap_map (caddr_t addr, DWORD len)
MAP_CLR (off);
/* Return TRUE if all pages are free'd which may result in unmapping
the whole chunk. */
- for (len = MAPSIZE(PAGE_CNT (size_to_map_)); len > 0; )
+ for (len = MAPSIZE (PAGE_CNT (size_to_map_)); len > 0; )
if (map_map_[--len])
return FALSE;
return TRUE;
@@ -277,7 +277,7 @@ public:
list::list ()
: nrecs (0), maxrecs (10), fd (0), hash (0)
{
- recs = (mmap_record *) malloc (10 * sizeof(mmap_record));
+ recs = (mmap_record *) malloc (10 * sizeof (mmap_record));
}
list::~list ()
@@ -362,7 +362,7 @@ public:
map::map ()
{
- lists = (list **) malloc (10 * sizeof(list *));
+ lists = (list **) malloc (10 * sizeof (list *));
nlists = 0;
maxlists = 10;
}