bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/6] libnetfs_file_record_lock


From: Svante Signell
Subject: [PATCH 4/6] libnetfs_file_record_lock
Date: Thu, 22 Jan 2015 10:29:55 +0100

libnetfs/ChangeLog
2001-04-11  Neal H Walfield  <neal@cs.uml.edu>

        * file-record-lock.c: New file.  Implement
        netfs_S_file_record_lock.
        * Makefile (SRCS): Add file-record-lock.c
---
 libnetfs/Makefile           |  5 ++---
 libnetfs/file-record-lock.c | 30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 3 deletions(-)
 create mode 100644 libnetfs/file-record-lock.c

diff --git a/libnetfs/Makefile b/libnetfs/Makefile
index c3830c0..7f32243 100644
--- a/libnetfs/Makefile
+++ b/libnetfs/Makefile
@@ -34,8 +34,8 @@ FSSRCS= dir-link.c dir-lookup.c dir-mkdir.c dir-mkfile.c \
        file-get-translator.c file-getcontrol.c file-getlinknode.c \
        file-lock-stat.c file-lock.c file-set-size.c \
        file-set-translator.c file-statfs.c file-sync.c file-syncfs.c \
-       file-utimes.c file-reparent.c fsstubs.c file-get-transcntl.c \
-       get-source.c
+       file-utimes.c file-record-lock.c file-reparent.c fsstubs.c \
+       file-get-transcntl.c get-source.c
 
 IOSRCS=        io-read.c io-readable.c io-seek.c io-write.c io-stat.c 
io-async.c     \
        io-set-all-openmodes.c io-get-openmodes.c io-set-some-openmodes.c     \
@@ -69,7 +69,6 @@ io-MIGSFLAGS = -imacros $(srcdir)/mutations.h
 ifsock-MIGSFLAGS = -imacros $(srcdir)/mutations.h
 MIGCOMSFLAGS = -prefix netfs_
 
-
 include ../Makeconf
 
 fsysServer.c fsys_S.h fsServer.c fs_S.h ioServer.c io_S.h ifsockServer.c 
ifsock_S.h: mutations.h
diff --git a/libnetfs/file-record-lock.c b/libnetfs/file-record-lock.c
new file mode 100644
index 0000000..2c6f87d
--- /dev/null
+++ b/libnetfs/file-record-lock.c
@@ -0,0 +1,30 @@
+/*
+   Copyright (C) 2001, 2014 Free Software Foundation, Inc.
+
+   Written by Neal H Walfield <neal@cs.uml.edu>
+
+   This file is part of the GNU Hurd.
+
+   The GNU Hurd is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   The GNU Hurd is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with the GNU Hurd.  If not, see <http://www.gnu.org/licenses/>.  */
+
+#include "netfs.h"
+#include "fs_S.h"
+
+error_t
+netfs_S_file_record_lock (struct protid *cred,
+                         int cmd,
+                         struct flock64 *flock)
+{
+  return EOPNOTSUPP;
+}
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]