File: hasutmpx.h-yes.c

package info (click to toggle)
tinyssh 20190101-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,208 kB
  • sloc: ansic: 11,914; sh: 1,005; python: 385; makefile: 18
file content (20 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Public domain. */
#include <utmpx.h>


static void foo(void) {

    struct utmpx ut;

    ut.ut_type = DEAD_PROCESS;
    ut.ut_type = USER_PROCESS;
    ut.ut_type = 0;

    setutxent();
    pututxline(&ut);
    endutxent();
}

int main(void) {
    return 0;
}