Examveda

This program will print the
#include<stdio.h>
#include<sys/time.h>
#include<sys/resource.h>
 
int main()
{
    struct rlimit limit;
    getrlimit(RLIMIT_FSIZE,&limit);
    printf("%lu\n",limit.rlim_cur);
    printf("%lu\n",limit.rlim_max);
    return 0;
}

A. soft limit of the size of the file in bytes that can be created by the process

B. hard limit of the size of the file in bytes that can be created by the process

C. soft 7 hard limit of the size of the file in bytes that can be created by the process

D. none of the mentioned

Answer: Option C


This Question Belongs to Computer Science >> Linux

Join The Discussion

Related Questions on Linux