Skip to content

Commit bdd0794

Browse files
committed
The two lock imports are declared, so they are exported by a .def
⭐ CAUGHT BY THIS PACKAGE'S OWN CHECK, WHICH EXISTS FOR EXACTLY THIS. declared in src/*.h and exported by no .def: NtLockFile NtUnlockFile A declaration in `src/win.h' and an entry in `port/*.def' are two statements of one fact --- what this package imports from the object manager --- and the second is what an import library is built from. A declaration without the entry compiles and does not link, and the check turns that into a line naming the two names rather than a linker message naming a symbol. ⚠️ It is the same shape as the source-exclusion list in the sibling C library: a second statement of one fact falls behind the first, and the thing that catches it is a check that compares them.
1 parent 0922007 commit bdd0794

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

port/ntdll.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ EXPORTS
88
NtClose
99
NtCreateFile
1010
NtFlushBuffersFile
11+
NtLockFile
1112
NtQueryDirectoryFile
1213
NtQueryInformationFile
1314
NtQueryVolumeInformationFile
1415
NtReadFile
1516
NtSetInformationFile
17+
NtUnlockFile
1618
NtWriteFile
1719
RtlNtStatusToDosError

0 commit comments

Comments
 (0)