]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - hurd/xattr.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / hurd / xattr.c
index cf3e22d98231aa4b5fbae98071159cc1bac0c4ff..7f7c6ed6d0b81bfd548aa58f00fd95028cacb196 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for *xattr interfaces on GNU/Hurd.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,9 +13,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
 #include <hurd.h>
 #include <hurd/xattr.h>
@@ -30,7 +29,7 @@
    gnu.author          empty if st_author==st_uid
                        uid_t giving st_author value
    gnu.translator      empty if no passive translator
-                       translator and arguments: "/hurd/foo\0arg1\0arg2\0"
+                       translator and arguments: "/hurd/foo\0arg1\0arg2\0"
 */
 
 error_t
@@ -68,14 +67,14 @@ _hurd_xattr_get (io_t port, const char *name, void *value, size_t *size)
       if (value != NULL && *size < bufsz)
        {
          if (buf != value)
-           munmap (buf, bufsz);
+           __munmap (buf, bufsz);
          return -ERANGE;
        }
       if (buf != value && bufsz > 0)
        {
          if (value != NULL)
            memcpy (value, buf, bufsz);
-         munmap (buf, bufsz);
+         __munmap (buf, bufsz);
        }
       *size = bufsz;
       return 0;
@@ -151,7 +150,7 @@ _hurd_xattr_set (io_t port, const char *name, const void *value, size_t size,
            return err;
          if (bufsz > 0)
            {
-             munmap (buf, bufsz);
+             __munmap (buf, bufsz);
              return ENODATA;
            }
        }