system « linux « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » linux » system 

1. File can be opened only by root user..Wrong permisssions given, i guess    stackoverflow.com

My program basically runs a executable file with command line arguments. A child process is forked and the output of the child process is taken in the file "filename". The problem is that ...

2. write system call to file desciptor ZERO    stackoverflow.com

int main ( )
{
    char C[] = "Hello World";
    write(0,C,sizeof(C));
    return 0;
}
In the above program, I am writing to File descriptor ZERO ...

3. printing uid of a file on linux system    stackoverflow.com

i am learning c programming. I am trying to make my own program similar to ls command but with less options.what i am doing is taking input directory/file name as argument ...

4. What's a very efficient way to have a bulk mailer app keep accurate track of its progress?    stackoverflow.com

We have a console application (currently .NET) that sends out mail in bulk to people that have subscribed to a mailing list. We are re-implementing this application because of limitations that ...

5. linux, write() system call returns -1 while attempting to write to file    stackoverflow.com

In the below program write() returns -1 while writing to a file.

   #include<sys/types.h>
   #include<sys/stat.h> 
   #include<fcntl.h>   
   #include<stdio.h>   ...

6. man 2 stat - how to figure out if a file is a link    stackoverflow.com

I have the below code only a part of it is shown here and I am checking if a the type of file.

     struct stat *buf /* ...

7. i used sprintf() then too cant apply system() for cp a file    stackoverflow.com

char str[256]="cp /home/anup/unix_arch/w1.c /home/anup/Desktop/work.c";
    sprintf(buf, "/bin/sh -c %s", str);
     system(buf);
gives a error to see the cp --help and I'm unable to figure it out! If ...

8. Can anyone point me to some linux file system unit testing libraries?    stackoverflow.com

I'm not sure how to look for these. I am trying to find general unit testing libraries for linux file systems (FS structure is treated as anon). Thanks!

9. What happens if a write system call is called on same file by 2 different processes simultaneously    stackoverflow.com

Does the OS handle it correctly? Or will I have to call flock()?

10. Simulating file system access    stackoverflow.com

I am designing a file system in user space and need to test it. I do not want to use the available benchmarking tools as my requirements are different. So to ...

11. Selecting a file randomly from a file system    stackoverflow.com

This question relates to Simulating file system access . I need to choose files and directories randomly to act as arguments of file operations like rename, write, read etc. ...

12. How OS performs buffering for a file    stackoverflow.com

I know that when you call fwrite or fprintf or rather any other function that writes to a file, the contents aren't immediately flushed to the disk, but buffered in the ...

13. Develop a file system similar to cramfs    stackoverflow.com

I need to develop a readonly file system that uses a compression library like zlib or zlib itself. I am a java developer and need to do this in C. I ...

14. int filedes? system calls read and write    stackoverflow.com

Can any of you guys tell me what "int filedes" refers to? http://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html I've noticed I can put any int in there and it seems to work but I don't know ...

15. File system in linux    bytes.com

Richard.C wrote: What are you talking about? I certainly have no idea since I can't see what you are replying to. Please leave in some context so that people can see what you are replying to if you are going to post replies to comp.lang.c. Search comp.lang.c for the terms Google and context for instructions on how to do this. [color=blue] ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.