Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | win32: Work around for dup2 | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+9 |
| | | | | Original dup2() does not return the fdto. | ||||
* | win32: Replace stat/lstat | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+145 |
| | |||||
* | win32: Replace open/fopen to support /dev/null | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+38 |
| | |||||
* | win32: execable.c: support .exe suffix | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -1/+24 |
| | |||||
* | win32: add next_path_sep() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+24 |
| | |||||
* | win32: add shell script and internal applet execution to spawn* and exec* | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+264 |
| | | | | | | Most of this was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository. | ||||
* | win32: Support certain ANSI sequences on cmd.exe | Nguyễn Thái Ngọc Duy | 2010-09-10 | 3 | -0/+370 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 source | Nguyễn Thái Ngọc Duy | 2010-09-10 | 3 | -0/+5420 |
| | | | | | | | | | | | | | | | | | | | | | 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: copy_file: always use lstat to avoid macro conflict | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+5 |
| | | | | | | stat() in win32 port is actual a macro, not a function. Doing it the way it is now won't work. stat/lstat is not different in Windows anyway. | ||||
* | win32: add unlink() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+10 |
| | |||||
* | win32: getopt32: set optind = 0 on Windows | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -1/+1 |
| | | | | | I haven't dug deep into this, but experiments show that optind = 1 does not work. Maybe MinGW guys took getopt from glibc? | ||||
* | win32: add getenv(), setenv(), unsetenv() and clearenv() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 3 | -4/+124 |
| | | | | clearenv() is not supported yet. | ||||
* | win32: add poll() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+70 |
| | | | | Only works for pipes, as commented in the source code. | ||||
* | win32: add fcntl() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+15 |
| | |||||
* | win32: add waitpid() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 3 | -1/+12 |
| | |||||
* | win32: add mkdir() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+7 |
| | |||||
* | win32: add get_busybox_exec_path(), which is bb_busybox_exec_path | Nguyễn Thái Ngọc Duy | 2010-09-10 | 3 | -0/+17 |
| | | | | | This function will become bb_busybox_exec_path because there is no fixed installation location on Windows. | ||||
* | win32: add realpath() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+7 |
| | |||||
* | win32: add strsep() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+19 |
| | |||||
* | win32: add link() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+22 |
| | |||||
* | win32: add function to map windows errors to posix ones | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+113 |
| | |||||
* | win32: add signal routines and SIGALRM support | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+127 |
| | | | | | | The implementation for SIGALRM only because Git needs it (I think for progress display or something). Probably not hurt having it. Although the only thing needed here are stubs. | ||||
* | win32: add getpwuid() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+15 |
| | |||||
* | win32: add localtime_r() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+8 |
| | |||||
* | win32: add gmtime_r() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+8 |
| | |||||
* | win32: add pipe() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+8 |
| | |||||
* | win32: add gettimeofday() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+40 |
| | |||||
* | win32: add mkstemp() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+9 |
| | |||||
* | win32: add sleep() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -1/+7 |
| | |||||
* | win32: set binary I/O mode by default | Nguyễn Thái Ngọc Duy | 2010-09-10 | 2 | -0/+4 |
| | | | | | | | | | 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 source | Nguyễn Thái Ngọc Duy | 2010-09-10 | 4 | -1/+498 |
| | | | | | This was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository. | ||||
* | Add README.win32 | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+38 |
| | |||||
* | Makefile: support building on Windows using MinGW compiler | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+5 |
| | |||||
* | Makefile: support building executable with extension | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -5/+6 |
| | |||||
* | libbb: skip utmp part in messages.c on Windows | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+2 |
| | |||||
* | win32: add missing system headers | Nguyễn Thái Ngọc Duy | 2010-09-10 | 8 | -0/+0 |
| | | | | | | | | These empty headers are to prevent #include errors. Of course those #include may be wrapped inside #ifdefs and excluded, but that would turn libbb.h into a #ifdef mess. Note that all missing declaration is in mingw.h, not in these files. | ||||
* | win32: Import fnmatch header | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+84 |
| | | | | | This was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository. | ||||
* | win32: add sched.h | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+1 |
| | |||||
* | win32: add termios.h | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+129 |
| | | | | | Just some declaration enough to build. Proper TTY support may come later, targeting Cygwin-based terminals. | ||||
* | win32: add mingw.h | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+295 |
| | | | | This file is like libbb.h for MinGW port. | ||||
* | Exclude files that will not compile on Windows | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -13/+14 |
| | |||||
* | win32: platform.h: add bswap_xx() | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+7 |
| | |||||
* | libbb.h: support MinGW port | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+16 |
| | |||||
* | platform.h: support MinGW port | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -4/+24 |
| | |||||
* | win32: Refuse to be built by MinGW compiler unless platform MINGW32 is selected | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+4 |
| | |||||
* | Config.in: add target platform MINGW32 | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+3 |
| | |||||
* | Config.in: add target platform selection | Nguyễn Thái Ngọc Duy | 2010-09-10 | 1 | -0/+11 |
| | | | | | Currently there is only one choice: POSIX. However non-POSIX platform may be supported in future. | ||||
* | vi: code shrink | Denys Vlasenko | 2010-04-16 | 1 | -9/+9 |
| | | | | | | | | | | function old new delta vi_main 250 242 -8 colon 2980 2970 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | ||||
* | vi: code shrink; save/restore errno in signal handlers | Denys Vlasenko | 2010-04-16 | 1 | -19/+27 |
| | | | | | | | | | | | | | | | function old new delta query_screen_dimensions - 54 +54 suspend_sig 50 64 +14 cont_sig 65 66 +1 catch_sig 42 32 -10 winch_sig 88 60 -28 edit_file 719 671 -48 refresh 848 767 -81 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/4 up/down: 69/-167) Total: -98 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> | ||||
* | add a file which shows what builds on ancient RH9 image | Denys Vlasenko | 2010-04-16 | 1 | -0/+942 |
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |