diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..b14ca0a
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,165 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/daemon/acl.c b/daemon/acl.c
index 0ef5f01..9107fef 100644
--- a/daemon/acl.c
+++ b/daemon/acl.c
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
#include
#include
#include
diff --git a/daemon/callback_server.c b/daemon/callback_server.c
index edd33dc..a6e758e 100644
--- a/daemon/callback_server.c
+++ b/daemon/callback_server.c
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
#include
#include
diff --git a/daemon/callback_xdr.c b/daemon/callback_xdr.c
index 041b4e6..364ca85 100644
--- a/daemon/callback_xdr.c
+++ b/daemon/callback_xdr.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include "nfs41_callback.h"
diff --git a/daemon/daemon_debug.c b/daemon/daemon_debug.c
index 07dd030..40b3d6f 100644
--- a/daemon/daemon_debug.c
+++ b/daemon/daemon_debug.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/daemon_debug.h b/daemon/daemon_debug.h
index 901ce01..f484d58 100644
--- a/daemon/daemon_debug.h
+++ b/daemon/daemon_debug.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef _DAEMON_DEBUG_
diff --git a/daemon/delegation.c b/daemon/delegation.c
index 7b2611b..ecb0bcb 100644
--- a/daemon/delegation.c
+++ b/daemon/delegation.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include "delegation.h"
diff --git a/daemon/delegation.h b/daemon/delegation.h
index 174cc1b..bd1f653 100644
--- a/daemon/delegation.h
+++ b/daemon/delegation.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef DELEGATION_H
diff --git a/daemon/from_kernel.h b/daemon/from_kernel.h
index 4608072..3d51573 100644
--- a/daemon/from_kernel.h
+++ b/daemon/from_kernel.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef _NFS41_DAEMON_
diff --git a/daemon/getattr.c b/daemon/getattr.c
index 09fd849..541237b 100644
--- a/daemon/getattr.c
+++ b/daemon/getattr.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/idmap.c b/daemon/idmap.c
index f59559a..f38ec71 100644
--- a/daemon/idmap.c
+++ b/daemon/idmap.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/idmap.h b/daemon/idmap.h
index 11e04d5..6a78476 100644
--- a/daemon/idmap.h
+++ b/daemon/idmap.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef IDMAP_H
diff --git a/daemon/list.h b/daemon/list.h
index 5475110..5159b0d 100644
--- a/daemon/list.h
+++ b/daemon/list.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef NFS41_LIST_H
diff --git a/daemon/lock.c b/daemon/lock.c
index 1ff0339..9cf4d4e 100644
--- a/daemon/lock.c
+++ b/daemon/lock.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/lookup.c b/daemon/lookup.c
index 13ab6b0..7ea26dc 100644
--- a/daemon/lookup.c
+++ b/daemon/lookup.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/mount.c b/daemon/mount.c
index 3f5cd1d..97ce241 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/name_cache.c b/daemon/name_cache.c
index 786aef7..b75e7fd 100644
--- a/daemon/name_cache.c
+++ b/daemon/name_cache.c
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
#include
#include
#include
diff --git a/daemon/name_cache.h b/daemon/name_cache.h
index 358eb2b..fbea8c5 100644
--- a/daemon/name_cache.h
+++ b/daemon/name_cache.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_DAEMON_NAME_CACHE_H__
diff --git a/daemon/namespace.c b/daemon/namespace.c
index 52ebfa2..ab16f49 100644
--- a/daemon/namespace.c
+++ b/daemon/namespace.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41.h b/daemon/nfs41.h
index 94c4ebb..8ced537 100644
--- a/daemon/nfs41.h
+++ b/daemon/nfs41.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41__
diff --git a/daemon/nfs41_callback.h b/daemon/nfs41_callback.h
index c654a73..8e5190c 100644
--- a/daemon/nfs41_callback.h
+++ b/daemon/nfs41_callback.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_CALLBACK_H__
diff --git a/daemon/nfs41_client.c b/daemon/nfs41_client.c
index 5692f35..0460fc5 100644
--- a/daemon/nfs41_client.c
+++ b/daemon/nfs41_client.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_compound.c b/daemon/nfs41_compound.c
index 10fd01d..da7834c 100644
--- a/daemon/nfs41_compound.c
+++ b/daemon/nfs41_compound.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_compound.h b/daemon/nfs41_compound.h
index 7478956..d222559 100644
--- a/daemon/nfs41_compound.h
+++ b/daemon/nfs41_compound.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_DAEMON_COMPOUND_H__
diff --git a/daemon/nfs41_const.h b/daemon/nfs41_const.h
index a3ad017..874623f 100644
--- a/daemon/nfs41_const.h
+++ b/daemon/nfs41_const.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_NFS_CONST_H__
diff --git a/daemon/nfs41_daemon.c b/daemon/nfs41_daemon.c
index e3a7792..599f246 100644
--- a/daemon/nfs41_daemon.c
+++ b/daemon/nfs41_daemon.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_ops.c b/daemon/nfs41_ops.c
index db86d51..fc158ce 100644
--- a/daemon/nfs41_ops.c
+++ b/daemon/nfs41_ops.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_ops.h b/daemon/nfs41_ops.h
index 4e40086..faa247b 100644
--- a/daemon/nfs41_ops.h
+++ b/daemon/nfs41_ops.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_NFS_OPS_H__
diff --git a/daemon/nfs41_rpc.c b/daemon/nfs41_rpc.c
index a77883a..65dd545 100644
--- a/daemon/nfs41_rpc.c
+++ b/daemon/nfs41_rpc.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include "nfs41_ops.h"
diff --git a/daemon/nfs41_server.c b/daemon/nfs41_server.c
index 22eb306..d58c03a 100644
--- a/daemon/nfs41_server.c
+++ b/daemon/nfs41_server.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_session.c b/daemon/nfs41_session.c
index ff75363..d1e9126 100644
--- a/daemon/nfs41_session.c
+++ b/daemon/nfs41_session.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_superblock.c b/daemon/nfs41_superblock.c
index ee8130f..cf2bf4a 100644
--- a/daemon/nfs41_superblock.c
+++ b/daemon/nfs41_superblock.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_types.h b/daemon/nfs41_types.h
index ae9867c..1e5e716 100644
--- a/daemon/nfs41_types.h
+++ b/daemon/nfs41_types.h
@@ -1,28 +1,23 @@
-/* Copyright (c) 2010, 2011
-* The Regents of the University of Michigan
-* All Rights Reserved
-*
-* Olga Kornievskaia
-* Casey Bodley
-*
-* Permission is granted to use, copy and redistribute this software
-* for noncommercial education and research purposes, so long as no
-* fee is charged, and so long as the name of the University of Michigan
-* is not used in any advertising or publicity pertaining to the use
-* or distribution of this software without specific, written prior
-* authorization. Permission to modify or otherwise create derivative
-* works of this software is not granted.
-*
-* This software is provided as is, without representation or warranty
-* of any kind either express or implied, including without limitation
-* the implied warranties of merchantability, fitness for a particular
-* purpose, or noninfringement. The Regents of the University of
-* Michigan shall not be liable for any damages, including special,
-* indirect, incidental, or consequential damages, with respect to any
-* claim arising out of or in connection with the use of the software,
-* even if it has been or is hereafter advised of the possibility of
-* such damages.
-*/
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
+ * Olga Kornievskaia
+ * Casey Bodley
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ */
#ifndef __NFS41_DAEMON_TYPES_H__
#define __NFS41_DAEMON_TYPES_H__
diff --git a/daemon/nfs41_xdr.c b/daemon/nfs41_xdr.c
index 81a1a7b..9462033 100644
--- a/daemon/nfs41_xdr.c
+++ b/daemon/nfs41_xdr.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/nfs41_xdr.h b/daemon/nfs41_xdr.h
index caf30e5..9a3fc61 100644
--- a/daemon/nfs41_xdr.h
+++ b/daemon/nfs41_xdr.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_NFS_XDR_H__
diff --git a/daemon/open.c b/daemon/open.c
index 133fc30..e52531c 100644
--- a/daemon/open.c
+++ b/daemon/open.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/pnfs.h b/daemon/pnfs.h
index eb20c6f..f915948 100644
--- a/daemon/pnfs.h
+++ b/daemon/pnfs.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __PNFS_H__
diff --git a/daemon/pnfs_debug.c b/daemon/pnfs_debug.c
index 6ffa867..fc55c34 100644
--- a/daemon/pnfs_debug.c
+++ b/daemon/pnfs_debug.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/pnfs_device.c b/daemon/pnfs_device.c
index e19bd99..4b0520c 100644
--- a/daemon/pnfs_device.c
+++ b/daemon/pnfs_device.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/pnfs_io.c b/daemon/pnfs_io.c
index 647ef9e..6386ad0 100644
--- a/daemon/pnfs_io.c
+++ b/daemon/pnfs_io.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/pnfs_layout.c b/daemon/pnfs_layout.c
index b8a72c1..b3e8506 100644
--- a/daemon/pnfs_layout.c
+++ b/daemon/pnfs_layout.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/readdir.c b/daemon/readdir.c
index 23dc9f4..648b592 100644
--- a/daemon/readdir.c
+++ b/daemon/readdir.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/readwrite.c b/daemon/readwrite.c
index 5ff208c..3a1e080 100644
--- a/daemon/readwrite.c
+++ b/daemon/readwrite.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/recovery.c b/daemon/recovery.c
index ddd9e27..7713602 100644
--- a/daemon/recovery.c
+++ b/daemon/recovery.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/recovery.h b/daemon/recovery.h
index 2b91c1b..b16044e 100644
--- a/daemon/recovery.h
+++ b/daemon/recovery.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef RECOVERY_H
diff --git a/daemon/setattr.c b/daemon/setattr.c
index c9a577c..cad4b79 100644
--- a/daemon/setattr.c
+++ b/daemon/setattr.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/symlink.c b/daemon/symlink.c
index 47b0b37..2b57825 100644
--- a/daemon/symlink.c
+++ b/daemon/symlink.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/upcall.c b/daemon/upcall.c
index 35b3b13..16fa4a4 100644
--- a/daemon/upcall.c
+++ b/daemon/upcall.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/upcall.h b/daemon/upcall.h
index 64c3a61..560722f 100644
--- a/daemon/upcall.h
+++ b/daemon/upcall.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_DAEMON_UPCALL_H__
diff --git a/daemon/util.c b/daemon/util.c
index dc63e1a..86f9e77 100644
--- a/daemon/util.c
+++ b/daemon/util.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/daemon/util.h b/daemon/util.h
index 89b62a4..07acf15 100644
--- a/daemon/util.h
+++ b/daemon/util.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_DAEMON_UTIL_H__
diff --git a/daemon/volume.c b/daemon/volume.c
index cdb1a08..fe662ba 100644
--- a/daemon/volume.c
+++ b/daemon/volume.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/dll/dllmain.c b/dll/dllmain.c
index 834ed07..b027350 100644
--- a/dll/dllmain.c
+++ b/dll/dllmain.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
/*++
diff --git a/dll/nfs41_np.c b/dll/nfs41_np.c
index b4dc32f..8b259bb 100644
--- a/dll/nfs41_np.c
+++ b/dll/nfs41_np.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/dll/nfs41_np.h b/dll/nfs41_np.h
index fa1aa55..aed9c35 100644
--- a/dll/nfs41_np.h
+++ b/dll/nfs41_np.h
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_NP_H__
diff --git a/dll/options.c b/dll/options.c
index 72b1b81..e400e31 100644
--- a/dll/options.c
+++ b/dll/options.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/dll/options.h b/dll/options.h
index 2df3f37..e6f16ff 100644
--- a/dll/options.h
+++ b/dll/options.h
@@ -1,24 +1,22 @@
-/* Copyright (c) 2010
- * The Regents of the University of Michigan
- * All Rights Reserved
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * Olga Kornievskaia
+ * Casey Bodley
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifndef __NFS41_NP_OPTIONS_H__
diff --git a/install/nfs_install.c b/install/nfs_install.c
index 5f36b13..d1e6b74 100644
--- a/install/nfs_install.c
+++ b/install/nfs_install.c
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
/*
*
* This file is just for prepending nfs41_driver to the
diff --git a/install/nfsreginst.c b/install/nfsreginst.c
index 2e891a8..f4bb3e4 100644
--- a/install/nfsreginst.c
+++ b/install/nfsreginst.c
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
/*++
Module Name:
diff --git a/install/nfsreginst.h b/install/nfsreginst.h
index a308b98..93bf954 100644
--- a/install/nfsreginst.h
+++ b/install/nfsreginst.h
@@ -1,28 +1,24 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
+
/*++
Copyright (c) 1997 - 1999 Microsoft Corporation
diff --git a/libtirpc/src/auth_none.c b/libtirpc/src/auth_none.c
index 3d90992..e2793c6 100644
--- a/libtirpc/src/auth_none.c
+++ b/libtirpc/src/auth_none.c
@@ -1,218 +1,213 @@
-/*
- * Copyright (c) 2009, Sun Microsystems, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither the name of Sun Microsystems, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *sccsid = "@(#)auth_none.c 1.19 87/08/11 Copyr 1984 Sun Micro";
-static char *sccsid = "@(#)auth_none.c 2.1 88/07/29 4.0 RPCSRC";
-#endif
-//#include
-__FBSDID("$FreeBSD: src/lib/libc/rpc/auth_none.c,v 1.12 2002/03/22 23:18:35 obrien Exp $");
-*/
-
-
-/*
- * auth_none.c
- * Creates a client authentication handle for passing "null"
- * credentials and verifiers to remote systems.
- *
- * Copyright (C) 1984, Sun Microsystems, Inc.
- */
-
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
+/*
+ * Copyright (c) 2009, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * - Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+#if defined(LIBC_SCCS) && !defined(lint)
+static char *sccsid = "@(#)auth_none.c 1.19 87/08/11 Copyr 1984 Sun Micro";
+static char *sccsid = "@(#)auth_none.c 2.1 88/07/29 4.0 RPCSRC";
+#endif
+//#include
+__FBSDID("$FreeBSD: src/lib/libc/rpc/auth_none.c,v 1.12 2002/03/22 23:18:35 obrien Exp $");
+*/
+
+
+/*
+ * auth_none.c
+ * Creates a client authentication handle for passing "null"
+ * credentials and verifiers to remote systems.
+ *
+ * Copyright (C) 1984, Sun Microsystems, Inc.
+ */
+
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
*
* Olga Kornievskaia
* Casey Bodley
- * Kevin Coffman
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
- */
-#include
-//#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define MAX_MARSHAL_SIZE 20
-
-/*
- * Authenticator operations routines
- */
-
-static bool_t authnone_marshal (AUTH *, XDR *, u_int *);
-static void authnone_verf (AUTH *);
-static bool_t authnone_validate (AUTH *, struct opaque_auth *, u_int);
-static bool_t authnone_refresh (AUTH *, void *);
-static void authnone_destroy (AUTH *);
-
-extern bool_t xdr_opaque_auth();
-
-static struct auth_ops *authnone_ops();
-
-static struct authnone_private {
- AUTH no_client;
- char marshalled_client[MAX_MARSHAL_SIZE];
- u_int mcnt;
-} *authnone_private;
-
-AUTH *
-authnone_create()
-{
- struct authnone_private *ap = authnone_private;
- XDR xdr_stream;
- XDR *xdrs;
- extern mutex_t authnone_lock;
-
- mutex_lock(&authnone_lock);
- if (ap == 0) {
- ap = (struct authnone_private *)calloc(1, sizeof (*ap));
- if (ap == 0) {
- mutex_unlock(&authnone_lock);
- return (0);
- }
- authnone_private = ap;
- }
- if (!ap->mcnt) {
- ap->no_client.ah_cred = ap->no_client.ah_verf = _null_auth;
- ap->no_client.ah_ops = authnone_ops();
- xdrs = &xdr_stream;
- xdrmem_create(xdrs, ap->marshalled_client,
- (u_int)MAX_MARSHAL_SIZE, XDR_ENCODE);
- (void)xdr_opaque_auth(xdrs, &ap->no_client.ah_cred);
- (void)xdr_opaque_auth(xdrs, &ap->no_client.ah_verf);
- ap->mcnt = XDR_GETPOS(xdrs);
- XDR_DESTROY(xdrs);
- }
- mutex_unlock(&authnone_lock);
- return (&ap->no_client);
-}
-
-/*ARGSUSED*/
-static bool_t
-authnone_marshal(AUTH *client, XDR *xdrs, u_int *seq)
-{
- struct authnone_private *ap;
- bool_t dummy;
- extern mutex_t authnone_lock;
-
- assert(xdrs != NULL);
-
- ap = authnone_private;
- if (ap == NULL) {
- mutex_unlock(&authnone_lock);
- return (FALSE);
- }
- dummy = (*xdrs->x_ops->x_putbytes)(xdrs,
- ap->marshalled_client, ap->mcnt);
- mutex_unlock(&authnone_lock);
- return (dummy);
-}
-
-/* All these unused parameters are required to keep ANSI-C from grumbling */
-/*ARGSUSED*/
-static void
-authnone_verf(AUTH *client)
-{
-}
-
-/*ARGSUSED*/
-static bool_t
-authnone_validate(AUTH *client, struct opaque_auth *opaque, u_int seq)
-{
-
- return (TRUE);
-}
-
-/*ARGSUSED*/
-static bool_t
-authnone_refresh(AUTH *client, void *dummy)
-{
-
- return (FALSE);
-}
-
-/*ARGSUSED*/
-static void
-authnone_destroy(AUTH *client)
-{
-}
-
-static int
-authnone_wrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args)
-{
- return ((*func)(xdrs, args));
-}
-
-static int
-authnone_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq)
-{
- return ((*func)(xdrs, args));
-}
-
-static struct auth_ops *
-authnone_ops()
-{
- static struct auth_ops ops;
- extern mutex_t ops_lock;
-
-/* VARIABLES PROTECTED BY ops_lock: ops */
-
- mutex_lock(&ops_lock);
- if (ops.ah_nextverf == NULL) {
- ops.ah_nextverf = authnone_verf;
- ops.ah_marshal = authnone_marshal;
- ops.ah_validate = authnone_validate;
- ops.ah_refresh = authnone_refresh;
- ops.ah_destroy = authnone_destroy;
- ops.ah_wrap = authnone_wrap;
- ops.ah_unwrap = authnone_unwrap;
- }
- mutex_unlock(&ops_lock);
- return (&ops);
-}
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ */
+
+#include
+//#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#define MAX_MARSHAL_SIZE 20
+
+/*
+ * Authenticator operations routines
+ */
+
+static bool_t authnone_marshal (AUTH *, XDR *, u_int *);
+static void authnone_verf (AUTH *);
+static bool_t authnone_validate (AUTH *, struct opaque_auth *, u_int);
+static bool_t authnone_refresh (AUTH *, void *);
+static void authnone_destroy (AUTH *);
+
+extern bool_t xdr_opaque_auth();
+
+static struct auth_ops *authnone_ops();
+
+static struct authnone_private {
+ AUTH no_client;
+ char marshalled_client[MAX_MARSHAL_SIZE];
+ u_int mcnt;
+} *authnone_private;
+
+AUTH *
+authnone_create()
+{
+ struct authnone_private *ap = authnone_private;
+ XDR xdr_stream;
+ XDR *xdrs;
+ extern mutex_t authnone_lock;
+
+ mutex_lock(&authnone_lock);
+ if (ap == 0) {
+ ap = (struct authnone_private *)calloc(1, sizeof (*ap));
+ if (ap == 0) {
+ mutex_unlock(&authnone_lock);
+ return (0);
+ }
+ authnone_private = ap;
+ }
+ if (!ap->mcnt) {
+ ap->no_client.ah_cred = ap->no_client.ah_verf = _null_auth;
+ ap->no_client.ah_ops = authnone_ops();
+ xdrs = &xdr_stream;
+ xdrmem_create(xdrs, ap->marshalled_client,
+ (u_int)MAX_MARSHAL_SIZE, XDR_ENCODE);
+ (void)xdr_opaque_auth(xdrs, &ap->no_client.ah_cred);
+ (void)xdr_opaque_auth(xdrs, &ap->no_client.ah_verf);
+ ap->mcnt = XDR_GETPOS(xdrs);
+ XDR_DESTROY(xdrs);
+ }
+ mutex_unlock(&authnone_lock);
+ return (&ap->no_client);
+}
+
+/*ARGSUSED*/
+static bool_t
+authnone_marshal(AUTH *client, XDR *xdrs, u_int *seq)
+{
+ struct authnone_private *ap;
+ bool_t dummy;
+ extern mutex_t authnone_lock;
+
+ assert(xdrs != NULL);
+
+ ap = authnone_private;
+ if (ap == NULL) {
+ mutex_unlock(&authnone_lock);
+ return (FALSE);
+ }
+ dummy = (*xdrs->x_ops->x_putbytes)(xdrs,
+ ap->marshalled_client, ap->mcnt);
+ mutex_unlock(&authnone_lock);
+ return (dummy);
+}
+
+/* All these unused parameters are required to keep ANSI-C from grumbling */
+/*ARGSUSED*/
+static void
+authnone_verf(AUTH *client)
+{
+}
+
+/*ARGSUSED*/
+static bool_t
+authnone_validate(AUTH *client, struct opaque_auth *opaque, u_int seq)
+{
+
+ return (TRUE);
+}
+
+/*ARGSUSED*/
+static bool_t
+authnone_refresh(AUTH *client, void *dummy)
+{
+
+ return (FALSE);
+}
+
+/*ARGSUSED*/
+static void
+authnone_destroy(AUTH *client)
+{
+}
+
+static int
+authnone_wrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args)
+{
+ return ((*func)(xdrs, args));
+}
+
+static int
+authnone_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq)
+{
+ return ((*func)(xdrs, args));
+}
+
+static struct auth_ops *
+authnone_ops()
+{
+ static struct auth_ops ops;
+ extern mutex_t ops_lock;
+
+/* VARIABLES PROTECTED BY ops_lock: ops */
+
+ mutex_lock(&ops_lock);
+ if (ops.ah_nextverf == NULL) {
+ ops.ah_nextverf = authnone_verf;
+ ops.ah_marshal = authnone_marshal;
+ ops.ah_validate = authnone_validate;
+ ops.ah_refresh = authnone_refresh;
+ ops.ah_destroy = authnone_destroy;
+ ops.ah_wrap = authnone_wrap;
+ ops.ah_unwrap = authnone_unwrap;
+ }
+ mutex_unlock(&ops_lock);
+ return (&ops);
+}
diff --git a/libtirpc/src/auth_sspi.c b/libtirpc/src/auth_sspi.c
index d5acb35..3bd558c 100644
--- a/libtirpc/src/auth_sspi.c
+++ b/libtirpc/src/auth_sspi.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/libtirpc/src/auth_unix.c b/libtirpc/src/auth_unix.c
index 815fcfa..4757aaa 100644
--- a/libtirpc/src/auth_unix.c
+++ b/libtirpc/src/auth_unix.c
@@ -1,409 +1,404 @@
-/*
- * Copyright (c) 2009, Sun Microsystems, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither the name of Sun Microsystems, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-//#include
-
-/*
- * auth_unix.c, Implements UNIX style authentication parameters.
- *
- * Copyright (C) 1984, Sun Microsystems, Inc.
- *
- * The system is very weak. The client uses no encryption for it's
- * credentials and only sends null verifiers. The server sends backs
- * null verifiers or optionally a verifier that suggests a new short hand
- * for the credentials.
- *
- */
-
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
+/*
+ * Copyright (c) 2009, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * - Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+//#include
+
+/*
+ * auth_unix.c, Implements UNIX style authentication parameters.
+ *
+ * Copyright (C) 1984, Sun Microsystems, Inc.
+ *
+ * The system is very weak. The client uses no encryption for it's
+ * credentials and only sends null verifiers. The server sends backs
+ * null verifiers or optionally a verifier that suggests a new short hand
+ * for the credentials.
+ *
+ */
+
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
*
* Olga Kornievskaia
* Casey Bodley
- * Kevin Coffman
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
- */
-#include
-//#include
-#include
-//#include
-
-#include
-//#include
-#include
-#include
-//#include
-#include
-
-#include
-#include
-#include
-#include
-
-/* auth_unix.c */
-static void authunix_nextverf (AUTH *);
-static bool_t authunix_marshal (AUTH *, XDR *, u_int *seq);
-static bool_t authunix_validate (AUTH *, struct opaque_auth *, u_int);
-static bool_t authunix_refresh (AUTH *, void *);
-static void authunix_destroy (AUTH *);
-static void marshal_new_auth (AUTH *);
-static struct auth_ops *authunix_ops (void);
-
-/*
- * This struct is pointed to by the ah_private field of an auth_handle.
- */
-struct audata {
- struct opaque_auth au_origcred; /* original credentials */
- struct opaque_auth au_shcred; /* short hand cred */
- u_long au_shfaults; /* short hand cache faults */
- char au_marshed[MAX_AUTH_BYTES];
- u_int au_mpos; /* xdr pos at end of marshed */
-};
-#define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private)
-
-/*
- * Create a unix style authenticator.
- * Returns an auth handle with the given stuff in it.
- */
-AUTH *
-authunix_create(machname, uid, gid, len, aup_gids)
- char *machname;
- uid_t uid;
- gid_t gid;
- int len;
- gid_t *aup_gids;
-{
- struct authunix_parms aup;
- char mymem[MAX_AUTH_BYTES];
- struct timeval now;
- XDR xdrs;
- AUTH *auth;
- struct audata *au;
-
- /*
- * Allocate and set up auth handle
- */
- au = NULL;
- auth = mem_alloc(sizeof(*auth));
-#ifndef _KERNEL
- if (auth == NULL) {
- // XXX warnx("authunix_create: out of memory");
- goto cleanup_authunix_create;
- }
-#endif
- au = mem_alloc(sizeof(*au));
-#ifndef _KERNEL
- if (au == NULL) {
- // XXX warnx("authunix_create: out of memory");
- goto cleanup_authunix_create;
- }
-#endif
- auth->ah_ops = authunix_ops();
- auth->ah_private = (caddr_t)au;
- auth->ah_verf = au->au_shcred = _null_auth;
- au->au_shfaults = 0;
- au->au_origcred.oa_base = NULL;
-
- /*
- * fill in param struct from the given params
- */
- (void)gettimeofday(&now, NULL);
- aup.aup_time = now.tv_sec;
- aup.aup_machname = machname;
- aup.aup_uid = uid;
- aup.aup_gid = gid;
- aup.aup_len = (u_int)len;
- aup.aup_gids = aup_gids;
-
- /*
- * Serialize the parameters into origcred
- */
- xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
- if (! xdr_authunix_parms(&xdrs, &aup))
- abort();
- au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs);
- au->au_origcred.oa_flavor = AUTH_UNIX;
-#ifdef _KERNEL
- au->au_origcred.oa_base = mem_alloc((u_int) len);
-#else
- if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) {
- // XXX warnx("authunix_create: out of memory");
- goto cleanup_authunix_create;
- }
-#endif
- memmove(au->au_origcred.oa_base, mymem, (size_t)len);
-
- /*
- * set auth handle to reflect new cred.
- */
- auth->ah_cred = au->au_origcred;
- marshal_new_auth(auth);
- return (auth);
-#ifndef _KERNEL
- cleanup_authunix_create:
- if (auth)
- mem_free(auth, sizeof(*auth));
- if (au) {
- if (au->au_origcred.oa_base)
- mem_free(au->au_origcred.oa_base, (u_int)len);
- mem_free(au, sizeof(*au));
- }
- return (NULL);
-#endif
-}
-
-/*
- * Returns an auth handle with parameters determined by doing lots of
- * syscalls.
- */
-AUTH *
-authunix_create_default()
-{
- int len;
- char machname[MAXHOSTNAMELEN + 1];
- uid_t uid;
- gid_t gid;
- gid_t gids[NGRPS];
-
- if (gethostname(machname, sizeof machname) == -1)
- abort();
- machname[sizeof(machname) - 1] = 0;
-#if 0
- uid = geteuid();
- gid = getegid();
- if ((len = getgroups(NGRPS, gids)) < 0)
- abort();
-#else
- // XXX Need to figure out what to do here!
- uid = 666;
- gid = 777;
- gids[0] = 0;
- len = 0;
-#endif
- /* XXX: interface problem; those should all have been unsigned */
- return (authunix_create(machname, uid, gid, len, gids));
-}
-
-/*
- * authunix operations
- */
-
-/* ARGSUSED */
-static void
-authunix_nextverf(auth)
- AUTH *auth;
-{
- /* no action necessary */
-}
-
-static bool_t
-authunix_marshal(auth, xdrs, seq)
- AUTH *auth;
- XDR *xdrs;
- u_int *seq;
-{
- struct audata *au;
-
- assert(auth != NULL);
- assert(xdrs != NULL);
-
- au = AUTH_PRIVATE(auth);
- return (XDR_PUTBYTES(xdrs, au->au_marshed, au->au_mpos));
-}
-
-static bool_t
-authunix_validate(auth, verf, seq)
- AUTH *auth;
- struct opaque_auth *verf;
- u_int seq;
-{
- struct audata *au;
- XDR xdrs;
-
- assert(auth != NULL);
- assert(verf != NULL);
-
- if (verf->oa_flavor == AUTH_SHORT) {
- au = AUTH_PRIVATE(auth);
- xdrmem_create(&xdrs, verf->oa_base, verf->oa_length,
- XDR_DECODE);
-
- if (au->au_shcred.oa_base != NULL) {
- mem_free(au->au_shcred.oa_base,
- au->au_shcred.oa_length);
- au->au_shcred.oa_base = NULL;
- }
- if (xdr_opaque_auth(&xdrs, &au->au_shcred)) {
- auth->ah_cred = au->au_shcred;
- } else {
- xdrs.x_op = XDR_FREE;
- (void)xdr_opaque_auth(&xdrs, &au->au_shcred);
- au->au_shcred.oa_base = NULL;
- auth->ah_cred = au->au_origcred;
- }
- marshal_new_auth(auth);
- }
- return (TRUE);
-}
-
-static bool_t
-authunix_refresh(AUTH *auth, void *dummy)
-{
- struct audata *au = AUTH_PRIVATE(auth);
- struct authunix_parms aup;
- struct timeval now;
- XDR xdrs;
- int stat;
-
- assert(auth != NULL);
-
- if (auth->ah_cred.oa_base == au->au_origcred.oa_base) {
- /* there is no hope. Punt */
- return (FALSE);
- }
- au->au_shfaults ++;
-
- /* first deserialize the creds back into a struct authunix_parms */
- aup.aup_machname = NULL;
- aup.aup_gids = NULL;
- xdrmem_create(&xdrs, au->au_origcred.oa_base,
- au->au_origcred.oa_length, XDR_DECODE);
- stat = xdr_authunix_parms(&xdrs, &aup);
- if (! stat)
- goto done;
-
- /* update the time and serialize in place */
- (void)gettimeofday(&now, NULL);
- aup.aup_time = now.tv_sec;
- xdrs.x_op = XDR_ENCODE;
- XDR_SETPOS(&xdrs, 0);
- stat = xdr_authunix_parms(&xdrs, &aup);
- if (! stat)
- goto done;
- auth->ah_cred = au->au_origcred;
- marshal_new_auth(auth);
-done:
- /* free the struct authunix_parms created by deserializing */
- xdrs.x_op = XDR_FREE;
- (void)xdr_authunix_parms(&xdrs, &aup);
- XDR_DESTROY(&xdrs);
- return (stat);
-}
-
-static void
-authunix_destroy(auth)
- AUTH *auth;
-{
- struct audata *au;
-
- assert(auth != NULL);
-
- au = AUTH_PRIVATE(auth);
- mem_free(au->au_origcred.oa_base, au->au_origcred.oa_length);
-
- if (au->au_shcred.oa_base != NULL)
- mem_free(au->au_shcred.oa_base, au->au_shcred.oa_length);
-
- mem_free(auth->ah_private, sizeof(struct audata));
-
- if (auth->ah_verf.oa_base != NULL)
- mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length);
-
- mem_free(auth, sizeof(*auth));
-}
-
-/*
- * Marshals (pre-serializes) an auth struct.
- * sets private data, au_marshed and au_mpos
- */
-static void
-marshal_new_auth(auth)
- AUTH *auth;
-{
- XDR xdr_stream;
- XDR *xdrs = &xdr_stream;
- struct audata *au;
-
- assert(auth != NULL);
-
- au = AUTH_PRIVATE(auth);
- xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
- if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
- (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))
- assert(0); // XXX
- // XXX warnx("auth_none.c - Fatal marshalling problem");
- else
- au->au_mpos = XDR_GETPOS(xdrs);
- XDR_DESTROY(xdrs);
-}
-
-static bool_t
-authunix_wrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq)
-{
- return ((*func)(xdrs, args));
-}
-
-static struct auth_ops *
-authunix_ops()
-{
- static struct auth_ops ops;
- extern mutex_t ops_lock;
-
- /* VARIABLES PROTECTED BY ops_lock: ops */
-
- mutex_lock(&ops_lock);
- if (ops.ah_nextverf == NULL) {
- ops.ah_nextverf = authunix_nextverf;
- ops.ah_marshal = authunix_marshal;
- ops.ah_validate = authunix_validate;
- ops.ah_refresh = authunix_refresh;
- ops.ah_destroy = authunix_destroy;
- ops.ah_wrap = authunix_wrap;
- ops.ah_unwrap = authunix_wrap;
- }
- mutex_unlock(&ops_lock);
- return (&ops);
-}
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ */
+
+#include
+//#include
+#include
+//#include
+
+#include
+//#include
+#include
+#include
+//#include
+#include
+
+#include
+#include
+#include
+#include
+
+/* auth_unix.c */
+static void authunix_nextverf (AUTH *);
+static bool_t authunix_marshal (AUTH *, XDR *, u_int *seq);
+static bool_t authunix_validate (AUTH *, struct opaque_auth *, u_int);
+static bool_t authunix_refresh (AUTH *, void *);
+static void authunix_destroy (AUTH *);
+static void marshal_new_auth (AUTH *);
+static struct auth_ops *authunix_ops (void);
+
+/*
+ * This struct is pointed to by the ah_private field of an auth_handle.
+ */
+struct audata {
+ struct opaque_auth au_origcred; /* original credentials */
+ struct opaque_auth au_shcred; /* short hand cred */
+ u_long au_shfaults; /* short hand cache faults */
+ char au_marshed[MAX_AUTH_BYTES];
+ u_int au_mpos; /* xdr pos at end of marshed */
+};
+#define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private)
+
+/*
+ * Create a unix style authenticator.
+ * Returns an auth handle with the given stuff in it.
+ */
+AUTH *
+authunix_create(machname, uid, gid, len, aup_gids)
+ char *machname;
+ uid_t uid;
+ gid_t gid;
+ int len;
+ gid_t *aup_gids;
+{
+ struct authunix_parms aup;
+ char mymem[MAX_AUTH_BYTES];
+ struct timeval now;
+ XDR xdrs;
+ AUTH *auth;
+ struct audata *au;
+
+ /*
+ * Allocate and set up auth handle
+ */
+ au = NULL;
+ auth = mem_alloc(sizeof(*auth));
+#ifndef _KERNEL
+ if (auth == NULL) {
+ // XXX warnx("authunix_create: out of memory");
+ goto cleanup_authunix_create;
+ }
+#endif
+ au = mem_alloc(sizeof(*au));
+#ifndef _KERNEL
+ if (au == NULL) {
+ // XXX warnx("authunix_create: out of memory");
+ goto cleanup_authunix_create;
+ }
+#endif
+ auth->ah_ops = authunix_ops();
+ auth->ah_private = (caddr_t)au;
+ auth->ah_verf = au->au_shcred = _null_auth;
+ au->au_shfaults = 0;
+ au->au_origcred.oa_base = NULL;
+
+ /*
+ * fill in param struct from the given params
+ */
+ (void)gettimeofday(&now, NULL);
+ aup.aup_time = now.tv_sec;
+ aup.aup_machname = machname;
+ aup.aup_uid = uid;
+ aup.aup_gid = gid;
+ aup.aup_len = (u_int)len;
+ aup.aup_gids = aup_gids;
+
+ /*
+ * Serialize the parameters into origcred
+ */
+ xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
+ if (! xdr_authunix_parms(&xdrs, &aup))
+ abort();
+ au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs);
+ au->au_origcred.oa_flavor = AUTH_UNIX;
+#ifdef _KERNEL
+ au->au_origcred.oa_base = mem_alloc((u_int) len);
+#else
+ if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) {
+ // XXX warnx("authunix_create: out of memory");
+ goto cleanup_authunix_create;
+ }
+#endif
+ memmove(au->au_origcred.oa_base, mymem, (size_t)len);
+
+ /*
+ * set auth handle to reflect new cred.
+ */
+ auth->ah_cred = au->au_origcred;
+ marshal_new_auth(auth);
+ return (auth);
+#ifndef _KERNEL
+ cleanup_authunix_create:
+ if (auth)
+ mem_free(auth, sizeof(*auth));
+ if (au) {
+ if (au->au_origcred.oa_base)
+ mem_free(au->au_origcred.oa_base, (u_int)len);
+ mem_free(au, sizeof(*au));
+ }
+ return (NULL);
+#endif
+}
+
+/*
+ * Returns an auth handle with parameters determined by doing lots of
+ * syscalls.
+ */
+AUTH *
+authunix_create_default()
+{
+ int len;
+ char machname[MAXHOSTNAMELEN + 1];
+ uid_t uid;
+ gid_t gid;
+ gid_t gids[NGRPS];
+
+ if (gethostname(machname, sizeof machname) == -1)
+ abort();
+ machname[sizeof(machname) - 1] = 0;
+#if 0
+ uid = geteuid();
+ gid = getegid();
+ if ((len = getgroups(NGRPS, gids)) < 0)
+ abort();
+#else
+ // XXX Need to figure out what to do here!
+ uid = 666;
+ gid = 777;
+ gids[0] = 0;
+ len = 0;
+#endif
+ /* XXX: interface problem; those should all have been unsigned */
+ return (authunix_create(machname, uid, gid, len, gids));
+}
+
+/*
+ * authunix operations
+ */
+
+/* ARGSUSED */
+static void
+authunix_nextverf(auth)
+ AUTH *auth;
+{
+ /* no action necessary */
+}
+
+static bool_t
+authunix_marshal(auth, xdrs, seq)
+ AUTH *auth;
+ XDR *xdrs;
+ u_int *seq;
+{
+ struct audata *au;
+
+ assert(auth != NULL);
+ assert(xdrs != NULL);
+
+ au = AUTH_PRIVATE(auth);
+ return (XDR_PUTBYTES(xdrs, au->au_marshed, au->au_mpos));
+}
+
+static bool_t
+authunix_validate(auth, verf, seq)
+ AUTH *auth;
+ struct opaque_auth *verf;
+ u_int seq;
+{
+ struct audata *au;
+ XDR xdrs;
+
+ assert(auth != NULL);
+ assert(verf != NULL);
+
+ if (verf->oa_flavor == AUTH_SHORT) {
+ au = AUTH_PRIVATE(auth);
+ xdrmem_create(&xdrs, verf->oa_base, verf->oa_length,
+ XDR_DECODE);
+
+ if (au->au_shcred.oa_base != NULL) {
+ mem_free(au->au_shcred.oa_base,
+ au->au_shcred.oa_length);
+ au->au_shcred.oa_base = NULL;
+ }
+ if (xdr_opaque_auth(&xdrs, &au->au_shcred)) {
+ auth->ah_cred = au->au_shcred;
+ } else {
+ xdrs.x_op = XDR_FREE;
+ (void)xdr_opaque_auth(&xdrs, &au->au_shcred);
+ au->au_shcred.oa_base = NULL;
+ auth->ah_cred = au->au_origcred;
+ }
+ marshal_new_auth(auth);
+ }
+ return (TRUE);
+}
+
+static bool_t
+authunix_refresh(AUTH *auth, void *dummy)
+{
+ struct audata *au = AUTH_PRIVATE(auth);
+ struct authunix_parms aup;
+ struct timeval now;
+ XDR xdrs;
+ int stat;
+
+ assert(auth != NULL);
+
+ if (auth->ah_cred.oa_base == au->au_origcred.oa_base) {
+ /* there is no hope. Punt */
+ return (FALSE);
+ }
+ au->au_shfaults ++;
+
+ /* first deserialize the creds back into a struct authunix_parms */
+ aup.aup_machname = NULL;
+ aup.aup_gids = NULL;
+ xdrmem_create(&xdrs, au->au_origcred.oa_base,
+ au->au_origcred.oa_length, XDR_DECODE);
+ stat = xdr_authunix_parms(&xdrs, &aup);
+ if (! stat)
+ goto done;
+
+ /* update the time and serialize in place */
+ (void)gettimeofday(&now, NULL);
+ aup.aup_time = now.tv_sec;
+ xdrs.x_op = XDR_ENCODE;
+ XDR_SETPOS(&xdrs, 0);
+ stat = xdr_authunix_parms(&xdrs, &aup);
+ if (! stat)
+ goto done;
+ auth->ah_cred = au->au_origcred;
+ marshal_new_auth(auth);
+done:
+ /* free the struct authunix_parms created by deserializing */
+ xdrs.x_op = XDR_FREE;
+ (void)xdr_authunix_parms(&xdrs, &aup);
+ XDR_DESTROY(&xdrs);
+ return (stat);
+}
+
+static void
+authunix_destroy(auth)
+ AUTH *auth;
+{
+ struct audata *au;
+
+ assert(auth != NULL);
+
+ au = AUTH_PRIVATE(auth);
+ mem_free(au->au_origcred.oa_base, au->au_origcred.oa_length);
+
+ if (au->au_shcred.oa_base != NULL)
+ mem_free(au->au_shcred.oa_base, au->au_shcred.oa_length);
+
+ mem_free(auth->ah_private, sizeof(struct audata));
+
+ if (auth->ah_verf.oa_base != NULL)
+ mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length);
+
+ mem_free(auth, sizeof(*auth));
+}
+
+/*
+ * Marshals (pre-serializes) an auth struct.
+ * sets private data, au_marshed and au_mpos
+ */
+static void
+marshal_new_auth(auth)
+ AUTH *auth;
+{
+ XDR xdr_stream;
+ XDR *xdrs = &xdr_stream;
+ struct audata *au;
+
+ assert(auth != NULL);
+
+ au = AUTH_PRIVATE(auth);
+ xdrmem_create(xdrs, au->au_marshed, MAX_AUTH_BYTES, XDR_ENCODE);
+ if ((! xdr_opaque_auth(xdrs, &(auth->ah_cred))) ||
+ (! xdr_opaque_auth(xdrs, &(auth->ah_verf))))
+ assert(0); // XXX
+ // XXX warnx("auth_none.c - Fatal marshalling problem");
+ else
+ au->au_mpos = XDR_GETPOS(xdrs);
+ XDR_DESTROY(xdrs);
+}
+
+static bool_t
+authunix_wrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq)
+{
+ return ((*func)(xdrs, args));
+}
+
+static struct auth_ops *
+authunix_ops()
+{
+ static struct auth_ops ops;
+ extern mutex_t ops_lock;
+
+ /* VARIABLES PROTECTED BY ops_lock: ops */
+
+ mutex_lock(&ops_lock);
+ if (ops.ah_nextverf == NULL) {
+ ops.ah_nextverf = authunix_nextverf;
+ ops.ah_marshal = authunix_marshal;
+ ops.ah_validate = authunix_validate;
+ ops.ah_refresh = authunix_refresh;
+ ops.ah_destroy = authunix_destroy;
+ ops.ah_wrap = authunix_wrap;
+ ops.ah_unwrap = authunix_wrap;
+ }
+ mutex_unlock(&ops_lock);
+ return (&ops);
+}
diff --git a/libtirpc/src/authsspi_prot.c b/libtirpc/src/authsspi_prot.c
index 001b445..714da5f 100644
--- a/libtirpc/src/authsspi_prot.c
+++ b/libtirpc/src/authsspi_prot.c
@@ -1,27 +1,22 @@
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
- *
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
+ *
* Olga Kornievskaia
* Casey Bodley
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#include
diff --git a/libtirpc/src/clnt_generic.c b/libtirpc/src/clnt_generic.c
index 49ce6e9..58a6cc1 100644
--- a/libtirpc/src/clnt_generic.c
+++ b/libtirpc/src/clnt_generic.c
@@ -1,480 +1,475 @@
-/*
- * Copyright (c) 2009, Sun Microsystems, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * - Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * - Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * - Neither the name of Sun Microsystems, Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Copyright (c) 1986-1996,1998 by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-/* Copyright (c) 2010, 2011
- * The Regents of the University of Michigan
- * All Rights Reserved
+/*
+ * Copyright (c) 2009, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * - Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Copyright (c) 1986-1996,1998 by Sun Microsystems, Inc.
+ * All rights reserved.
+ */
+
+/* NFSv4.1 client for Windows
+ * Copyright © 2012 The Regents of the University of Michigan
*
* Olga Kornievskaia
* Casey Bodley
- * Kevin Coffman
*
- * Permission is granted to use, copy and redistribute this software
- * for noncommercial education and research purposes, so long as no
- * fee is charged, and so long as the name of the University of Michigan
- * is not used in any advertising or publicity pertaining to the use
- * or distribution of this software without specific, written prior
- * authorization. Permission to modify or otherwise create derivative
- * works of this software is not granted.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This software is provided as is, without representation or warranty
- * of any kind either express or implied, including without limitation
- * the implied warranties of merchantability, fitness for a particular
- * purpose, or noninfringement. The Regents of the University of
- * Michigan shall not be liable for any damages, including special,
- * indirect, incidental, or consequential damages, with respect to any
- * claim arising out of or in connection with the use of the software,
- * even if it has been or is hereafter advised of the possibility of
- * such damages.
- */
-#include
-//#include
-#include
-#include
-//#include
-#include
-//#include
-//#include
-//#include
-#include
-#include
-#include
-#include
-//#include
-//#include
-#include
-#include
-//#include
-#include "rpc_com.h"
-
-extern bool_t __rpc_is_local_host(const char *);
-#if 0 /* WINDOWS */
-int __rpc_raise_fd(int);
-#endif
-
-#ifndef NETIDLEN
-#define NETIDLEN 32
-#endif
-
-/*
- * Generic client creation with version checking the value of
- * vers_out is set to the highest server supported value
- * vers_low <= vers_out <= vers_high AND an error results
- * if this can not be done.
- *
- * It calls clnt_create_vers_timed() with a NULL value for the timeout
- * pointer, which indicates that the default timeout should be used.
- */
-CLIENT *
-clnt_create_vers(const char *hostname, const rpcprog_t prog, rpcvers_t *vers_out,
- const rpcvers_t vers_low, const rpcvers_t vers_high, const char *nettype)
-{
-
- return (clnt_create_vers_timed(hostname, prog, vers_out, vers_low,
- vers_high, nettype, NULL));
-}
-
-/*
- * This the routine has the same definition as clnt_create_vers(),
- * except it takes an additional timeout parameter - a pointer to
- * a timeval structure. A NULL value for the pointer indicates
- * that the default timeout value should be used.
- */
-CLIENT *
-clnt_create_vers_timed(const char *hostname, const rpcprog_t prog,
- rpcvers_t *vers_out, const rpcvers_t vers_low_in, const rpcvers_t vers_high_in,
- const char *nettype, const struct timeval *tp)
-{
- CLIENT *clnt;
- struct timeval to;
- enum clnt_stat rpc_stat;
- struct rpc_err rpcerr;
- rpcvers_t vers_high = vers_high_in;
- rpcvers_t vers_low = vers_low_in;
-
- clnt = clnt_create_timed(hostname, prog, vers_high, nettype, tp);
- if (clnt == NULL) {
- return (NULL);
- }
- to.tv_sec = 10;
- to.tv_usec = 0;
- rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void,
- (char *)NULL, (xdrproc_t)xdr_void, (char *)NULL, to);
- if (rpc_stat == RPC_SUCCESS) {
- *vers_out = vers_high;
- return (clnt);
- }
- while (rpc_stat == RPC_PROGVERSMISMATCH && vers_high > vers_low) {
- unsigned int minvers, maxvers;
-
- clnt_geterr(clnt, &rpcerr);
- minvers = rpcerr.re_vers.low;
- maxvers = rpcerr.re_vers.high;
- if (maxvers < vers_high)
- vers_high = maxvers;
- else
- vers_high--;
- if (minvers > vers_low)
- vers_low = minvers;
- if (vers_low > vers_high) {
- goto error;
- }
- CLNT_CONTROL(clnt, CLSET_VERS, (char *)&vers_high);
- rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void,
- (char *)NULL, (xdrproc_t)xdr_void,
- (char *)NULL, to);
- if (rpc_stat == RPC_SUCCESS) {
- *vers_out = vers_high;
- return (clnt);
- }
- }
- clnt_geterr(clnt, &rpcerr);
-
-error:
- rpc_createerr.cf_stat = rpc_stat;
- rpc_createerr.cf_error = rpcerr;
- clnt_destroy(clnt);
- return (NULL);
-}
-
-/*
- * Top level client creation routine.
- * Generic client creation: takes (servers name, program-number, nettype) and
- * returns client handle. Default options are set, which the user can
- * change using the rpc equivalent of _ioctl()'s.
- *
- * It tries for all the netids in that particular class of netid until
- * it succeeds.
- * XXX The error message in the case of failure will be the one
- * pertaining to the last create error.
- *
- * It calls clnt_create_timed() with the default timeout.
- */
-CLIENT *
-clnt_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers,
- const char *nettype)
-{
-
- return (clnt_create_timed(hostname, prog, vers, nettype, NULL));
-}
-
-/*
- * This the routine has the same definition as clnt_create(),
- * except it takes an additional timeout parameter - a pointer to
- * a timeval structure. A NULL value for the pointer indicates
- * that the default timeout value should be used.
- *
- * This function calls clnt_tp_create_timed().
- */
-CLIENT *
-clnt_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers,
- const char *netclass, const struct timeval *tp)
-{
- struct netconfig *nconf;
- CLIENT *clnt = NULL;
- void *handle;
- enum clnt_stat save_cf_stat = RPC_SUCCESS;
- struct rpc_err save_cf_error;
- char nettype_array[NETIDLEN];
- char *nettype = &nettype_array[0];
-
- if (netclass == NULL)
- nettype = NULL;
- else {
- size_t len = strlen(netclass);
- if (len >= sizeof (nettype_array)) {
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- return (NULL);
- }
- strcpy(nettype, netclass);
- }
-
- if ((handle = __rpc_setconf((char *)nettype)) == NULL) {
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- return (NULL);
- }
- rpc_createerr.cf_stat = RPC_SUCCESS;
- while (clnt == NULL) {
- if ((nconf = __rpc_getconf(handle)) == NULL) {
- if (rpc_createerr.cf_stat == RPC_SUCCESS)
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- break;
- }
-#ifdef CLNT_DEBUG
- printf("trying netid %s\n", nconf->nc_netid);
-#endif
- clnt = clnt_tp_create_timed(hostname, prog, vers, nconf, tp);
- if (clnt)
- break;
- else {
- /*
- * Since we didn't get a name-to-address
- * translation failure here, we remember
- * this particular error. The object of
- * this is to enable us to return to the
- * caller a more-specific error than the
- * unhelpful ``Name to address translation
- * failed'' which might well occur if we
- * merely returned the last error (because
- * the local loopbacks are typically the
- * last ones in /etc/netconfig and the most
- * likely to be unable to translate a host
- * name). We also check for a more
- * meaningful error than ``unknown host
- * name'' for the same reasons.
- */
- if (rpc_createerr.cf_stat != RPC_N2AXLATEFAILURE &&
- rpc_createerr.cf_stat != RPC_UNKNOWNHOST) {
- save_cf_stat = rpc_createerr.cf_stat;
- save_cf_error = rpc_createerr.cf_error;
- }
- }
- }
-
- /*
- * Attempt to return an error more specific than ``Name to address
- * translation failed'' or ``unknown host name''
- */
- if ((rpc_createerr.cf_stat == RPC_N2AXLATEFAILURE ||
- rpc_createerr.cf_stat == RPC_UNKNOWNHOST) &&
- (save_cf_stat != RPC_SUCCESS)) {
- rpc_createerr.cf_stat = save_cf_stat;
- rpc_createerr.cf_error = save_cf_error;
- }
- __rpc_endconf(handle);
- return (clnt);
-}
-
-/*
- * Generic client creation: takes (servers name, program-number, netconf) and
- * returns client handle. Default options are set, which the user can
- * change using the rpc equivalent of _ioctl()'s : clnt_control()
- * It finds out the server address from rpcbind and calls clnt_tli_create().
- *
- * It calls clnt_tp_create_timed() with the default timeout.
- */
-CLIENT *
-clnt_tp_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers,
- const struct netconfig *nconf)
-{
- return (clnt_tp_create_timed(hostname, prog, vers, nconf, NULL));
-}
-
-/*
- * This has the same definition as clnt_tp_create(), except it
- * takes an additional parameter - a pointer to a timeval structure.
- * A NULL value for the timeout pointer indicates that the default
- * value for the timeout should be used.
- */
-CLIENT *
-clnt_tp_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers,
- const struct netconfig *nconf, const struct timeval *tp)
-{
- struct netbuf *svcaddr; /* servers address */
- CLIENT *cl = NULL; /* client handle */
-
- if (nconf == NULL) {
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- return (NULL);
- }
-
- /*
- * Get the address of the server
- */
- if ((svcaddr = __rpcb_findaddr_timed(prog, vers,
- (struct netconfig *)nconf, (char *)hostname,
- &cl, (struct timeval *)tp)) == NULL) {
- /* appropriate error number is set by rpcbind libraries */
- return (NULL);
- }
- if (cl == NULL) {
- cl = clnt_tli_create(RPC_ANYFD, nconf, svcaddr,
- prog, vers, 0, 0, NULL, NULL, NULL);
- } else {
- /* Reuse the CLIENT handle and change the appropriate fields */
- if (CLNT_CONTROL(cl, CLSET_SVC_ADDR, (void *)svcaddr) == TRUE) {
- if (cl->cl_netid == NULL)
- cl->cl_netid = strdup(nconf->nc_netid);
- if (cl->cl_tp == NULL)
- cl->cl_tp = strdup(nconf->nc_device);
- (void) CLNT_CONTROL(cl, CLSET_PROG, (void *)&prog);
- (void) CLNT_CONTROL(cl, CLSET_VERS, (void *)&vers);
- } else {
- CLNT_DESTROY(cl);
- cl = clnt_tli_create(RPC_ANYFD, nconf, svcaddr,
- prog, vers, 0, 0, NULL, NULL, NULL);
- }
- }
- free(svcaddr->buf);
- free(svcaddr);
- return (cl);
-}
-
-/*
- * Generic client creation: returns client handle.
- * Default options are set, which the user can
- * change using the rpc equivalent of _ioctl()'s : clnt_control().
- * If fd is RPC_ANYFD, it will be opened using nconf.
- * It will be bound if not so.
- * If sizes are 0; appropriate defaults will be chosen.
- */
-CLIENT *
-clnt_tli_create(const SOCKET fd_in, const struct netconfig *nconf,
- struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers,
- const uint sendsz, const uint recvsz,
- int (*callback_xdr)(void *, void *),
- int (*callback_function)(void *, void *, void **),
- void *callback_args)
-{
- CLIENT *cl; /* client handle */
- bool_t madefd = FALSE; /* whether fd opened here */
- long servtype;
- BOOL one = TRUE;
- struct __rpc_sockinfo si;
- extern int __rpc_minfd;
- SOCKET fd = fd_in;
-
- if (fd == RPC_ANYFD) {
- if (nconf == NULL) {
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- return (NULL);
- }
-
- fd = __rpc_nconf2fd(nconf);
-
- if (fd == INVALID_SOCKET)
- goto err;
-#if 0
- if (fd < __rpc_minfd)
- fd = __rpc_raise_fd(fd);
-#endif
- madefd = TRUE;
- servtype = nconf->nc_semantics;
- bindresvport(fd, NULL);
- if (!__rpc_fd2sockinfo(fd, &si))
- goto err;
- } else {
- if (!__rpc_fd2sockinfo(fd, &si))
- goto err;
- servtype = __rpc_socktype2seman(si.si_socktype);
- if (servtype == -1) {
- rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
- return (NULL);
- }
- }
-
- if (si.si_af != ((struct sockaddr *)svcaddr->buf)->sa_family) {
- rpc_createerr.cf_stat = RPC_UNKNOWNHOST; /* XXX */
- goto err1;
- }
-
- switch (servtype) {
- case NC_TPI_COTS:
- cl = clnt_vc_create(fd, svcaddr, prog, vers, sendsz, recvsz,
- callback_xdr, callback_function, callback_args);
- break;
- case NC_TPI_COTS_ORD:
- if (nconf &&
- ((strcmp(nconf->nc_protofmly, "inet") == 0) ||
- (strcmp(nconf->nc_protofmly, "inet6") == 0))) {
- setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (const char *)&one,
- sizeof (one));
- }
- cl = clnt_vc_create(fd, svcaddr, prog, vers, sendsz, recvsz,
- callback_xdr, callback_function, callback_args);
- break;
- case NC_TPI_CLTS:
- cl = clnt_dg_create(fd, svcaddr, prog, vers, sendsz, recvsz);
- break;
- default:
- goto err;
- }
-
- if (cl == NULL)
- goto err1; /* borrow errors from clnt_dg/vc creates */
- if (nconf) {
- cl->cl_netid = strdup(nconf->nc_netid);
- cl->cl_tp = strdup(nconf->nc_device);
- } else {
- cl->cl_netid = "";
- cl->cl_tp = "";
- }
- if (madefd) {
- (void) CLNT_CONTROL(cl, CLSET_FD_CLOSE, NULL);
-/* (void) CLNT_CONTROL(cl, CLSET_POP_TIMOD, NULL); */
- };
-
- return (cl);
-
-err:
- rpc_createerr.cf_stat = RPC_SYSTEMERROR;
- rpc_createerr.cf_error.re_errno = errno;
-err1: if (madefd)
- (void)closesocket(fd);
- return (NULL);
-}
-
-#if 0 /* WINDOWS */
-/*
- * To avoid conflicts with the "magic" file descriptors (0, 1, and 2),
- * we try to not use them. The __rpc_raise_fd() routine will dup
- * a descriptor to a higher value. If we fail to do it, we continue
- * to use the old one (and hope for the best).
- */
-int __rpc_minfd = 3;
-
-int
-__rpc_raise_fd(int fd)
-{
- int nfd;
-
- if (fd >= __rpc_minfd)
- return (fd);
-
- if ((nfd = fcntl(fd, F_DUPFD, __rpc_minfd)) == -1)
- return (fd);
-
- if (fsync(nfd) == -1) {
- closesocket(nfd);
- return (fd);
- }
-
- if (closesocket(fd) == -1) {
- /* this is okay, we will syslog an error, then use the new fd */
- (void) syslog(LOG_ERR,
- "could not close() fd %d; mem & fd leak", fd);
- }
-
- return (nfd);
-}
+ * This library 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 Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ */
+
+#include
+//#include
+#include
+#include
+//#include
+#include
+//#include
+//#include
+//#include
+#include
+#include
+#include
+#include
+//#include
+//#include
+#include