unix « 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 » unix 

1. Which program creates a C array given any file?    stackoverflow.com

I remember seeing in the past a program that would take any file and generate a C array representing that file as output; it would prevent distribution of a separate file ...

2. mmaping large files(for persistent large arrays)    stackoverflow.com

I'm implementing persistent large constant arrays via mmap. Is there any tips and tricks or gotchas one should be aware when using mmap?

3. How do I rename a file?    stackoverflow.com

How can I rename a file on unix platform programatically without using the standard rename function?

4. Generate assembler code from C file in linux    stackoverflow.com

I would like to know how to generate assembler code from a C program using Unix. I tried the gcc: gcc -c file.c I also used firstly cpp and then try as but ...

5. file descriptor polling    stackoverflow.com

I have created a following program in which I wish to poll on the file descriptor of the file that I am opening in the program.

#define FILE "help"

int main()
{
   ...

6. specifying file descriptor number?    stackoverflow.com

My understanding was that one could not control the file descriptor (integer) assigned by the OS when opening a new file using open(). How then is it possible in a ...

7. File which responds to isatty(3)    stackoverflow.com

I'm wanting to write my own psuedo-shell and would like to get pretty colors etc. How do I go about tricking a subprocess into thinking that it is in a TTY? ...

8. Are two hardlinks connected to one file in Linux?    stackoverflow.com

Possible Duplicate:
How to check whether two file names point to the same physical file
How can I know if two hardlinks are connected to one ...

9. Fooling around with the *nix API leads to garbled text files    stackoverflow.com

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

int main () {
        char grade[5];
        char name[30];

    ...

10. execve file not found when stracing the very same file!    stackoverflow.com

someone i know encountered a problem when running 'lmutil' so i asked them to strace -f lmutil. Why is execve failing with "No such file"!!! It makes no sense, since I ...

11. operation not supported for recvmsg()    stackoverflow.com

iam trying to pass the file descriptor between two processes using sendmsg, recvmsg functions.. Iam doing it by creating the socket in unix domain. When i execute it iam getting the operation not ...

12. UNIX file information    stackoverflow.com

I'm trying to make a program that monitors one folder, and checks if any files within had their content or permissions modified. My code is here:

void verifyChanges(char *directory, int duration, int interval, ...

13. Creating a file system in a file    stackoverflow.com

I need to create a file system in a file in c. I have been looking for info and example but am having a hard time finding any good resources. ...

14. What is the fastest way to overwrite an entire file with zeros in C?    stackoverflow.com

What I need to do is to fill the entire file contents with zeros in the fastest way. I know some linux commands like cp actually gets what is the best ...

15. How to export open file descriptors to execed children    stackoverflow.com

What are the portable options if one needs to export open file descriptors to child processes created using exec family of library functions? Thank you. EDIT. I know that child processes inherit open ...

16. File Structure in linux or unix    forums.devshed.com

Please help me... that's the in Unix or Linux,coding step by step to test its file structure: 1.close screenkbreturn error and so on,what happen? EX:screen or kb enable? 2.open the file descriptor which closed in first step, see if the screen or kb enable? return error message? 3.Open a new file F 4.Fork child process 5.test the maximum files can ...

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.