Back to index

glibc  2.9
unlockpt.c File Reference
#include <paths.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

Go to the source code of this file.


int unlockpt (int fd)

Function Documentation

int unlockpt ( int  fd)

Definition at line 29 of file unlockpt.c.

  char buf[sizeof (_PATH_TTY) + 2];

  /* BSD doesn't have a lock, but it does have `revoke'.  */
  if (__ptsname_r (fd, buf, sizeof (buf)))
    return -1;
  return revoke (buf);

Here is the call graph for this function: