Skip to content

Commit 0ceb5da

Browse files
committed
comment why filename field is 128 bytes, match kernel PriPathName size (only variable passed to open_check call)
1 parent b2b1f4e commit 0ceb5da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/share.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ typedef unsigned size_t;
8282

8383
/* One of these exists for each instance of an open file. */
8484
typedef struct {
85+
/* filename size should match kernel size for PriPathName */
8586
char filename[128]; /* fully-qualified filename; "\0" if unused */
8687
unsigned short psp; /* PSP of process which opened this file */
8788
unsigned char openmode; /* 0=read-only, 1=write-only, 2=read-write */

0 commit comments

Comments
 (0)