diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-23 00:31:31 +0000 |
commit | f0227ea3c78d8d23dc35f0939219649447eecfae (patch) | |
tree | 0a116e294fa35db8a66901f6ef85b41720913c2f /winsup/cygwin/mmap.cc | |
parent | c87c8a533f9e917878d433956420953598ab6cd6 (diff) | |
download | newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.zip newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.gz newlib-f0227ea3c78d8d23dc35f0939219649447eecfae.tar.bz2 |
More GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index e268463..bb45ac8 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; } |