annotate liboctave/wrappers/strmode-wrapper.c @ 26376:00f796120a6d stable

maint: Update copyright dates in all source files.
author John W. Eaton <jwe@octave.org>
date Wed, 02 Jan 2019 16:32:43 -0500
parents 6652d3823428
children b442ec6dda5c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21901
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 /*
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
26376
00f796120a6d maint: Update copyright dates in all source files.
John W. Eaton <jwe@octave.org>
parents: 25054
diff changeset
3 Copyright (C) 2016-2019 John W. Eaton
21901
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 This file is part of Octave.
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
7 Octave is free software: you can redistribute it and/or modify it
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
8 under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
9 the Free Software Foundation, either version 3 of the License, or
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
10 (at your option) any later version.
21901
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
22755
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
12 Octave is distributed in the hope that it will be useful, but
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
13 WITHOUT ANY WARRANTY; without even the implied warranty of
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3a2b891d0b33 maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents: 22402
diff changeset
15 GNU General Public License for more details.
21901
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 23220
diff changeset
19 <https://www.gnu.org/licenses/>.
21901
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 */
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 // strmode may be provided by gnulib. We don't include gnulib headers
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 // directly in Octave's C++ source files to avoid problems that may be
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 // caused by the way that gnulib overrides standard library functions.
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 #if defined (HAVE_CONFIG_H)
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 # include "config.h"
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 #endif
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 #include "filemode.h"
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 #include "strmode-wrapper.h"
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 void
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 octave_strmode_wrapper (mode_t mode, char *buffer)
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 {
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 strmode (mode, buffer);
7338be52b892 hide gnulib filemode header
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 }