Lines Matching refs:tmpname
227 char tmpname[4096];
229 sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
230 if (mktemp(tmpname) == NULL) {
233 fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
239 shm_unlink(tmpname);
247 shm_unlink(tmpname);
296 char tmpname[4096];
298 sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
299 if (mktemp(tmpname) == NULL) {
302 fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
308 unlink(tmpname);
316 unlink(tmpname);