/* Copyright (c) 1979 Regents of the University of California */
* Remove stuff in /tmp owned by the invoker.
if (freopen(".", "r", stdin
) == NULL
)
while (fread((char *) &dirent
[0], sizeof (struct direct
), 1, stdin
) == 1) {
if (stat(ent
.d_name
, &stbuf
))
if (!strcmp(ent
.d_name
, ".") || !strcmp(ent
.d_name
, ".."))
if ((stbuf
.st_mode
& S_IFMT
) != S_IFREG
)
printf("%s\n", ent
.d_name
);