From ca7504f9fe3923f8e444cb2a75772ddc450db2a6 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 5 Sep 1995 01:16:40 +0000 Subject: [PATCH] Reflect the fact that krb5_lock_file and krb5_unlock_file take fd's instead of FILE *'s. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6659 dc483132-0cff-0310-8789-dd5450dbe970 --- doc/api/ChangeLog | 5 +++++ doc/api/libos.tex | 15 ++++----------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/doc/api/ChangeLog b/doc/api/ChangeLog index 5c576ab66..c73539408 100644 --- a/doc/api/ChangeLog +++ b/doc/api/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 4 21:13:36 1995 Ezra Peisach + + * libos.tex: Update krb5_lock_file and krb5_unlock_file no longer + take FILE *. + Sun Jun 11 09:17:10 1995 Ezra Peisach * krb5.tex: Update krb5_auth_context usage. diff --git a/doc/api/libos.tex b/doc/api/libos.tex index 754abc96f..d3f6fafe1 100644 --- a/doc/api/libos.tex +++ b/doc/api/libos.tex @@ -171,33 +171,26 @@ These functions all relate to disk based I/O. \begin{funcdecl}{krb5_lock_file}{krb5_error_code}{\funcin} \funcarg{krb5_context}{context} -\funcarg{FILE *}{filep} -\funcarg{char *}{pathname} +\funcarg{in}{fd} \funcarg{int}{mode} \end{funcdecl} Attempts to lock the file in the given \funcparam{mode}; returns 0 for a successful lock, or an error code otherwise. -The caller should arrange that both \funcparam{filep} and -\funcparam{pathname} refer to the same -file. The implementation may use whichever is more convenient. +The caller should arrange for the file referred by \funcparam{fd} to be +opened in such a way as to allow the required lock. Modes are given in {\tt } - \begin{funcdecl}{krb5_unlock_file}{krb5_error_code}{\funcin} \funcarg{krb5_context}{context} -\funcarg{FILE *}{filep} -\funcarg{char *}{pathname} +\funcarg{int}{fd} \end{funcdecl} Attempts to (completely) unlock the file. Returns 0 if successful, or an error code otherwise. -The caller should arrange that both \funcparam{filep} and -\funcparam{pathname} refer to the same file. The implementation may -use whichever is more convenient. \begin{funcdecl}{krb5_create_secure_file}{krb5_error_code}{\funcin} \funcarg{krb5_context}{context} -- 2.26.2