annotate lib/filemode.h @ 12518:b5e42ef33b49

update nearly all FSF copyright year lists to include 2009 The files named by the following are exempted: grep -v '^#' config/srclist.txt|grep -v '^$' \ | while read src dst; do test -f "$dst" && { echo "$dst"; continue; } test -d "$dst" || continue echo "$dst"/$(basename "$src") done > exempt git ls-files tests/unictype >> exempt In the remaining files, convert to all-interval notation if - there is already at least one year interval like 2000-2003 - the file is maintained by me - the file is in lib/uni*/, where that style already prevails Otherwise, use update-copyright's default.
author Jim Meyering <meyering@redhat.com>
date Mon, 28 Dec 2009 10:50:36 +0100
parents bbbbbf4cd1c5
children c2cbabec01dd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
1 /* Make a string describing file modes.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
2
12518
b5e42ef33b49 update nearly all FSF copyright year lists to include 2009
Jim Meyering <meyering@redhat.com>
parents: 9309
diff changeset
3 Copyright (C) 1998-1999, 2003, 2006, 2009 Free Software Foundation, Inc.
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
4
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7463
diff changeset
5 This program is free software: you can redistribute it and/or modify
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
6 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7463
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7463
diff changeset
8 (at your option) any later version.
1816
6dfbec8a5a2d <config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering <jim@meyering.net>
parents: 1481
diff changeset
9
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
10 This program is distributed in the hope that it will be useful,
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
13 GNU General Public License for more details.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
14
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
15 You should have received a copy of the GNU General Public License
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7463
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
17
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1816
diff changeset
18 #ifndef FILEMODE_H_
1816
6dfbec8a5a2d <config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering <jim@meyering.net>
parents: 1481
diff changeset
19
6dfbec8a5a2d <config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering <jim@meyering.net>
parents: 1481
diff changeset
20 # include <sys/types.h>
6912
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
21 # include <sys/stat.h>
1481
38288e14e209 (PARAMS): Define and use.
Jim Meyering <jim@meyering.net>
parents: 1471
diff changeset
22
6912
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
23 # if HAVE_DECL_STRMODE
7463
e73dc8933779 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
Paul Eggert <eggert@cs.ucla.edu>
parents: 6912
diff changeset
24 # include <string.h> /* FreeBSD, OpenBSD */
e73dc8933779 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
Paul Eggert <eggert@cs.ucla.edu>
parents: 6912
diff changeset
25 # include <unistd.h> /* NetBSD */
6912
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
26 # else
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
27 void strmode (mode_t mode, char *str);
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
28 # endif
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
29
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
30 void filemodestring (struct stat const *statp, char *str);
1816
6dfbec8a5a2d <config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering <jim@meyering.net>
parents: 1481
diff changeset
31
6dfbec8a5a2d <config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering <jim@meyering.net>
parents: 1481
diff changeset
32 #endif