Lines Matching defs:filename
172 static int filename_to_pid(const char* filename) {
174 // a filename that doesn't begin with a digit is not a
177 if (!isdigit(*filename)) {
186 int pid = (int)strtol(filename, &remainder, 10);
192 // check for left over characters. If any, then the filename is
361 char* filename = NEW_C_HEAP_ARRAY(char,
364 strcpy(filename, usrdir_name);
365 strcat(filename, "\\");
366 strcat(filename, udentry->d_name);
368 if (::stat(filename, &statbuf) == OS_ERR) {
369 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
375 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
404 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
486 static void remove_file(const char* dirname, const char* filename) {
488 size_t nbytes = strlen(dirname) + strlen(filename) + 2;
493 strcat(path, filename);
1279 static HANDLE create_sharedmem_resources(const char* dirname, const char* filename, const char* objectname, size_t size) {
1313 filename, /* LPCTSTR file name */
1335 warning("could not create file %s: %d\n", filename, lasterror);
1359 int ret_code = ::stat(filename, &statbuf);
1363 filename, strerror(errno));
1378 warning("could not flush file %s: %d\n", filename, lasterror);
1391 sharedmem_fileName = strdup(filename);
1457 char* filename = get_sharedmem_filename(dirname, vmid);
1470 create_sharedmem_resources(dirname, filename, objectname, size);
1472 FREE_C_HEAP_ARRAY(char, filename, mtInternal);
1541 static size_t sharedmem_filesize(const char* filename, TRAPS) {
1553 if (::stat(filename, &statbuf) == OS_ERR) {
1555 warning("stat %s failed: %s\n", filename, strerror(errno));
1633 char* filename = get_sharedmem_filename(dirname, vmid);
1637 // filename are passed to methods that may throw exceptions.
1641 char* rfilename = NEW_RESOURCE_ARRAY(char, strlen(filename) + 1);
1643 strcpy(rfilename, filename);
1649 FREE_C_HEAP_ARRAY(char, filename, mtInternal);