search for: flac_chmod

Displaying 6 results from an estimated 6 matches for "flac_chmod".

2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...L +#include <fcntl.h> +#else #include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */ #include <utime.h> /* for utime() */ #endif +#endif #if defined _MSC_VER # if _MSC_VER >= 1800 @@ -160,11 +164,15 @@ #define flac_fopen fopen #define flac_chmod chmod -#define flac_utime utime #define flac_unlink unlink #define flac_rename rename #define flac_stat stat +#if _POSIX_C_SOURCE >= 200809L +#define flac_utime(a, b) utimensat (AT_FDCWD, a, *b, 0) +#else +#define flac_utime utime +#endif #endif #ifdef _WIN32 diff --git a/src/libFLAC/me...
2013 Mar 19
2
Patch to add Unicode filename support for win32 flac
On 18.3.2013 12:25, Erik de Castro Lopo wrote: > JonY wrote: > >> Before anyone does anything, see __wgetmainargs >> <http://msdn.microsoft.com/en-us/library/ff770599.aspx>. >> >> It can expand wildcards. Since it already provides argc/argv/env, it is >> more a less a drop-in replacement for the main() arguments. > +1 > > Erik Alright, here's
2013 Mar 19
0
Patch to add Unicode filename support for win32 flac
...efine flac_stat _stat64_utf8 ... I leave this up for Erik to decide, though I would have preferred not using rename macros at all. Not sure if these were intended: +#include <sys/stat.h> /* for flac_stat() */ +#include <sys/utime.h> /* for flac_utime() */ +#include <io.h> /* for flac_chmod() */ As for calling __wgetmainargs, I have some concerns about the security implications: LoadLibrary("msvcrt.dll") <- Which msvcrt? Theoretical security exploit. I think it is best to link it directly, please use the following prototype and call it directly: =======================...
2016 Jan 09
0
Lets do a 1.3.2 release
...eam_decoder.release.o): In function `init_file_internal_': flac/src/libFLAC/stream_decoder.c:609: undefined reference to `fopen_utf8' flac/src/libFLAC/stream_decoder.c:609: undefined reference to `fopen_utf8' include/share/compat.h, #ifdef _WIN32: #define flac_fopen fopen_utf8 #define flac_chmod chmod_utf8 #define flac_utime utime_utf8 #define flac_unlink unlink_utf8 #define flac_rename rename_utf8 #define flac_stat _stat64_utf8 The members of the libFLAC API that result in calls to these functions include FLAC__stream_decoder_init_file, FLAC__stream_decoder_init_ogg_file, and a variety o...
2013 Mar 19
3
Patch to add Unicode filename support for win32 flac
...way. Only few #ifdefs instead of wrapper functions filled with them that do essentially nothing on *nix. > > Not sure if these were intended: > +#include <sys/stat.h> /* for flac_stat() */ > +#include <sys/utime.h> /* for flac_utime() */ > +#include <io.h> /* for flac_chmod() */ Nope. Bug from mass replace. > > As for calling __wgetmainargs, I have some concerns about the security > implications: > LoadLibrary("msvcrt.dll") <- Which msvcrt? Theoretical security exploit. There is msvcrt.dll in the System32 dir in all supported Windows syste...
2016 Jan 09
3
Lets do a 1.3.2 release
lvqcl wrote: >>> Win_utf8 stuff should not be included in libflac since it's only to be >>> used by the flac.exe frontend. It is not needed by other programs nor >>> would they benefit from it without doing the extra work of converting >>> their ansi filenames and functions to utf-8. >>> >>>> Version 2 of my patch attached, which fixes