Skip to content

Commit

Permalink
Give Hurd weak aliases for getsysstats get_* functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Thibault authored and Roland McGrath committed Jan 27, 2010
1 parent 1112095 commit b34e12e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-01-26 Samuel Thibault <samuel.thibault@ens-lyon.org>

* sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
get_phys_pages, get_avphys_pages): Add weak aliases.

2010-01-25 Andreas Schwab <schwab@redhat.com>

* iconv/iconv_prog.c (write_output): Fix check for open failure.
Expand Down
4 changes: 4 additions & 0 deletions sysdeps/mach/getsysstats.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ __get_nprocs_conf ()

return hbi.max_cpus;
}
weak_alias (__get_nprocs_conf, get_nprocs_conf)

/* Return the number of processors currently available on the system. */
int
Expand All @@ -58,6 +59,7 @@ __get_nprocs ()

return hbi.avail_cpus;
}
weak_alias (__get_nprocs, get_nprocs)

/* Return the number of physical pages on the system. */
long int
Expand All @@ -76,6 +78,7 @@ __get_phys_pages ()

return hbi.memory_size / __vm_page_size;
}
weak_alias (__get_phys_pages, get_phys_pages)

/* Return the number of available physical pages */
long int
Expand All @@ -100,3 +103,4 @@ __get_avphys_pages ()

return vs.free_count;
}
weak_alias (__get_avphys_pages, get_avphys_pages)

0 comments on commit b34e12e

Please sign in to comment.