2 * Copyright 2008, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Salvatore Benedetto <salvatore.benedetto@gmail.com>
14 ftok(const char *path
, int id
)
18 if (stat(path
, &st
) < 0)
21 return (key_t
)(id
<< 24 | (st
.st_dev
& 0xff) << 16 | (st
.st_ino
& 0xffff));