File: trymlocktest.c

package info (click to toggle)
tinyssh 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,244 kB
  • sloc: ansic: 12,106; sh: 1,168; python: 479; makefile: 42
file content (18 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
20140303
Jan Mojzis
Public domain.
*/

#include <unistd.h>
#include "trymlock.h"

unsigned char buf[100];

int main(void) {

    long long i;

    for (i = 81; i < 100; ++i) trymlock(buf, i);
    _exit(0);
}