26ftok(
const char *pathname,
int proj_id)
30 BY_HANDLE_FILE_INFORMATION bhfi;
38 if (_wstat(pathw, &st) < 0) {
48 if (!GetFileInformationByHandle(fh, &bhfi)) {
54 ret = (
key_t) ((proj_id & 0xff) << 24 | (st.st_dev & 0xff) << 16 | (bhfi.nFileIndexLow & 0xffff));