On 2012-10-30 21:16:07 +0100, Christian Kruse wrote: > +static long > +InternalGetHugepageSize() > +{ > + DIR *dir = opendir(HUGE_PAGE_INFO_DIR); > + long smallest_size = -1, size; > + char *ptr; > ... > + while((ent = readdir(dir)) != NULL) > + {
This should be (Allocate|Read)Dir btw. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers