samples based on custom library that not using syscalls