aboutsummaryrefslogtreecommitdiff
path: root/win32/Kbuild (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: import dirname(3) from mingw-w64Ron Yorston2024-01-301-0/+1
| | | | | | | | | | | | | The mingw-w64 project has updated its implementation of dirname(3). In some circumstances the new version doesn't preserve the type of the user-supplied top-level directory separator. As a result of this the dirname-handles-root test case failed. Import the new implementation and tweak it to preserve the type of the separator. This only affects mingw-w64 versions 12 and above. Currently only the aarch64 build using llvm-mingw is affected.
* sort: add support for sorting version stringsRon Yorston2023-10-011-0/+1
| | | | | | | | | | | Add an implementation of strverscmp from musl so that the 'sort -V' option works. Add '-V' to the trivial usage message. Costs 248-256 bytes. (GitHub issue #370)
* make: fix POSIX buildRon Yorston2023-08-241-2/+1
| | | | | | | | If upstream BusyBox had a 'make' applet a native build with it enabled should match the corresponding build from the busybox-w32 source. Make it so.
* make: allow building as pdpmake onlyRon Yorston2023-01-241-0/+1
| | | | | | | | | Commit f261d2d27 (make: make + sh configuration) added 'pdpmake' as an alias for 'make'. It should have been possible to include 'pdpmake' in a build without also including 'make'. Adjust the build configuration so this works as intended.
* make: new appletRon Yorston2022-08-011-0/+1
| | | | | | | | | This is an experimental implementation of make for busybox-w32, based on my public domain POSIX make: https://frippery.org/make/ (GitHub issue #44)
* win32: don't affect POSIX buildRon Yorston2021-09-171-1/+1
|
* win32: changes to allow timezones in datesRon Yorston2021-09-171-0/+1
| | | | | | | | | | | | | | Create mingw_strptime() to return timezone offset as a separate argument (since Microsoft's struct tm doesn't have the required member). Import timegm() from musl. Update parse_datestr() to use mingw_strptime(). Enable FEATURE_TIMEZONE in the default configuration. GitHub issue #230.
* win32: code shrink character class detectionRon Yorston2021-08-091-0/+1
| | | | | | | Add a routine to detect the names of character classes. Use it in fnmatch(3) and regcomp(3), replacing local code in the former. Saves 216 bytes.
* win32: add local dirent implementationRon Yorston2021-06-131-0/+1
| | | | | | | | | | | | Add a cut down version of the dirent implementation from git. The git developers said: The mingw-runtime implemenation of opendir, readdir and closedir sets errno to 0 on success, something that POSIX explicitly forbids. This also avoids having to link against libssp.a (commit 13eb34205) and reduces the size of the binary by 2KB.
* win32: import strndup from gnulibRon Yorston2020-07-091-0/+1
|
* win32: allow use of shell's PRNG for /dev/urandomRon Yorston2018-03-221-5/+6
| | | | | | Allow either ISAAC or the shell's built-in pseudo-random number generator to be used for /dev/urandom. The latter is smaller so it's the default.
* win32: make /dev/urandom more randomRon Yorston2018-02-231-0/+1
|
* win32: import fsync(2) implementation from gnulibRon Yorston2018-02-211-0/+1
|
* win32: remove implementation of mempcpyRon Yorston2017-08-231-1/+0
| | | | | mingw-w64 has its own mempcpy. And even if it didn't upstream BusyBox has one too. So we definitely don't need our own.
* mingw: enable support for IPv6Ron Yorston2015-07-151-0/+1
| | | | Import inet_pton from gnulib and enable IPv6 support by default.
* mingw: import select from gnulibRon Yorston2015-04-221-0/+1
| | | | | | | | | | | | 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.
* Drop CONFIG_WIN32_NET settingRon Yorston2014-03-171-1/+1
|
* Import mempcpy from gnulibRon Yorston2014-03-111-0/+1
|
* win32: use strptime from gnulibRon Yorston2014-01-201-0/+1
|
* df: limited implementation for WIN32Ron Yorston2013-04-031-0/+2
|
* mingw32: add system.c to KbuildRon Yorston2012-05-011-0/+1
|
* win32: implement ioctlRon Yorston2012-04-231-0/+1
|
* win32: add popen implementation that uses shellRon Yorston2012-04-231-0/+1
|
* Use gnulib poll, importing the version from gitRon Yorston2012-03-301-0/+1
|
* Implementation of uname for WIN32Ron Yorston2012-02-091-0/+1
|
* win32: implement inet_aton()Nguyễn Thái Ngọc Duy2010-09-201-0/+1
|
* win32: add termios stub so that it buildsNguyễn Thái Ngọc Duy2010-09-101-0/+1
|
* win32: Support certain ANSI sequences on cmd.exeNguyễn Thái Ngọc Duy2010-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Support sequences are mostly color ones. This was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository. Changes from original version: > diff --git a/home/pclouds/w/git/compat/winansi.c b/tmp/winansi2.c > index 44dc293..e2e7010 100644 > --- a/home/pclouds/w/git/compat/winansi.c > +++ b/tmp/winansi2.c > @@ -2,8 +2,9 @@ > * Copyright 2008 Peter Harris <git@peter.is-a-geek.org> > */ > > +#include "libbb.h" > #include <windows.h> > -#include "../git-compat-util.h" > +#undef PACKED > > /* > Functions to be wrapped:
* win32: Import regex sourceNguyễn Thái Ngọc Duy2010-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | | These were extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository. Changes from the original version: > diff --git a/tmp/regex.c b/win32/regex.c > index 87b33e4..2cca169 100644 > --- a/tmp/regex.c > +++ b/win32/regex.c > @@ -24,7 +24,9 @@ > #pragma alloca > #endif > > +#ifndef _GNU_SOURCE > #define _GNU_SOURCE > +#endif > > /* We need this for `regex.h', and perhaps for the Emacs include files. */ > #include <sys/types.h>
* win32: add getenv(), setenv(), unsetenv() and clearenv()Nguyễn Thái Ngọc Duy2010-09-101-0/+1
| | | | clearenv() is not supported yet.
* win32: add waitpid()Nguyễn Thái Ngọc Duy2010-09-101-0/+1
|
* win32: set binary I/O mode by defaultNguyễn Thái Ngọc Duy2010-09-101-0/+1
| | | | | | | | | Text mode is default on Windows, which is just bad. This file also hosts many functions that were extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository, under directory compat. Some functions are modified/added by me, but usually credits go to Git developers.
* win32: Import fnmatch sourceNguyễn Thái Ngọc Duy2010-09-101-0/+7
This was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository.