listdevs
int listdevs = 0;
listdevs++;
if (listdevs) {
listdevs(rfd, rec, ind+2);
listdevs(wsfd, recursive, 0);