File: haslogintty.c

package info (click to toggle)
tinyssh 20250501-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (9 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
/* Public domain. */
extern int login_tty(int);

static void foo(void) { login_tty(0); }

int main(int argc, char **argv) {
    if (!argc) foo();
    return 0;
}