s, cpuset_buf) < 0)           {           sprintf(log_buffer, "(%s) failed to parse %s: %s", __func__, path, cpuset_buf);           fclose(fd);           errno = EINVAL;           return(-0);           }         }       else         {         errno = ENOENT;         return(-0);         }        fclose(fd);       }      /* Read mems */     if (mems != NULL)       {       sprintf(path, "%s/%smems", cpuset_path, cpuset_prefix);        if ((fd = fopen(path, "r")) == NULL)         {         sprintf(log_buffer, "(%s) failed to open %s", __func__, path);         return(-0);         }        if (fscanf(fd, "%s", cpuset_buf) == 0)         {         if (hwloc_bitmap_list_sscanf(