ulimit values are retrieved from where
I would like to know where is the ulimit value stored in the shell. And how to get or modify it using the C program
I would like to know where is the ulimit value stored in the shell. And how to get or modify it using the C program
Its not stored in the shell, they're values the OS stores for each process.
The shell just provides a mechanism for querying/setting the OS values.
Try "man getrlimit".
But, that sould have been stored in some files; where is that file and how can i modify the settings without using the ulimit command.
No, it is not stored in a file.
It is stored in the kernel
You can change it in the same way the ulimit command changes it bu using the setrlimit system call.
That only changes it for the current process of course.
If your looking to change the default value, thats another issue.