aboutsummaryrefslogtreecommitdiff
path: root/win32/mingw.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* win32: return an error when lseek is applied to a pipeRon Yorston2016-05-241-0/+14
| | | | | | | | | | | tail failed to process input from a pipe correctly: $ echo -n 54321 | tail -c 3 543 It was trying to use lseek as an optimisation but WIN32 lseek doesn't return an error whan applied to a pipe. Fix this by providing a wrapper for lseek.
* Silence a couple of compiler warningsRon Yorston2016-03-061-1/+2
|
* mingw: silently ignore O_NONBLOCK on file openRon Yorston2016-02-221-2/+1
|
* ln: enable in default configurationRon Yorston2015-10-191-0/+2
|
* win32: fix implementation of '%z' in strftimeRon Yorston2015-10-131-0/+27
| | | | | | | | Windows' strftime prints the name of the timezone rather than the timezone offset for '%z'. Add a hack to do it properly. Windows' strftime also uses its own version of the timezone name for '%Z'. A workaround for this is to set the TZ environment variable.
* win32: append '/' to bare drive name in opendirRon Yorston2015-09-301-0/+15
| | | | Make 'ls c:' and 'ls c:/*' do the right thing.
* win32: remove setitimer implementation and SIGALRM handlingRon Yorston2015-07-261-124/+0
| | | | | | | Commit 69f49ea imported a setitimer implementation from git. Since setitimer isn't used at all in BusyBox it can be removed. The same technique could be used to implement alarm but nothing in the WIN32 port uses that (yet).
* win32: silence some compiler warningsRon Yorston2015-07-151-1/+2
|
* mingw: fix conditions under which open(2) sets errno to EISDIRRon Yorston2015-05-291-1/+1
|
* mingw: buffer in do_stat_internal need not be staticRon Yorston2015-05-291-1/+1
|
* mingw: tidy up implementation of kill(2)Ron Yorston2015-05-291-1/+1
|
* mingw: provide fake getgroups and getgrouplistRon Yorston2015-05-181-0/+22
| | | | | This makes it possible to enable the id and groups applets, though the results they return are worthless.
* mingw: implement getpwnam (but only for current user)Ron Yorston2015-05-181-0/+12
| | | | This allows the shell to expand ~user.
* 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
|
* 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
* 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
* 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.
* MinGW: rename execable -> executableRon Yorston2014-05-061-1/+1
|
* Merge branch 'busybox' into mergeRon Yorston2014-05-061-2/+2
| | | | | | | Conflicts: debianutils/which.c editors/vi.c libbb/executable.c
* Move handling of Windows globbing out of upstream codeRon Yorston2014-04-211-0/+5
|
* Fix some compiler warningsRon Yorston2014-03-131-9/+9
|
* 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
|
* mingw: dummy implementation of times/sysconfRon Yorston2014-01-301-0/+19
|
* date: improve emulation of %e formatRon Yorston2014-01-211-15/+20
|
* win32: use strptime from gnulibRon Yorston2014-01-201-5/+0
|
* 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
|
* 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
|
* ash: set working directory and environment on first startupRon Yorston2012-04-261-1/+5
|
* win32: add pw_shell to struct passwdRon Yorston2012-04-231-0/+1
|
* win32: support fancy prompts and (limited) tilde expansionRon Yorston2012-04-231-1/+29
|
* strsep is in upstream BusyBox: no need for MINGW32 versionRon Yorston2012-04-181-18/+0
|
* Make fake fcntl(F_DUPFD) for WIN32Ron Yorston2012-04-031-12/+40
|
* Update mingw.c from latest git/compatRon Yorston2012-03-301-51/+64
|
* Use gnulib poll, importing the version from gitRon Yorston2012-03-301-69/+0
|
* win32: add strptime()Nguyễn Thái Ngọc Duy2010-09-101-0/+5
|
* win32: add utimes and fix utime(file,NULL)Nguyễn Thái Ngọc Duy2010-09-101-0/+41
|
* win32: Replace rename() (WHY?)Nguyễn Thái Ngọc Duy2010-09-101-0/+34
|
* win32: Replace getcwd() to return forward slashesNguyễn Thái Ngọc Duy2010-09-101-0/+13
|