/* this function should be prefered over file_read_sections because it can read any file size */ int APP_CC file_by_name_read_sections(const char *file_name, struct list *names) { int fd; int file_size; int rv; file_size = g_file_get_size(file_name); if (file_size < 1) { return 1; } fd = g_file_open(file_name); if (fd < 0) { return 1; } rv = l_file_read_sections(fd, file_size, names); g_file_close(fd); return rv; }
/* 32 K file size limit */ int file_read_sections(int fd, xrdpList *names) { return l_file_read_sections(fd, 32 * 1024, names); }
/* 32 K file size limit */ int APP_CC file_read_sections(int fd, struct list *names) { return l_file_read_sections(fd, 32 * 1024, names); }