File:  [DVB] / dietlibc / libugly / unlockpt.c
Revision 1.2: download - view: text, annotated - select for diffs
Sat Feb 18 22:11:04 2006 UTC (18 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  fix unlockpt (Gernot Tenchio)

#define _XOPEN_SOURCE
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>

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

LinuxTV legacy CVS <linuxtv.org/cvs>