aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
* Introduce nvim namespace: Move files.Eliseo Martínez2014-05-15
| | | | | | Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library.
* Add teardown function for the event.c moduleThiago de Arruda2014-05-12
| | | | Also move the `job_teardown` call from os_unix.c to the event module
* replaced `vim_free()` calls with `free()` callsMatthias Beyer2014-05-05
|
* Remove undefined function suspend_shell.Thomas Wienecke2014-05-03
|
* revert #652Justin M. Keyes2014-05-01
| | | | | | | reverting broad cosmetic/style change because: - increases merge-conflicts - increases overhead of merging upstream Vim patches - reasons for change are ambiguous, so default to no change
* Remove NUL macroMarco Hinz2014-04-29
|
* Remove code and checks for unsupported systems.Chris Watkins2014-04-28
| | | | | Remove remnants of support for systems including __EMX__, MSDOS, OS2, AMIGA and MORPHOS.
* Remove mch_screenmode, inline EMSG into ex_mode()Stefan Hoffmann2014-04-24
|
* No OOM error condition in save_patterns()Felipe Oliveira Carvalho2014-04-24
|
* inline the rest of os_unixx.h into os_unix.cStefan Hoffmann2014-04-22
|
* Removed mch_input_isattyPavel Platto2014-04-20
|
* Removed mch_check_winPavel Platto2014-04-20
|
* Remove modelinesMarco Hinz2014-04-16
| | | | | Removed modelines are better than modelines that differ from file to file.
* removed mch_remove macroStefan Hoffmann2014-04-11
|
* Move exe functions back to os/fs.cJohn Schmidt2014-04-08
|
* Change prefix from `os_*` to `path_*`John Schmidt2014-04-08
|
* Implement job controlThiago de Arruda2014-04-07
| | | | | | - Add a job control module for spawning and controlling co-processes - Add three vimscript functions for interfacing with the module - Use dedicated header files for typedefs/structs in event/job modules
* Use stdbool in os moduleHinidu2014-04-07
|
* Remove simpler cases of OOM error handling (after *alloc calls)Felipe Oliveira Carvalho2014-04-06
| | | | | | | | | | | | | | | | | | By simpler cases I mean cases where the OOM error is not expected to be handled by the caller of the function that calls `alloc`, `lalloc`, `xrealloc`, `xmalloc`, `alloc_clear`, and `lalloc_clear`. These are the functions that: - Do not return an allocated buffer - Have OOM as the only error condition I took note of the functions that expect the caller to handle the OOM error and will go through them to check all the callers that may be handling OOM error in future commits. I'm ignoring eval.c and ex_.c in this series of commits. eval.c will soon be obsolete and I will deal with ex_.c in later PRs.
* Add comments and fix `os_microdelay` callThiago de Arruda2014-04-06
|
* Remove `RealWaitForChar` and `mch_new_shellsize`Thiago de Arruda2014-04-06
| | | | | | The last occurrence of `RealWaitForChar` was replaced by the `os_microdelay` function. `mch_new_shellsize` had an empty body, so there seems to be no reason for keeping it around
* Moved mch_get_host_name and renamed it to os_get_hostanmeStefan Hoffmann2014-04-05
|
* Moved mch_get_pid and renamed it to os_get_pidStefan Hoffmann2014-04-05
|
* Remove the old `mch_call_shell` implementationThiago de Arruda2014-04-05
|
* Remove mzschemeJohn Schmidt2014-04-05
|
* Remove SniFFJohn Schmidt2014-04-05
|
* Extract memory.c from misc2.cJohn Schmidt2014-04-04
|
* Remove `mch_call_shell` GUI printing codeThiago de Arruda2014-04-03
| | | | | This isn't needed right now because spawned shells will inherit stdout by default
* Remove support for running interactive programsThiago de Arruda2014-04-03
| | | | | | | | | This removes `mch_call_shell` code for feeding programs interactively. The removed code was supporting interactive programs in the old GUI, but right now we only have a terminal UI. The code is currently safe to remove because interactive programs will just simply take control of the terminal in cooked mode.
* Test and refactor gettail -> path_tail.Thomas Wienecke2014-04-03
|
* remove HAVE_RENAMEoni-link2014-04-02
| | | | rename is a C99 standard function.
* Move signal handling to libuv event loopThiago de Arruda2014-04-01
| | | | | | | | | | | | | | | | | This removes all signal handling code from os_unix.c to os/signal.c. Now signal handling is done like this: - Watchers for signals are registered with libuv default event loop - `event_poll` continuously calls `poll_uv_loop` to produce events until it receives user input, SIGINT or a timeout - Any signals received in `poll_uv_loop` will push events to a queue that is drained and processed by `event_poll` Signals aren't handled directly in the libuv callback to avoid recursion in the event loop(which isn't supported by libuv). The same principle will apply to other events in the future: Push to a queue from a libuv callback and drain it from `event_poll`
* Move mch_expandpath from os_unix.cJohn Schmidt2014-04-01
|
* remove HAVE_SETJMP_HJulian Orth2014-03-31
|
* Rename ga_init2() to ga_init()John Schmidt2014-03-31
|
* Rewrite `show_shell_mess` as a `ShellOpts` flagThiago de Arruda2014-03-31
|
* Refactor SHELL_* defines into enum typedefThiago de Arruda2014-03-31
| | | | | | The SHELL_* defines are the bitflags that can be passed to `mch_call_shell`. The enum is defined in 'os/shell.h', where all shell-related functions will eventually be defined.
* Refactor/cleanup argument parsing functionsThiago de Arruda2014-03-31
|
* Extract `shell_build_argv` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Make `extra_shell_arg` a `mch_call_shell` parameterThiago de Arruda2014-03-31
|
* Extract `shell_count_argc` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Extract `shell_skip_word` from `mch_call_shell`Thiago de Arruda2014-03-31
|
* Split code for counting and parsing argumentsThiago de Arruda2014-03-31
|
* Extract path.c from misc1.cJohn Schmidt2014-03-29
|
* Rename mch_* functions to os_* in os module.Thomas Wienecke2014-03-27
|
* Reimplement input functions on top of libuvThiago de Arruda2014-03-26
| | | | | | | | | | | | | | | | The functions `mch_inchar`, `mch_breakcheck`, `mch_char_avail` were reimplemented on top of libuv. Here's how it works: - When Neovim needs to wait for characters, it will transfer control to libuv event loop. - When the libuv event loop gets user input, it will transfer control back to Neovim - Neovim uses the `input_read` function to get the actual data read by libuv. With this scheme its possible to keep Neovim single-threaded while enjoying the benefits provided by libuv. This commit leaves SIGWINCH broken for now
* Use memmove instead of mch_memmoveFelipe Oliveira Carvalho2014-03-26
|
* Implement `mch_delay` on top of libuvThiago de Arruda2014-03-24
| | | | | Needed to temporarily move two static variables from os_unix.c to 'globals.h' as those are shared by other functions still in os_unix.
* adapt to the style guildelinesPetter Wahlman2014-03-19
| | | | | semi-automated harvest of low hanging fruit: change the unorthodox use of whitespace.
* Revive vim_fname (-> os_file_exists); fix misuse of mch_getperm.Thomas Wienecke2014-03-15
| | | | | | * Move vim_fname from misc1 to os/fs:os_file_exists. * Add unit tests for os_file_exists. * Replace misuse of mch_getperm with os_file_exists.