summaryrefslogtreecommitdiffstats
path: root/doc/api
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-09-05 01:16:40 +0000
committerEzra Peisach <epeisach@mit.edu>1995-09-05 01:16:40 +0000
commitca7504f9fe3923f8e444cb2a75772ddc450db2a6 (patch)
tree41b3fe3401c39a59edbe040ad4658bdb3d8eeeb4 /doc/api
parenta02b50502f77e4507f9ebb2c9b990cd7a072efad (diff)
downloadkrb5-ca7504f9fe3923f8e444cb2a75772ddc450db2a6.tar.gz
krb5-ca7504f9fe3923f8e444cb2a75772ddc450db2a6.tar.xz
krb5-ca7504f9fe3923f8e444cb2a75772ddc450db2a6.zip
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
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/ChangeLog5
-rw-r--r--doc/api/libos.tex15
2 files changed, 9 insertions, 11 deletions
diff --git a/doc/api/ChangeLog b/doc/api/ChangeLog
index 5c576ab66c..c73539408d 100644
--- a/doc/api/ChangeLog
+++ b/doc/api/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 4 21:13:36 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * libos.tex: Update krb5_lock_file and krb5_unlock_file no longer
+ take FILE *.
+
Sun Jun 11 09:17:10 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* krb5.tex: Update krb5_auth_context usage.
diff --git a/doc/api/libos.tex b/doc/api/libos.tex
index 754abc96fe..d3f6fafe16 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 <krb5/libos.h>}
-
\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}