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

[PATCH hurd 5/6] Add file record locking support



libnetfs: implement netfs_S_file_record_lock
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

Index: hurd-0.5.git20141210/libnetfs/Makefile
===================================================================
--- hurd-0.5.git20141210.orig/libnetfs/Makefile
+++ hurd-0.5.git20141210/libnetfs/Makefile
@@ -34,8 +34,8 @@ FSSRCS= dir-link.c dir-lookup.c dir-mkdi
 	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     \
@@ -70,7 +70,6 @@ io-MIGSFLAGS = -imacros $(srcdir)/mutati
 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
Index: hurd-0.5.git20141210/libnetfs/file-record-lock.c
===================================================================
--- /dev/null
+++ hurd-0.5.git20141210/libnetfs/file-record-lock.c
@@ -0,0 +1,31 @@
+/*
+   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 this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. */
+
+#include "netfs.h"
+#include "fs_S.h"
+
+error_t
+netfs_S_file_record_lock (struct protid *cred,
+			  int cmd,
+			  struct flock64 *flock)
+{
+  return EOPNOTSUPP;
+}

Reply to: