Index Tom Clancy Red Storm Rising huna Hogan James P Giganci T 2 Powrot gigantow 2354 (5) 03 (17) Szklarski Alfred 6 Tomek wsrod lowcow glow Andrzej Sapkowski Pani Jeziora ENTER.1996 2001 LEKCJA46.TXT 14 (2) |
[ Pobierz całość w formacie PDF ] .' &&(old_len == 1 || (old_base[1] == '.' &&old_len == 2)))) {iput(old_dir);return -EPERM;}error = dir_namei(newname, &new_len, &new_base, NULL, &new_dir);if (error) {iput(old_dir);return error;}if ((error = permission(new_dir,MAY_WRITE | MAY_EXEC)) != 0){iput(old_dir);iput(new_dir);return error;}if (!new_len || (new_base[0] == '.' &&(new_len == 1 || (new_base[1] == '.' &&new_len == 2)))) {iput(old_dir);iput(new_dir);return -EPERM;}if (new_dir->i_dev != old_dir->i_dev) {iput(old_dir);iput(new_dir);return -EXDEV;}if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) {iput(old_dir);iput(new_dir);return -EROFS;}/** A file cannot be removed from an append-only directory*/if (IS_APPEND(old_dir)) {iput(old_dir);iput(new_dir);return -EPERM;}if (!old_dir->i_op || !old_dir->i_op->rename) {iput(old_dir);iput(new_dir);return -EPERM;}new_dir->i_count++;if (new_dir->i_sb && new_dir->i_sb->dq_op)new_dir->i_sb->dq_op->initialize(new_dir, -1);down(&new_dir->i_sem);error = old_dir->i_op->rename(old_dir, old_base, old_len,new_dir, new_base, new_len);up(&new_dir->i_sem);iput(new_dir);return error;}asmlinkage int sys_rename(const char * oldname, const char * newname){int error;char * from, * to;error = getname(oldname,&from);if (!error) {error = getname(newname,&to);if (!error) {error = do_rename(from,to);putname(to);}putname(from);}return error;} [ Pobierz całość w formacie PDF ] |
||||
Wszelkie Prawa Zastrzeżone! Kawa była słaba i bez smaku. Nie miała treści, a jedynie formę. Design by SZABLONY.maniak.pl. | |||||