aboutsummaryrefslogtreecommitdiff
path: root/configs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update default configurationRon Yorston2021-07-242-4/+4
| | | | | | | | | | Disable ASH_OPTIMIZE_FOR_SIZE to pick up the ${v//pattern/repl} speed up.
* | Update default configurationRon Yorston2021-07-172-4/+4
| |
* | mingw: don't include unwind tables in 64-bit buildRon Yorston2021-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | It seems that mingw-w64 no longer requires unwind tables in the 64-bit build, resulting in a significant reduction in the size of the binary. The flags for unwind tables were added in commit 535ec990c (mingw: include unwind tables in 64-bit build by default). Removing them means that the only difference between the 32- and 64-bit config files is the compiler prefix.
* | sync: enable in default configurationRon Yorston2021-06-072-2/+2
| | | | | | | | | | Enable the sync applet by default. It doesn't actually do anything useful but at least it prevents some scripts from failing.
* | win32: update default configurationRon Yorston2021-05-142-6/+12
| |
* | win32: add uptime to sysinfo(2), enable uptime appletRon Yorston2021-02-192-2/+2
| | | | | | | | | | | | | | | | | | | | Fill the uptime member of the sysinfo structure. With this change we can: - use sysinfo(2) in the 'ps' applet; - enable the 'uptime' applet (though without useful support for load averages).
* | free: implement sysinfo(2) and enable free(1)Ron Yorston2021-02-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This is an experimental implementation of sysinfo(2)/free(1). It uses the WIN32 API GlobalMemoryStatusEx() to obtain information about memory. It seems that the 'total pagefile' value includes total RAM as well as pagefile and 'available pagefile' includes available RAM. So the RAM values are deducted. I've no idea what corresponds to Linux buffers and cache.
* | nproc: port to WIN32 and enable by defaultRon Yorston2021-02-172-4/+4
| | | | | | | | | | | | Use the WIN32 API GetProcessAffinityMask() to obtain the number of processors configured and the number available to the current process. This only works for up to 64 processors.
* | bc: fix to build on WIN32 and enable in default configurationsRon Yorston2021-02-132-12/+12
| |
* | win32: make readlink(2) implementation unconditionalRon Yorston2021-02-122-2/+0
| | | | | | | | | | | | | | There doesn't seem to be much advantage in having readlink(2) as a configuration option. Making it unconditional reduces divergence from upstream and allows the removal of a check for ENOSYS that's been in busybox-w32 since the start.
* | winansi: more accurate colour mappingRon Yorston2021-02-072-2/+4
| | | | | | | | | | | | Use a more accurate technique to map RGB colours to standard Windows console colours. Since this costs 648 bytes it's configurable but is enabled by default.
* | winansi: change default 'skip ANSI emulation' settingRon Yorston2021-02-032-2/+4
| | | | | | | | | | | | | | | | | | Change the default 'skip ANSI emulation' setting which is used when the environment variable BB_SKIP_ANSI_EMULATION is unset. Previously it was 0 (always emulate) now it's 2 (detect whether or not the terminal supports ANSI escape sequences and behave accordingly). The default value is also now a build-time option.
* | Merge branch 'busybox' into mergeRon Yorston2021-01-142-4/+12
|\|
* | win32: update default configurationRon Yorston2020-11-122-4/+2
| |
* | win32: update default configurationRon Yorston2020-08-232-2/+10
| |
* | Merge branch 'busybox' into mergeRon Yorston2020-08-238-8/+0
|\|
| * build system: drop PLATFORM_LINUXRon Yorston2020-08-136-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PLATFORM_LINUX is a hidden configuration option which is disabled by default and enabled at over a hundred locations for features that are deemed to be Linux specific. The only effect of PLATFORM_LINUX is to control compilation of libbb/match_fstype.c. This file is only needed by mount and umount. Remove all references to PLATFORM_LINUX and compile match_fstype.c if mount or umount is enabled. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | install: enable in default buildRon Yorston2020-08-032-10/+14
| | | | | | | | | | Attempting to set file ownership and permissions may not work exactly as on *NIX.
* | chattr, lsattr: enable in the default configurationRon Yorston2020-07-092-6/+6
| | | | | | | | | | | | | | | | | | | | The chattr and lsattr utilities allow file attributes to be changed and displayed. Modify them to support Windows file attributes using the same names as Cygwin. Only allow a limited subset of attributes to be changed: just most of those supported by SetFileAttributes(). Since it isn't possible to set all attributes the '=' operator isn't allowed.
* | win32: enable globbing by defaultRon Yorston2020-06-142-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change how busybox.exe expands wildcards on the command line. When globbing is enabled at compile time provide an implementation of _setargv(), which is run early during startup of C programs. This: - enables globbing by setting _dowildcard to -1 - checks for the presence of the environment BB_GLOBBING - if it exists and is set to 0 disables globbing - if it doesn't exist sets BB_GLOBBING=0 but continues to apply Windows' globbing in the current process The consequences of this are: - When busybox.exe is initially run from a Command Prompt Windows' globbing is applied; - Windows' globbing is turned off for future child processes, thus allowing the shell re-execute busybox.exe without it interfering with wildcards; - this behaviour can be overridden by setting BB_GLOBBING explicitly. Globbing can still be disabled at compile time if required. In that case BB_GLOBBING has no effect. With these changes globbing can be enabled by default and BusyBox will do the right thing in most circumstances. (See GitHub issues #172 and #189.)
* | Merge branch 'busybox' into mergeFRP-3466-g53c09d0e1Ron Yorston2020-05-292-2/+4
|\|
* | vi: enable regex search in default buildRon Yorston2020-05-282-4/+4
| |
* | inotifyd: WIN32 portRon Yorston2020-04-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Use ReadDirectoryChangesW to implement inotifyd for WIN32. There are limitations: - It's only possible to watch directories, not files. - The notification doesn't distinguish between different changes to file state. All changes other than creation, deletion and renaming are reported as 'c'.
* | httpd: don't change directory in inetd modeRon Yorston2020-04-072-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the WIN32 port inetd mode is used in the same way as in NOMMU to process each new connection. However, it shares a problem with NOMMU mode upstream: the child process changes directory unnecessarily. Thus, 'httpd -fvvvp 8080 -h www' fails with errors: httpd: can't change directory to 'www': No such file or directory Fix this in the WIN32 port by not changing directory in inetd mode. The behaviour of inetd mode is now quite unlike upstream so the option have been changed to '-I' and removed from the help message. Since the -e/-d options appear in the help message unconditionally FEATURE_HTTPD_ENCODE_URL_STR has been enabled.
* | time: WIN32 portRon Yorston2020-04-062-4/+4
| | | | | | | | | | | | | | | | Port the time applet to WIN32. This requires the implemntation of a replacement for wait3(2). Only elapsed, user and system times are supported, not the memory and i/o statistics reported by GNU time.
* | httpd: enable in default configurationsRon Yorston2020-04-052-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the httpd applet in WIN32 default configurations. Some additional features have also been enabled: 'Ranges:' header Basic HTTP authentication Custom error pages GZIP content encoding Common Gateway Interface (CGI) and related features are not enabled. Basic HTTP authentication requires bb_simplify_abs_path_inplace(). This function shouldn't be used for WIN32 paths. In this case it's processing a URL which is OK.
* | win32: turn off some unnecessary build optionsRon Yorston2020-02-142-10/+10
| |
* | Build fixesFRP-3329-gcf0fa4d13Ron Yorston2020-01-082-4/+14
| | | | | | | | | | | | - Update configuration files - Omit unnecessary libraries - Replace fake stime(2) with fake clock_settime(2)
* | Update default configurationRon Yorston2019-05-272-4/+16
| |
* | lineedit: reinstate tab-completion of '~/'Ron Yorston2019-04-092-4/+4
| | | | | | | | | | | | Commit 195902a64 (lineedit: improvements to tab completion) disabled tab-completion of usernames. It was too heavy-handed, in that it also removed tab-completion of '~/'.
* | reset: enable in default configurationRon Yorston2019-04-072-4/+4
| | | | | | | | | | | | | | | | | | | | | | The 'reset' applet attempts to reset the screen. It's more thorough than 'clear'. Since it tries to reset the screen buffer for the current process it has to be a NOFORK applet. To run the Windows executable C:/Windows/System32/reset.exe use the full path, as the 'reset' applet will take precedence.
* | df: display origin of mapped driveRon Yorston2019-04-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a drive is mapped to a network share or a path display the mapping in the 'Filesystem' column of df's output. Since this changes the mnt_fsname field of the mntent structure a slight alteration is needed to print_all_cwd() in ash. Revert the change in commit a8c63f25b that enabled FEATURE_DF_FANCY in the default configuration. None of the additional options is very useful. See GitHub issue #164.
* | win32: fix compilation error; update default configurationsRon Yorston2019-03-312-2/+4
| |
* | win32: improve filesystem detection and displayRon Yorston2019-03-202-4/+4
| | | | | | | | | | | | | | | | | | | | Miscellaneous improvements: - Enable '-a' option to display all filesystems in df(1). - Detect the UDF CDROM filesystem and display it in 'stat -f'. - Let getmntent(3) handle CDROM and floppy devices, ignoring those that have no media. - Set number of inodes and filesystem flags to 0 in statfs(2).
* | win32: consolidate file metadata optionsRon Yorston2019-03-122-2/+0
| | | | | | | | Merge FEATURE_IDENTIFY_OWNER into FEATURE_EXTRA_FILE_DATA.
* | su: add a basic implementation for WIN32Ron Yorston2019-03-072-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the undocumented 'runas' verb in a call to ShellExecuteEx() to run a shell with elevated privileges. Because of the way ShellExecuteEx() works this: - requires that you acknowledge a User Account Control prompt (if you're an Administrator); - requires that you enter an Administrator's password (if you aren't an Administrator); - creates a separate console window for the privileged shell. Variables from the parent shell aren't passed to its privileged child, only variables from the environment. It's possible to specify a command to run when the shell starts. This can be used to pass shell variables: su -c "HELLO='hello world'; GOODBYE=$GOODBYE" Or do fancy things like: su -c "ls -l; read -p 'Hit return to exit: '; exit" It's probably best to put double quotes around the command and use single quotes inside it. Apparently ShellExecuteEx() requires double quotes to be entered in triplicate: su -c 'HELLO="""hello world"""'
* | win32: implement readlink(2)Ron Yorston2019-03-062-6/+10
| | | | | | | | | | | | | | | | | | | | Provide an implementation of readlink(2) based on code from Git for Windows. This version only supports symbolic links, not mount points, as the latter seem to work well enough as-is. With this change the ls and stat applets can display the targets of symbolic links. The readlink applet has been enabled in the default configuration.
* | win32: make stat(2) try to identify the owner of filesRon Yorston2019-03-012-2/+4
| | | | | | | | | | Extend stat(2) so it tries to determine whether a file belongs to the current user or not. If not it's said to belong to root.
* | find: enable -xdev in default configurationRon Yorston2019-02-282-2/+2
| |
* | dpkg: enable in the default configurationRon Yorston2019-02-222-2/+2
| | | | | | | | | | | | | | | | | | | | BusyBox's dpkg is marginally more useful than rpm because it maintains package status. Run the following commands to initialise the filesystem: mkdir -p /var/lib/dpkg/info touch /var/lib/dpkg/status
* | win32: use manifest provided by MinGW-w64Ron Yorston2019-02-212-2/+0
| | | | | | | | | | | | | | | | | | The manifest included here wasn't effective in telling Windows about version compatibility. Use the default manifest provided by MinGW-w64 instead. On Fedora this requires installing the mingw32-windows-default-manifest and/or mingw64-windows-default-manifest packages.
* | ash: updated support for hiding consoleRon Yorston2019-02-171-1/+1
| | | | | | | | | | | | | | | | Move the code to hide the console to a separate function in win32/mingw.c. Use lazy loading to avoid problems on platforms where the require APIs aren't supported (PR #70). Enable console hiding in the default 64-bit configuration.
* | win32: make stat(2) fetch additional metadataRon Yorston2019-02-162-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify the WIN32 implementation of stat(2) to fetch inode number, device id and number of hardlinks. This requires opening a handle to the target file so it will be slower. A number of features can be enabled or start to work: - tar can detect if an archive is being stored in itself; - find can support the -inum and -links options; - ls can display inode numbers; - diff can detect attempts to compare a file with itself; - du has better support for hardlinked files; - cp can detect attempts to copy a file over itself.
* | Update default configurationRon Yorston2019-02-122-2/+4
| |
* | Update default configuration; compilation fixRon Yorston2019-01-102-8/+18
| | | | | | | | | | Continue to use old version of dc; add definition of LONG_BIT from xopen_lim.h.
* | iconv: import from win-iconvRon Yorston2019-01-062-0/+2
| | | | | | | | | | Source imported from https://github.com/win-iconv/win-iconv and modified to build in busybox-w32.
* | lineedit: improvements to tab completionRon Yorston2018-12-082-2/+2
| | | | | | | | | | | | | | | | | | | | Since getpwent isn't implemented for WIN32 there's no point in enabling FEATURE_USERNAME_COMPLETION. Use case-insensitive comparisons when matching filenames. The code to exclude non-executables when tab completing executables is WIN32-specific and shouldn't omit directories.
* | Merge branch 'busybox' into mergeRon Yorston2018-11-282-2/+14
|\|
* | Update default configurationRon Yorston2018-09-102-4/+4
| |
* | Update default configurationRon Yorston2018-07-252-4/+12
| |