Vendor things

This commit is contained in:
John Doty 2024-03-08 11:03:01 -08:00
parent 5deceec006
commit 977e3c17e5
19434 changed files with 10682014 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#define _XOPEN_SOURCE 500
#include <ftw.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
static int
display_info(const char *fpath, const struct stat *sb,
int tflag, struct FTW *ftwbuf)
{
printf("%s\n", fpath);
return 0;
}
int
main(int argc, char *argv[])
{
int flags = FTW_PHYS;
if (nftw((argc < 2) ? "." : argv[1], display_info, 20, flags) == -1) {
perror("nftw");
exit(EXIT_FAILURE);
}
exit(EXIT_SUCCESS);
}

View file

@ -0,0 +1,10 @@
from __future__ import absolute_import, division, print_function
import os
import sys
for dirpath, dirnames, filenames in os.walk(sys.argv[1]):
for n in dirnames:
print(os.path.join(dirpath, n))
for n in filenames:
print(os.path.join(dirpath, n))