summaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1985: code for dealing with paths is spread outv8.1.1985Bram Moolenaar2019-09-041-2/+0
| | | | | | Problem: Code for dealing with paths is spread out. Solution: Move path related functions from misc1.c to filepath.c. Remove NO_EXPANDPATH.
* patch 8.1.1948: mouse doesn't work in Linux consolev8.1.1948Bram Moolenaar2019-08-301-1/+2
| | | | | | | Problem: Mouse doesn't work in Linux console and causes 100% CPU. (James P. Harvey) Solution: Loop in WaitForCharOrMouse() when gpm_process_wanted is set. (closes #4828)
* patch 8.1.1851: crash when sound_playfile() callback plays soundv8.1.1851Bram Moolenaar2019-08-151-0/+5
| | | | | Problem: Crash when sound_playfile() callback plays sound. Solution: Invoke callback later from event loop.
* patch 8.1.1740: exepath() doesn't work for "bin/cat"v8.1.1740Bram Moolenaar2019-07-241-3/+2
| | | | | | Problem: Exepath() doesn't work for "bin/cat". Solution: Check for any path separator. (Daniel Hahler, closes #4724, closes #4710)
* patch 8.1.1531: clipboard type name is inconsistentv8.1.1531Bram Moolenaar2019-06-141-4/+4
| | | | | Problem: Clipboard type name is inconsistent. Solution: Rename VimClipboard to Clipboard_T.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-3/+3
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-2/+2
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-5/+6
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1307: cannot reconnect to the X server after it restartedv8.1.1307Bram Moolenaar2019-05-091-1/+24
| | | | | Problem: Cannot reconnect to the X server after it restarted. Solution: Add the :xrestore command. (Adrian Kocis, closes #844)
* patch 8.1.1267: cannot check if GPM mouse support is workingv8.1.1267Bram Moolenaar2019-05-041-2/+11
| | | | | Problem: Cannot check if GPM mouse support is working. Solution: Add the "mouse_gpm_enable" feature.
* patch 8.1.1265: when GPM mouse support is enabled double clicks do not workv8.1.1265Bram Moolenaar2019-05-041-2/+6
| | | | | | Problem: When GPM mouse support is enabled double clicks in xterm do not work. Solution: Use KS_GPM_MOUSE for GPM mouse events.
* patch 8.1.1259: crash when exiting earlyv8.1.1259Bram Moolenaar2019-05-031-3/+8
| | | | | Problem: Crash when exiting early. (Ralf Schandl) Solution: Only pop/push the title when it was set. (closes #4334)
* patch 8.1.1248: no test for dec mousev8.1.1248Bram Moolenaar2019-05-021-1/+2
| | | | | Problem: No test for dec mouse. Solution: Add some tests for dec mouse. Add "no_query_mouse".
* patch 8.1.1232: can't build on MS-Windowsv8.1.1232Bram Moolenaar2019-04-281-1/+1
| | | | | Problem: Can't build on MS-Windows. Solution: Define process_still_running.
* patch 8.1.1231: asking about existing swap file unnecessarilyv8.1.1231Bram Moolenaar2019-04-281-0/+10
| | | | | | Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237)
* patch 8.1.1118: a couple of conditions are hard to understandv8.1.1118Bram Moolenaar2019-04-041-13/+19
| | | | | Problem: A couple of conditions are hard to understand. Solution: Split the conditions into pieces. (Ozaki Kiichi, closes #3879)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-2/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1034: too many #ifdefsv8.1.1034Bram Moolenaar2019-03-221-6/+2
| | | | | Problem: Too many #ifdefs. Solution: Merge FEAT_MOUSE_SGR into FEAT_MOUSE_XTERM / FEAT_MOUSE_TTY.
* patch 8.1.1032: warnings from clang static analyzerv8.1.1032Bram Moolenaar2019-03-211-2/+2
| | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
* patch 8.1.0989: various small code uglinessv8.1.0989Bram Moolenaar2019-03-021-4/+4
| | | | | | Problem: Various small code ugliness. Solution: Remove pointless NULL checks. Fix function calls. Fix typos. (Dominique Pelle, closes #4060)
* patch 8.1.0983: checking __CYGWIN32__ unnecessarilyv8.1.0983Bram Moolenaar2019-02-261-3/+3
| | | | | Problem: Checking __CYGWIN32__ unnecessarily. Solution: Remove the checks. (Ken Takata)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-1/+1
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0890: pty allocation wrong if using file for out channelv8.1.0890Bram Moolenaar2019-02-101-14/+20
| | | | | | | Problem: Pty allocation wrong if using file for out channel and using null for in channel and null for error channel. Solution: Correct using use_file_for_out in condition. (Ozaki Kiichi, closes #3917)
* patch 8.1.0863: cannot see what signal caused a job to endv8.1.0863Bram Moolenaar2019-01-311-2/+24
| | | | | Problem: Cannot see what signal caused a job to end. Solution: Add "termsig" to job_info(). (Ozaki Kiichi, closes #3786)
* patch 8.1.0834: GUI may wait too long before dealing with messagesv8.1.0834Bram Moolenaar2019-01-271-132/+17
| | | | | | | Problem: GUI may wait too long before dealing with messages. Returning early may cause a mapping to time out. Solution: Use the waiting loop from Unix also for the GUI. (closes #3817, closes #3824)
* patch 8.1.0824: SunOS/Solaris has a problem with ttysv8.1.0824Bram Moolenaar2019-01-261-42/+87
| | | | | | Problem: SunOS/Solaris has a problem with ttys. Solution: Add mch_isatty() with extra handling for SunOS. (Ozaki Kiichi, closes #3865)
* patch 8.1.0809: too many #ifdefsv8.1.0809Bram Moolenaar2019-01-241-22/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 3.
* patch 8.1.0791: a few compiler warnings on VMSv8.1.0791Bram Moolenaar2019-01-221-1/+1
| | | | | Problem: A few compiler warnings on VMS. Solution: Remove type cast. Adjust #ifdef. (Zoltan Arpadffy)
* patch 8.1.0788: cannot build with tiny featuresv8.1.0788Bram Moolenaar2019-01-201-12/+13
| | | | | Problem: Cannot build with tiny features. Solution: Adjust #ifdefs.
* patch 8.1.0787: compiler warning for unused functionv8.1.0787Bram Moolenaar2019-01-201-9/+13
| | | | | Problem: Compiler warning for unused function. (Tony Mechelynck) Solution: Tune #ifdef around setjmp functions.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-3/+3
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-26/+26
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0770: inconsistent use of ELAPSED_FUNCv8.1.0770Bram Moolenaar2019-01-171-10/+10
| | | | | | Problem: Inconsistent use of ELAPSED_FUNC. Solution: Consistently use ELAPSED_FUNC. Also turn ELAPSED_TYPE into a typedef. (Ozaki Kiichi, closes #3815)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-14/+14
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0661: clipboard regexp might be used recursivelyv8.1.0661Bram Moolenaar2018-12-291-1/+7
| | | | | Problem: Clipboard regexp might be used recursively. Solution: Check for recursive use and bail out.
* patch 8.1.0657: get error for using regexp recursivelyv8.1.0657Bram Moolenaar2018-12-291-2/+2
| | | | | Problem: Get error for using regexp recursively. (Dominique Pelle) Solution: Do no check if connection is desired.
* patch 8.1.0656: trying to reconnect to X server may cause problemsv8.1.0656Bram Moolenaar2018-12-291-23/+28
| | | | | Problem: Trying to reconnect to X server may cause problems. Solution: Do no try reconnecting when exiting. (James McCoy)
* patch 8.1.0649: setjmp() variables defined globally are used in one filev8.1.0649Bram Moolenaar2018-12-281-6/+18
| | | | | Problem: setjmp() variables defined globally are used in one file. Solution: Move the declarations to that file.
* patch 8.1.0615: get_tv function names are not consistentv8.1.0615Bram Moolenaar2018-12-211-5/+7
| | | | | Problem: Get_tv function names are not consistent. Solution: Rename to tv_get.
* patch 8.1.0572: stopping a job does not work properly on OpenBSDv8.1.0572Bram Moolenaar2018-12-081-11/+7
| | | | | | | Problem: Stopping a job does not work properly on OpenBSD. Solution: Do not use getpgid() to check the process group of the job processs ID, always pass the negative process ID to kill(). (George Koehler, closes #3656)
* patch 8.1.0526: running out of signal stack in RealWaitForCharv8.1.0526Bram Moolenaar2018-11-121-1/+3
| | | | | Problem: Running out of signal stack in RealWaitForChar. (Vladimir Marek) Solution: Make the fd_set variables static.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-38/+1
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0426: accessing invalid memory in SmcOpenConnection()v8.1.0426Bram Moolenaar2018-09-221-1/+1
| | | | | Problem: Accessing invalid memory in SmcOpenConnection(). Solution: Reduce size of errorstring by one. (Dominique Pelle, closes #3469)
* patch 8.1.0377: xdiff doesn't use the Vim memory allocation functionsv8.1.0377Bram Moolenaar2018-09-131-21/+21
| | | | | | Problem: Xdiff doesn't use the Vim memory allocation functions. Solution: Change the xdl_ defines. Check for out-of-memory. Rename "ignored" to "vim_ignored".
* patch 8.1.0371: argument types for select() may be wrongv8.1.0371Bram Moolenaar2018-09-121-23/+4
| | | | | Problem: Argument types for select() may be wrong. Solution: Use a configure macro. (Tobias Ulmer)
* patch 8.1.0349: crash when wiping buffer in a callbackv8.1.0349Bram Moolenaar2018-09-061-4/+8
| | | | | | Problem: Crash when wiping buffer in a callback. Solution: Do not handle messages when only peeking for a character. (closes #2107) Add "redraw_flag" to test_override().
* patch 8.1.0329: using inputlist() during startup results in garbagev8.1.0329Bram Moolenaar2018-08-271-0/+7
| | | | | | Problem: Using inputlist() during startup results in garbage. (Dominique Pelle) Solution: Make sure the xterm tracing is stopped when disabling the mouse.
* patch 8.1.0312: wrong type for flags used in signal handlersv8.1.0312Bram Moolenaar2018-08-211-7/+7
| | | | | Problem: Wrong type for flags used in signal handlers. Solution: Use sig_atomic_t. (Dominique Pelle, closes #3356)
* patch 8.1.0304: no redraw when using a STOP signal on Vim and then CONTv8.1.0304Bram Moolenaar2018-08-211-29/+59
| | | | | | | Problem: No redraw when using a STOP signal on Vim and then a CONT signal. Solution: Catch the CONT signal and set the terminal to raw mode. This is like 8.1.0244 but without the screen redraw and a fix for multi-threading suggested by Dominique Pelle.
* patch 8.1.0302: crash when using :suspend and "fg"v8.1.0302Bram Moolenaar2018-08-201-56/+13
| | | | | Problem: Crash when using :suspend and "fg". Solution: Undo patch 8.1.244.