Lines Matching refs:tmpname
229 char tmpname[4096];
231 sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
232 if (mktemp(tmpname) == NULL) {
235 fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
241 shm_unlink(tmpname);
249 shm_unlink(tmpname);
298 char tmpname[4096];
300 sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
301 if (mktemp(tmpname) == NULL) {
304 fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
310 unlink(tmpname);
318 unlink(tmpname);