void ad_grav_wall::update(){ frame = ofGetFrameNum(); update_attrs(); update_points(); update_lines(); world.update(); }
static int memcachefs_mkdir(const char *path, mode_t mode) { /* if(opt.verbose){ fprintf(stderr, "%s(\"%s\", 0%o)\n", __func__, path, mode); } return -ENOSYS; */ // res = mkdir(strcat("../", path), mode); int ret; handle_t *handle; char *key; size_t keylen; char dir_path[PATH_MAX]; // gets handler of connections memcache handle = handle_get(pool); if(!handle){ return -EMFILE; } // gets key key = (char *)path + 1; // gets key size keylen = strlen(key); // write new empty directory ret = mc_set(handle->mc, key, keylen, "", 0, 0, 0); // write attrs of a file update_attrs(key, S_IFDIR); // I dont know yet what is this handle_release(pool, handle->index); // copies path of directory // strncpy(dir_path, path, PATH_MAX); // dirname(dir_path); if (ret == -1) return -errno; return 0; }