2005-10-24 10:14:57 +00:00
|
|
|
/*
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
$Id: udf.c,v 1.13 2008/04/24 07:28:00 rocky Exp $
|
2005-10-24 10:14:57 +00:00
|
|
|
|
2008-04-18 16:02:09 +00:00
|
|
|
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
2005-10-24 10:14:57 +00:00
|
|
|
|
2008-04-18 16:02:09 +00:00
|
|
|
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 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
2005-10-24 10:14:57 +00:00
|
|
|
|
2008-04-18 16:02:09 +00:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
2005-10-24 10:14:57 +00:00
|
|
|
|
2008-04-18 16:02:09 +00:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2005-10-24 10:14:57 +00:00
|
|
|
*/
|
|
|
|
|
/* Access routines */
|
|
|
|
|
|
2005-10-27 01:23:48 +00:00
|
|
|
#include <cdio/bytesex.h>
|
2005-10-24 10:14:57 +00:00
|
|
|
#include "udf_private.h"
|
|
|
|
|
|
2005-10-27 01:23:48 +00:00
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
|
# include <string.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2005-10-30 05:43:01 +00:00
|
|
|
#ifdef HAVE_SYS_STAT_H
|
|
|
|
|
# include <sys/stat.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2005-10-27 11:18:56 +00:00
|
|
|
/** The below variables are trickery to force enum symbol values to be
|
|
|
|
|
recorded in debug symbol tables. They are used to allow one to refer
|
|
|
|
|
to the enumeration value names in the typedefs above in a debugger
|
|
|
|
|
and debugger expressions
|
|
|
|
|
*/
|
2006-04-17 03:32:38 +00:00
|
|
|
tag_id_t debug_tagid;
|
|
|
|
|
file_characteristics_t debug_file_characteristics;
|
|
|
|
|
icbtag_file_type_enum_t debug_icbtag_file_type_enum;
|
|
|
|
|
icbtag_flag_enum_t debug_flag_enum;
|
|
|
|
|
ecma_167_enum1_t debug_ecma_167_enum1;
|
|
|
|
|
ecma_167_timezone_enum_t debug_ecma_167_timezone_enum;
|
2006-04-11 00:26:54 +00:00
|
|
|
udf_enum1_t debug_udf_enum1;
|
2006-04-16 02:34:08 +00:00
|
|
|
|
2005-10-27 11:18:56 +00:00
|
|
|
|
2005-10-27 01:23:48 +00:00
|
|
|
/*!
|
2005-10-30 05:43:01 +00:00
|
|
|
Returns POSIX mode bitstring for a given file.
|
2005-10-27 01:23:48 +00:00
|
|
|
*/
|
2005-10-30 05:43:01 +00:00
|
|
|
mode_t
|
2005-11-01 03:14:49 +00:00
|
|
|
udf_get_posix_filemode(const udf_dirent_t *p_udf_dirent)
|
2005-10-27 01:23:48 +00:00
|
|
|
{
|
2005-10-30 05:43:01 +00:00
|
|
|
udf_file_entry_t udf_fe;
|
|
|
|
|
mode_t mode = 0;
|
2005-10-27 01:23:48 +00:00
|
|
|
|
2005-11-01 03:14:49 +00:00
|
|
|
if (udf_get_file_entry(p_udf_dirent, &udf_fe)) {
|
2005-10-30 05:43:01 +00:00
|
|
|
uint16_t i_flags;
|
|
|
|
|
uint32_t i_perms;
|
|
|
|
|
|
|
|
|
|
i_perms = uint32_from_le(udf_fe.permissions);
|
|
|
|
|
i_flags = uint16_from_le(udf_fe.icb_tag.flags);
|
|
|
|
|
|
|
|
|
|
if (i_perms & FE_PERM_U_READ) mode |= S_IRUSR;
|
|
|
|
|
if (i_perms & FE_PERM_U_WRITE) mode |= S_IWUSR;
|
|
|
|
|
if (i_perms & FE_PERM_U_EXEC) mode |= S_IXUSR;
|
|
|
|
|
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#ifdef S_IRGRP
|
2005-10-30 05:43:01 +00:00
|
|
|
if (i_perms & FE_PERM_G_READ) mode |= S_IRGRP;
|
|
|
|
|
if (i_perms & FE_PERM_G_WRITE) mode |= S_IWGRP;
|
|
|
|
|
if (i_perms & FE_PERM_G_EXEC) mode |= S_IXGRP;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#endif
|
2005-10-30 05:43:01 +00:00
|
|
|
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#ifdef S_IROTH
|
2005-10-30 05:43:01 +00:00
|
|
|
if (i_perms & FE_PERM_O_READ) mode |= S_IROTH;
|
|
|
|
|
if (i_perms & FE_PERM_O_WRITE) mode |= S_IWOTH;
|
|
|
|
|
if (i_perms & FE_PERM_O_EXEC) mode |= S_IXOTH;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#endif
|
2005-10-30 05:43:01 +00:00
|
|
|
|
|
|
|
|
switch (udf_fe.icb_tag.file_type) {
|
|
|
|
|
case ICBTAG_FILE_TYPE_DIRECTORY:
|
|
|
|
|
mode |= S_IFDIR;
|
|
|
|
|
break;
|
|
|
|
|
case ICBTAG_FILE_TYPE_REGULAR:
|
|
|
|
|
mode |= S_IFREG;
|
|
|
|
|
break;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#ifdef S_IFLNK
|
2005-10-30 05:43:01 +00:00
|
|
|
case ICBTAG_FILE_TYPE_SYMLINK:
|
|
|
|
|
mode |= S_IFLNK;
|
|
|
|
|
break;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#endif
|
2005-10-30 05:43:01 +00:00
|
|
|
case ICBTAG_FILE_TYPE_CHAR:
|
|
|
|
|
mode |= S_IFCHR;
|
|
|
|
|
break;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#ifdef S_IFSOCK
|
2005-10-30 05:43:01 +00:00
|
|
|
case ICBTAG_FILE_TYPE_SOCKET:
|
|
|
|
|
mode |= S_IFSOCK;
|
|
|
|
|
break;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#endif
|
2005-10-30 05:43:01 +00:00
|
|
|
case ICBTAG_FILE_TYPE_BLOCK:
|
|
|
|
|
mode |= S_IFBLK;
|
|
|
|
|
break;
|
|
|
|
|
default: ;
|
|
|
|
|
};
|
|
|
|
|
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#ifdef S_ISUID
|
2005-10-30 05:43:01 +00:00
|
|
|
if (i_flags & ICBTAG_FLAG_SETUID) mode |= S_ISUID;
|
|
|
|
|
if (i_flags & ICBTAG_FLAG_SETGID) mode |= S_ISGID;
|
|
|
|
|
if (i_flags & ICBTAG_FLAG_STICKY) mode |= S_ISVTX;
|
Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
(changes lib/udf/udf_time.c, configure.ac, config.h.in)
- The configure test for bitfield ordering uses AC_TRY_RUN and thus
doesn't work when cross-compiling; use sneakiness to try and
determine it at compile time, falling back to the existing runtime
check if the sneakiness doesn't work
(changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)
- The configure test for "extern long timezone" needlessly uses
AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
that latter works when cross-compiling
(changes configure.ac)
- MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
or S_IFSOCK, nor S_ISUID etc
(changes lib/udf/udf.c and lib/iso9660/xa.c)
- MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
of the Linux driver doesn't compile unless it's moved inside the
"ifdef HAVE_LINUX_CDROM"
(changes lib/driver/gnu_linux.c)
- Because the man pages cd-info.1 etc depend on the binaries themselves
(for help2man reasons), the configure options --without-cd-info etc
don't actually stop them being compiled. Fixed by only depending on
man pages for programs that are actually built, which also stops
the installation of man pages of programs which aren't themselves
installed
(changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
|
|
|
#endif
|
2005-10-30 05:43:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return mode;
|
|
|
|
|
|
2005-10-27 01:23:48 +00:00
|
|
|
}
|
|
|
|
|
|
2005-10-29 14:43:50 +00:00
|
|
|
/*!
|
2005-10-30 07:35:36 +00:00
|
|
|
Return the partition number of the the opened udf handle. -1
|
|
|
|
|
Is returned if we have an error.
|
2005-10-29 14:43:50 +00:00
|
|
|
*/
|
|
|
|
|
int16_t udf_get_part_number(const udf_t *p_udf)
|
|
|
|
|
{
|
|
|
|
|
if (!p_udf) return -1;
|
|
|
|
|
return p_udf->i_partition;
|
|
|
|
|
}
|
|
|
|
|
|