summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libugly/unlockpt.c
blob: e0246ed8e4a614e67b63e5ac837439d884f499d2 (plain)
1
2
3
4
5
6
7
8
9
10
#define _XOPEN_SOURCE
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>

int unlockpt (int fd) {
  int foo;
  /* hehe, that one is easy */
  return (ioctl (fd, TIOCSPTLCK, &foo));
}