Back to index

glibc  2.9
revoke.c File Reference
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>

Go to the source code of this file.


int frevoke (int fdes)
int revoke (char *file) const

Function Documentation

int frevoke ( int  fdes)

Here is the caller graph for this function:

int revoke ( char *  file) const

Definition at line 27 of file revoke.c.

  int fd;
  int res;

  fd = open (file, O_RDONLY);
  if (fd < 0)
    return -1;

  res = frevoke (fd);
  (void) close (fd);

  return res;

Here is the call graph for this function: