Lines Matching defs:filename

168 static pid_t filename_to_pid(const char* filename) {
170 // a filename that doesn't begin with a digit is not a
173 if (!isdigit(*filename)) {
182 pid_t pid = (pid_t)strtol(filename, &remainder, 10);
188 // check for left over characters. If any, then the filename is
375 char* filename = NEW_C_HEAP_ARRAY(char,
378 strcpy(filename, usrdir_name);
379 strcat(filename, "/");
380 strcat(filename, udentry->d_name);
383 RESTARTABLE(::lstat(filename, &statbuf), result);
385 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
391 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
395 // compare and save filename with latest creation time
409 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
473 static void remove_file(const char* dirname, const char* filename) {
475 size_t nbytes = strlen(dirname) + strlen(filename) + 2;
480 strcat(path, filename);
607 static int create_sharedmem_resources(const char* dirname, const char* filename, size_t size) {
618 RESTARTABLE(::open(filename, O_RDWR|O_CREAT|O_TRUNC, S_IREAD|S_IWRITE), result);
621 warning("could not create file %s: %s\n", filename, strerror(errno));
650 warning("Insufficient space for shared memory file:\n %s\nTry using the -Djava.io.tmpdir= option to select an alternate temp location.\n", filename);
668 static int open_sharedmem_file(const char* filename, int oflags, TRAPS) {
672 RESTARTABLE(::open(filename, oflags), result);
717 char* filename = get_sharedmem_filename(dirname, vmid);
725 fd = create_sharedmem_resources(dirname, filename, size);
731 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
746 remove_file(filename);
747 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
752 backing_store_file_name = filename;
881 char* filename = get_sharedmem_filename(dirname, vmid);
884 // method below need to use the filename, but could throw an
887 char* rfilename = NEW_RESOURCE_ARRAY(char, strlen(filename) + 1);
888 strcpy(rfilename, filename);
893 FREE_C_HEAP_ARRAY(char, filename, mtInternal);