Back to index

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

Go to the source code of this file.


int revoke (char *file_name) const

Function Documentation

int revoke ( char *  file_name) const

Definition at line 25 of file revoke.c.

  error_t err;
  file_t file = __file_name_lookup (file_name, 0, 0);

  if (file == MACH_PORT_NULL)
    return -1;

  err = __io_revoke (file);
  __mach_port_deallocate (__mach_task_self (), file);

  if (err)
    return __hurd_fail (err);
  return 0;

Here is the call graph for this function: