filename::detooth_filename(clean_name);
// make sure our target directory exists.
- // this choice is only user specific.
-// astring tmp_dir = portable::env_string("TMP") + "/rendezvous";
-
- // this choice uses a system-wide location.
+ // use a system-wide location for rendezvous state files.
astring tmp_dir = "/tmp/rendezvous";
mkdir(tmp_dir.observe(), 0777);
#endif
rendezvous::rendezvous(const astring &root_name)
-: _handle(NIL),
+: _handle(NULL_POINTER),
_locked(false),
_root_name(new astring(root_name))
{
_handle = locking_file;
#endif
#ifdef __WIN32__
- _handle = CreateMutex(NIL, false, to_unicode_temp(lock_name));
+ _handle = CreateMutex(NULL_POINTER, false, to_unicode_temp(lock_name));
if (!_handle) return;
#endif
}
}
fclose((FILE *)_handle);
- _handle = NIL;
+ _handle = NULL_POINTER;
}
#endif
#ifdef __WIN32__