2 Unix SMB/CIFS implementation.
3 Samba utility functions
4 Copyright (C) Ralph Boehme 2019
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "MacExtensions.h"
22 #include "util_macstreams.h"
24 /* Yes, I have considered multibyte */
27 bool is_afpinfo_stream(const char *sname
)
35 cmp
= strncasecmp(sname
,
37 strlen(AFPINFO_STREAM_NAME
));
44 bool is_afpresource_stream(const char *sname
)
52 cmp
= strncasecmp(sname
,
53 AFPRESOURCE_STREAM_NAME
,
54 strlen(AFPRESOURCE_STREAM_NAME
));
62 * Test whether stream is an Apple stream.
64 bool is_apple_stream(const char *sname
)
66 if (is_afpinfo_stream(sname
)) {
69 if (is_afpresource_stream(sname
)) {