boolean x_exist(const char *file, int flags) { XATTR attr; if (x_attr(0, file, &attr) != 0) return FALSE; else { if (((attr.mode & S_IFMT) == S_IFDIR) && ((flags & EX_DIR) == 0)) return FALSE; else { if (((attr.mode & S_IFMT) != S_IFDIR) && ((flags & EX_FILE) == 0)) return FALSE; } return TRUE; } }
void wd_update_drv(int drive) { WINDOW *w = xw_first(); while (w != NULL) { if (xw_type(w) == DIR_WIND) { if (drive == -1) ((ITM_WINDOW *) w)->itm_func->wd_set_update(w, WD_UPD_ALLWAYS, NULL, NULL); else { const char *path = ((ITM_WINDOW *) w)->itm_func->wd_path(w); #if _MINT_ if (mint) /* HR 151102 */ { if ((drive == ('U' - 'A')) && ((path[0] & 0xDF - 'A') == drive) && (path[1] == ':')) ((ITM_WINDOW *) w)->itm_func->wd_set_update(w, WD_UPD_ALLWAYS, NULL, NULL); else { XATTR attr; if ((x_attr(0, path, &attr) == 0) && (attr.dev == drive)) ((ITM_WINDOW *) w)->itm_func->wd_set_update(w, WD_UPD_ALLWAYS, NULL, NULL); } } else #endif { if (((path[0] & 0xDF - 'A') == drive) && (path[1] == ':')) ((ITM_WINDOW *) w)->itm_func->wd_set_update(w, WD_UPD_ALLWAYS, NULL, NULL); } } } w = xw_next(); } wd_do_update(); }
ISVGAnimatedLength* SVGImageElement::get_x() { return x_attr(); }
ISVGAnimatedLength* SVGFilterElement::get_x() { return x_attr(); }