No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main() { char buf[15]; char *buf1 = "CE_and_IST"; char buf2 = 'z'; int fd = open("myfile", O_RDWR); lseek(fd, 10, SEEK_SET); int n = read(fd, buf, 10); printf("%d\n", n); n = write(fd, (const void *)buf1, 10); printf("%s\n", buf); … |
|
so there 3 questions that I'm really confused, anyone familiar with unix want help? 1. Each file system in UNIX has at least one table that identifies file in it, the entries are called i-nodes.where are these inodes resides?(location) 2. What operation would cause the i-nodes of a file, say … |
|
I'm writing a c code in order to dynamically create a sturcture like this: 1st -> 5 -> 7 -> 2, then 2->5(there is an arrow beneath 2 and link it back to 5) the data is below: struct node { int value; struct node *next; } Here is what … |