This commit is contained in:
seta75D
2021-10-11 18:37:13 -03:00
commit ff309bfe1c
14130 changed files with 3180272 additions and 0 deletions

23
sys/tmpfs/tmpdir.h Normal file
View File

@@ -0,0 +1,23 @@
/* @(#)tmpdir.h 1.1 94/10/31 SMI */
/*
* directory entry for temporary file system
* modelled after ufs/fsdir.h
*/
#undef MAXNAMLEN
#define MAXNAMLEN 255
struct tdirent {
u_short td_reclen; /* length of this record */
u_short td_namelen; /* string length in td_name */
struct tmpnode *td_tmpnode; /* tnode for this file */
struct tdirent *td_next; /* next directory entry */
char td_name[MAXNAMLEN+1]; /* no longer than this */
};
#define TDIRSIZ(tdp) \
((sizeof (struct tdirent) - (MAXNAMLEN+1)) + \
(((tdp)->td_namelen+1 + 3) &~ 3))
#define TEMPTYDIRSIZE 32 /* fudge cookie */