227{
228 const char file[] =
"file\xc4\x99\xc5\x9b\xc4\x87.a";
229 const char dir[] =
"dir\xc4\x99\xc5\x9b\xc4\x87";
231 const WCHAR dirW[] =
L"dir\x0119\x015b\x0107";
232
233 char file2[32],
buf[256], *
p, *
q, *
env[2];
236 struct _finddata64_t fdata64;
238 WCHAR bufW[256], *pW;
242
244 {
246 return;
247 }
248
251 {
252 skip(
"can't create test environment\n");
253 return;
254 }
256
259
261 ok(
p ==
buf,
"_getcwd returned %p, errno %d\n",
p,
errno);
265
267 ok(
p ==
buf,
"_getdcwd returned %p, errno %d\n",
p,
errno);
271
273 ok(
p ==
buf,
"_fulpath returned %p, errno %d\n",
p,
errno);
277
279 ok(!!
f,
"fopen returned %d, error %d\n",
ret,
errno);
281
284
287
290
294 ok(
p == file2,
"_mktemp returned %p, file2 %p, errno %d\n",
p, file2,
errno);
298 ok(!!
f,
"fopen returned %d, error %d\n",
ret,
errno);
300
304 ok(
p ==
buf,
"_mktemp returned %p, buf %p, errno %d\n",
p,
buf,
errno);
307
313
316 fdata32.name[0] = 'x';
318 ok(hfind != -1,
"_findfirst32 returned %Id, errno %d\n", hfind,
errno);
320
321 fdata32.name[0] = 'x';
327
328
331 fdata64.name[0] = 'x';
333 ok(hfind != -1,
"_findfirst64 returned %Id, errno %d\n", hfind,
errno);
335
336 fdata64.name[0] = 'x';
342
345 fdata64i32.name[0] = 'x';
347 ok(hfind != -1,
"_findfirst64i32 returned %Id, errno %d\n", hfind,
errno);
349
350 fdata64i32.name[0] = 'x';
352 ok(!
ret,
"_findnext64i32 returned %d, errno %d\n",
ret,
errno);
356
359
365
368
371
374
376 ok(!!
p,
"_tempnam returned NULL, error %d\n",
errno);
382
383
385 {
386
390
395
397 ok(!pW,
"environment variable name was converted\n");
398 bufW[0] = 0;
406
411
417
418 wcscpy(bufW,
L"__wine_env_test=");
427 }
428
434 ok(hproc != -1,
"_spawnl returned %Id, errno %d\n", hproc,
errno);
437
439}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
_Check_return_ _CRTIMP int __cdecl _getdrive(void)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _wrmdir(_In_z_ const wchar_t *_Path)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getdcwd(_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _chdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP int __cdecl _mkdir(_In_z_ const char *_Path)
static LPCWSTR LPCWSTR LPCWSTR env
#define GetEnvironmentVariableW(x, y, z)
static const WCHAR fileW[]
int __cdecl _findnext64i32(intptr_t const handle, _finddata64i32_t *const result)
intptr_t __cdecl _findfirst64i32(char const *const pattern, _finddata64i32_t *const result)
intptr_t __cdecl _findfirst64(char const *const pattern, __finddata64_t *const result)
int __cdecl _findnext64(intptr_t const handle, __finddata64_t *const result)
GLdouble GLdouble GLdouble GLdouble q
GLenum GLuint GLenum GLsizei const GLchar * buf
GLuint GLint GLboolean GLint GLenum access
_Check_return_ _CRTIMP char *__cdecl _fullpath(_Out_writes_opt_z_(_SizeInBytes) char *_FullPath, _In_z_ const char *_Path, _In_ size_t _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _wputenv(_In_z_ const wchar_t *_EnvString)
_Check_return_ _CRTIMP wchar_t *__cdecl _wgetenv(_In_z_ const wchar_t *_VarName)
_Check_return_ _CRTIMP int __cdecl _putenv(_In_z_ const char *_EnvString)
_CRTIMP void __cdecl _searchenv(_In_z_ const char *_Filename, _In_z_ const char *_EnvVar, _Pre_notnull_ _Post_z_ char *_ResultPath)
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
errno_t __cdecl _mktemp_s(char *const template_string, size_t const buffer_size_in_chars)
_Check_return_ _CRTIMP int __cdecl _wunlink(_In_z_ const wchar_t *_Filename)
_Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char *_Filename, _In_ int _Mode)
_Check_return_ _CRTIMP char *__cdecl _mktemp(_Inout_z_ char *_TemplateName)
_Check_return_ _CRTIMP int __cdecl _findnext32(_In_ intptr_t _FindHandle, _Out_ struct _finddata32_t *_FindData)
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32(_In_z_ const char *_Filename, _Out_ struct _finddata32_t *_FindData)
_Check_return_opt_ _CRTIMP int __cdecl _findclose(_In_ intptr_t _FindHandle)
_CRTIMP intptr_t __cdecl _spawnle(_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
#define wait_child_process
static char argv0[MAX_PATH]
DWORD WINAPI GetLastError(void)