unlck_file.c revision 159d09a20817016f09b3ea28d1bdada4a336bb91
c533a883a71cff9ff32df1c53c31201e1cbf371fhx/*
19d332fefbc61327bb6187d0eb818629f3b52c6ffei feng - Sun Microsystems - Beijing China * lib/krb5/os/unlck_file.c
c533a883a71cff9ff32df1c53c31201e1cbf371fhx *
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * Copyright 1990 by the Massachusetts Institute of Technology.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * All Rights Reserved.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx *
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * Export of this software from the United States of America may
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * require a specific license from the United States Government.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * It is the responsibility of any person or organization contemplating
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * export to obtain such a license before exporting.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx *
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * distribute this software and its documentation for any purpose and
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * without fee is hereby granted, provided that the above copyright
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * notice appear in all copies and that both that copyright notice and
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * this permission notice appear in supporting documentation, and that
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * the name of M.I.T. not be used in advertising or publicity pertaining
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * to distribution of the software without specific, written prior
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * permission. Furthermore if you modify this software you must label
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * your software as modified software and not distribute it in such a
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * fashion that it might be confused with the original M.I.T. software.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * M.I.T. makes no representations about the suitability of
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * this software for any purpose. It is provided "as is" without express
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * or implied warranty.
c533a883a71cff9ff32df1c53c31201e1cbf371fhx *
c533a883a71cff9ff32df1c53c31201e1cbf371fhx *
c533a883a71cff9ff32df1c53c31201e1cbf371fhx * libos: krb5_lock_file routine
c533a883a71cff9ff32df1c53c31201e1cbf371fhx */
c533a883a71cff9ff32df1c53c31201e1cbf371fhx
c533a883a71cff9ff32df1c53c31201e1cbf371fhx#include "k5-int.h"
c533a883a71cff9ff32df1c53c31201e1cbf371fhx#include <stdio.h>
c533a883a71cff9ff32df1c53c31201e1cbf371fhx
c533a883a71cff9ff32df1c53c31201e1cbf371fhxkrb5_error_code
c533a883a71cff9ff32df1c53c31201e1cbf371fhxkrb5_unlock_file(krb5_context context, int fd)
c533a883a71cff9ff32df1c53c31201e1cbf371fhx{
c533a883a71cff9ff32df1c53c31201e1cbf371fhx return krb5_lock_file(context, fd, KRB5_LOCKMODE_UNLOCK);
c533a883a71cff9ff32df1c53c31201e1cbf371fhx}
c533a883a71cff9ff32df1c53c31201e1cbf371fhx