2003-09-12 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / binutils / filemode.c
index 58b52ba748987794f9434c36fddf320d7b91a34c..ca00694fb7820e84468f8121b5f381e851a9d00c 100644 (file)
@@ -1,5 +1,6 @@
 /* filemode.c -- make a string describing file modes
-   Copyright (C) 1985, 90, 91, 94, 95, 1997 Free Software Foundation, Inc.
+   Copyright 1985, 1990, 1991, 1994, 1995, 1997
+   Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -56,7 +57,7 @@ static void setst PARAMS ((unsigned long, char *));
    9   'x' if any user may execute, 't' if the file is "sticky"
        (will be retained in swap space after execution), '-'
        otherwise.
-       'T' if the file is sticky but not executable. */
+       'T' if the file is sticky but not executable.  */
 
 #if 0
 
@@ -114,7 +115,7 @@ filemodestring (statp, str)
 #endif
 
 /* Like filemodestring, but only the relevant part of the `struct stat'
-   is given as an argument. */
+   is given as an argument.  */
 
 void
 mode_string (mode, str)
@@ -143,7 +144,7 @@ mode_string (mode, str)
    'l' for symbolic links
    's' for sockets
    'p' for fifos
-   '-' for any other file type. */
+   '-' for any other file type.  */
 
 #ifndef S_ISDIR
 #ifdef S_IFDIR
@@ -226,18 +227,18 @@ ftypelet (bits)
 }
 
 /* Set the 's' and 't' flags in file attributes string CHARS,
-   according to the file mode BITS. */
+   according to the file mode BITS.  */
 
 static void
 setst (bits, chars)
-     unsigned long bits;
-     char *chars;
+     unsigned long bits ATTRIBUTE_UNUSED;
+     char *chars ATTRIBUTE_UNUSED;
 {
 #ifdef S_ISUID
   if (bits & S_ISUID)
     {
       if (chars[3] != 'x')
-       /* Set-uid, but not executable by owner. */
+       /* Set-uid, but not executable by owner.  */
        chars[3] = 'S';
       else
        chars[3] = 's';
@@ -247,7 +248,7 @@ setst (bits, chars)
   if (bits & S_ISGID)
     {
       if (chars[6] != 'x')
-       /* Set-gid, but not executable by group. */
+       /* Set-gid, but not executable by group.  */
        chars[6] = 'S';
       else
        chars[6] = 's';
@@ -257,7 +258,7 @@ setst (bits, chars)
   if (bits & S_ISVTX)
     {
       if (chars[9] != 'x')
-       /* Sticky, but not executable by others. */
+       /* Sticky, but not executable by others.  */
        chars[9] = 'T';
       else
        chars[9] = 't';