summaryrefslogtreecommitdiff
path: root/win32 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Changes to allow building with MinGW-w64Ron Yorston2015-01-051-0/+5
|
* Revert "Use putenv to implement unsetenv/clearenv"Ron Yorston2014-12-181-46/+11
| | | | This reverts commit fa147bd7ecb086f4fb9a4afea16b946693a822ce.
* date: add support for %s formatRon Yorston2014-12-021-3/+15
|
* Move definition of bb_got_signal to mingw.cRon Yorston2014-11-291-0/+2
| | | | | On POSIX platforms bb_got_signal is defined in libbb/signals.c; for MinGW put the definition in win32/mingw.c. This is better than the
* Use putenv to implement unsetenv/clearenvRon Yorston2014-11-231-11/+46
| | | | | | | | | | noexec applets failed on ReactOS 0.3.17. This was because the environment was being manipulated directly using the environ pointer. Implementing unsetenv and clearenv using putenv fixes the problem. WIN32 putenv doesn't allow environment variables to have empty values. This was the case before and it's still the case after this change. Shell variables are fine.
* mingw.c: ignore EACCES from mkdir if directory existsRon Yorston2014-10-091-1/+14
| | | | | | | | | | | Microsoft Windows has a strange issue with access permissions such that mkdir will sometimes return EACESS for an existing directory. This is mentioned here: http://www.apijunkie.com/APIJunkie/blog/post/2009/12/22/_mkdir-C-runtime-library-function-might-return-unexpected-error-values.aspx This was causing mkdir -p to fail on a particular machine. Ignoring the EACCES error if the directory exists fixes the problem.
* mingw.c: add missing break in fcntl implementationRon Yorston2014-10-091-0/+1
| | | | | | This may address: https://github.com/rmyorston/busybox-w32/issues/25
* win32: attempt to get filesystem type for mntentRon Yorston2014-10-061-1/+8
|
* stat: give directories write and execute permissionsRon Yorston2014-08-161-1/+1
| | | | | | Microsoft Windows ignores the read-only attribute on directories and has no equivalent to the Unix execute permission on directories. Treat all directories as writable and searchable.
* Tidy up mingw_popenRon Yorston2014-05-151-59/+47
| | | | This also fixes piping output to a command in awk.
* MinGW: rename execable -> executableRon Yorston2014-05-061-1/+1
|
* Merge branch 'busybox' into mergeRon Yorston2014-05-062-5/+5
| | | | | | | Conflicts: debianutils/which.c editors/vi.c libbb/executable.c
* Move handling of Windows globbing out of upstream codeRon Yorston2014-04-211-0/+5
|
* Implement escape sequence for cursor downRon Yorston2014-04-091-21/+12
|
* Implement ANSI escape sequences for cursor up/forwardRon Yorston2014-04-071-0/+30
| | | | | These escape sequences are required for proper handling of line editing when the input exceeds the console width.
* Only change codepage of input character if top bit is setRon Yorston2014-03-241-2/+4
| | | | | | It seems that passing control characters through OemToCharBuff is not a good idea: some of them end up in the top half of the codepage.
* procps_scan: ensure command name is null terminatedRon Yorston2014-03-231-1/+1
|
* Add empty sys/syscall.hRon Yorston2014-03-201-0/+0
|
* Implement vprintf replacementRon Yorston2014-03-201-1/+2
|
* Implement getc replacementRon Yorston2014-03-201-0/+24
|
* Implement read replacement to handle OEM codepagesRon Yorston2014-03-201-0/+26
|
* Fixes to write replacementRon Yorston2014-03-201-2/+2
|
* Implement write replacement to handle OEM codepagesRon Yorston2014-03-201-1/+75
|
* Implement puts replacement to handle OEM codepagesRon Yorston2014-03-191-4/+24
|
* Use OEM codepage for console I/ORon Yorston2014-03-192-4/+83
| | | | | | | | | | Windows console applications use different codepages for console I/O and the rest of the API: http://msdn.microsoft.com/en-us/goglobal/bb688114.aspx#E2F Attempt to workaround this by converting characters when they're read from and written to the console. Not all possible paths are handled.
* Drop CONFIG_WIN32_NET settingRon Yorston2014-03-172-11/+1
|
* Fix some compiler warningsRon Yorston2014-03-135-13/+15
|
* Allow utimes to change times on directoriesRon Yorston2014-03-131-8/+21
|
* Remove unused mingw_utime; update utimes to handle read-only filesRon Yorston2014-03-121-41/+20
|
* Import mempcpy from gnulibRon Yorston2014-03-112-0/+27
|
* mingw: dummy implementation of times/sysconfRon Yorston2014-01-301-0/+19
|
* win32: use emulated localtime_r in strptimeRon Yorston2014-01-211-3/+1
|
* date: improve emulation of %e formatRon Yorston2014-01-211-15/+20
|
* win32: use strptime from gnulibRon Yorston2014-01-203-5/+649
|
* date: add dummy stimeRon Yorston2014-01-191-0/+6
|
* date: emulate %e formatRon Yorston2014-01-191-0/+31
|
* Implement POSIX-compliant mktemp for WIN32Ron Yorston2014-01-071-0/+14
|
* Revise mingw_stat to minimise changes from upstream BusyBoxRon Yorston2014-01-071-8/+34
|
* Make dummy resource.hRon Yorston2014-01-061-0/+0
|
* Extend WIN32 statfs to include type, fsid and namelenRon Yorston2014-01-063-20/+57
|
* Make dummy paths.hRon Yorston2014-01-051-0/+0
|
* Move mingw32 poll.h from sysRon Yorston2014-01-022-1/+1
|
* df: limited implementation for WIN32Ron Yorston2013-04-035-0/+147
|
* winansi: skip DECTCEM sequence to avoid ugliness in viRon Yorston2012-10-101-0/+7
|
* Revised quoting of command line arguments for WIN32Ron Yorston2012-10-051-7/+7
| | | | | | | | | | | | | | | | * We only need to quote an argument if it contains whitespace. * There's no point in quoting ? or * because Windows still expands them. Anyhow, if the command line comes from a BusyBox shell it will usually have handled the globbing, so we should turn off Windows globbing for any wildcard that has made it through the shell without expansion. This means that BusyBox commands run from cmd.exe won't do wildcard expansion, though. * Backslashes only need to be doubled if they occur immediately before double quotes. * Double quotes need to be escaped with a backslash.
* mingw32: fix off-by-one errors in spawn routinesRon Yorston2012-05-101-2/+2
| | | | | | | | | | | There are two changes here. The first, in mingw_spawn_1, removes a post-increment of argv which should have no effect. The second, in mingw_spawn, should fix a reported problem with xargs: https://github.com/pclouds/busybox-w32/issues/19 Basically, 'find . -type f | xargs md5sum' was failing to process the first file.
* Use win32_execable_file() in test, which and execable.cRon Yorston2012-05-091-0/+32
|
* mingw32: make access(2) check file format for executablesRon Yorston2012-05-091-1/+69
|
* mingw32: make system return wait status, not exit codeRon Yorston2012-05-041-1/+1
|
* mingw32: allow whitespace after '#!' in shell scriptsRon Yorston2012-05-031-1/+9
|