1 #ifndef _IMAGEX_WIN32_H
2 #define _IMAGEX_WIN32_H
14 /* WARNING: this is a reduced functionality replacement */
16 win32_wglob(const wchar_t *pattern, int flags,
17 int (*errfunc)(const wchar_t *epath, int eerrno),
20 extern void globfree(glob_t *pglob);
22 #define GLOB_ERR 0x1 /* Return on read errors. */
23 #define GLOB_NOSORT 0x2 /* Don't sort the names. */
25 /* Error returns from `glob'. */
26 #define GLOB_NOSPACE 1 /* Ran out of memory. */
27 #define GLOB_ABORTED 2 /* Read error. */
28 #define GLOB_NOMATCH 3 /* No matches found. */
31 win32_acquire_capture_privileges(void);
34 win32_release_capture_privileges(void);
37 win32_acquire_restore_privileges(void);
40 win32_release_restore_privileges(void);
43 win32_mbs_to_wcs(const char *mbs, size_t mbs_nbytes, size_t *num_wchars_ret);
46 win32_wbasename(wchar_t *path);
49 set_fd_to_binary_mode(int fd);
53 #define optarg woptarg
54 #define optind woptind
55 #define opterr wopterr
56 #define optopt woptopt
57 #define option woption
59 #define getopt_long_only wgetopt_long_only
60 #define getopt_long wgetopt_long
61 #define getopt wgetopt