~rosco2/ubuntustudio-controls/gobackone

« back to all changes in this revision

Viewing changes to dev-resources/get-system-info/get_memlock.c

  • Committer: Kaj Ailomaa
  • Date: 2015-08-18 11:57:33 UTC
  • Revision ID: zequence@mousike.me-20150818115733-4rndyqhtxuhowav2
Rewritten from scratch. Bumped to version 1. Ready for upload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <sys/time.h>
2
 
#include <sys/resource.h>
3
 
#include <unistd.h>
4
 
#include <stdio.h>
5
 
 
6
 
int main ()
7
 
{
8
 
        struct rlimit rl;
9
 
        getrlimit (RLIMIT_MEMLOCK, &rl);
10
 
        printf("%lld\n", (long long int)rl.rlim_cur);
11
 
        return 0;
12
 
}