X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=binutils%2Ffilemode.c;h=56a167bae53cf3ebdaa387365d1df6b5349f82e7;hb=4a1b91eabbe77f4d906a0895121d76a0653c3cf3;hp=6e87df02aeee69c03ff9b2651e7bbfdec0f59e94;hpb=2da42df615c0489291f8d3e1ce873642755a49c6;p=binutils-gdb.git diff --git a/binutils/filemode.c b/binutils/filemode.c index 6e87df02aee..56a167bae53 100644 --- a/binutils/filemode.c +++ b/binutils/filemode.c @@ -1,10 +1,9 @@ /* filemode.c -- make a string describing file modes - Copyright 1985, 1990, 1991, 1994, 1995, 1997, 2003 - Free Software Foundation, Inc. + Copyright (C) 1985-2018 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 - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -14,9 +13,10 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ +#include "sysdep.h" #include "bfd.h" #include "bucomm.h" @@ -59,18 +59,6 @@ static void setst (unsigned long, char *); otherwise. 'T' if the file is sticky but not executable. */ -#if 0 - -/* This is not used; only mode_string is used. */ - -void -filemodestring (struct stat *statp, char *str) -{ - mode_string ((unsigned long) statp->st_mode, str); -} - -#endif - /* Get definitions for the file permission bits. */ #ifndef S_IRWXU @@ -136,7 +124,7 @@ mode_string (unsigned long mode, char *str) 'd' for directories 'b' for block special files 'c' for character special files - 'm' for multiplexor files + 'm' for multiplexer files 'l' for symbolic links 's' for sockets 'p' for fifos