summaryrefslogtreecommitdiff
path: root/win32 (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mingw: implement getpwnam (but only for current user)Ron Yorston2015-05-181-0/+12
| | | | This allows the shell to expand ~user.
* mingw: import select from gnulibRon Yorston2015-04-222-0/+574
| | | | | | | | | | | | There are two changes from gnulib: Treat a broken pipe as readable. If nc doesn't try to read from the pipe it'll never find out it's broken. Only allow console key press events to indicate that stdin is readable. read_key leaves a key release event in the buffer at the end of a shell command. This caused nc to block, thinking that the console had input available.
* mingw: additional networking supportRon Yorston2015-04-221-0/+47
|
* mingw: remove unused code from read_keyRon Yorston2015-04-221-5/+0
|
* Allow globbing to be enabled with mingw64Ron Yorston2015-04-121-6/+15
| | | | | | | | | | mingw64 handles globbing differently from mingw32. Add code to allow globbing to be enabled. (By default mingw64 has globbing disabled, though the default can be changed when it's compiled.) Also change the configuration option from ENABLE_NOGLOB to ENABLE_GLOBBING, because double negatives make me think too much. The default is still for globbing to be disabled.
* mingw: changes to handling of directory permissionsRon Yorston2015-03-251-0/+21
| | | | | | | | | The read-only attribute on a directory in Microsoft Windows is quite different from write permission in POSIX. Modify rmdir(2) and chmod(2) to provide more POSIX-like behaviour: rmdir will remove a directory even if it's read-only chmod won't make a directory read-only
* test: fix access check bug; tweak fake file modeRon Yorston2015-03-241-0/+3
| | | | | | | | | | | Changing the fake uid from 0 to 1000 uncovered a problem with file access checks in test. Previously the tests were short-circuited because it thought we were root. With a non-root user the tests were performed, but the mode bits had been redefined for WIN32. Also adjust the fake file mode returned by stat so that the user and group modes are identical. Other users have the same modes as user but without write permission.
* Enable logname in mingw32 configurationRon Yorston2015-02-271-0/+17
|
* Make uid/gid handling more consistentRon Yorston2015-02-261-14/+51
| | | | | | | | Various fake POSIX routines returned different values for uid/gid: getuid/getgid used 1, stat used 0 and getpwuid used 1000. Standardise on 1000. Also, add fake getgrgid.
* 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
|