aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/os_defs.h
Commit message (Collapse)AuthorAge
* ex_cmds2.c: cleanupJustin M. Keyes2016-06-25
|
* Misc. macro cleanupMichael Reed2016-01-14
| | | | | | | | | | - ROOT_UID's comment is misleading, as it's always defined to 0. - SEEK_{SET,END} & O_NOFOLLOW should already be defined on Unix-like systems in <stdio.h> and <fcntl.h>, respectively. In any case, neither of those #ifdef blocks should be in the middle of source files. - The S_IS{LNK,DIR,...} macros should only be undefined on Windows.
* os/*_defs.h: MAXNAMLEN cleanupMichael Reed2016-01-12
| | | | | | | | | | | | | For non-Windows systems, we assume that NAME_MAX is in <limits.h>, as specified in POSIX.1-2008[1]. For Windows, which doesn't have NAME_MAX, just define it ourselves to _MAX_PATH[2]. Also, remove two (now unused) HAVE_*_H checks. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html [2]: https://msdn.microsoft.com/en-us/library/930f87yf.aspx Helped-by: Seth Jackson
* Windows: define MAXNAMLEN for Windows.Seth Jackson2016-01-10
| | | | | MAXNAMLEN can be defined using _MAX_PATH from stdlib.h which will fix the BASENAMELEN definition too.
* Fix S_ISLNK definition in os_defs.h.Seth Jackson2016-01-03
|
* Windows: Bring back code branch for if_cscope.Rui Abreu Ferreira2016-01-01
| | | | | The Vim code for windows in if_cscope.c/.h was removed during the refactor, added missing code for error_closing().
* Windows: Add path definitions for Windows.Seth Jackson2015-11-29
|
* Fix comments for os_* functions return valueRui Abreu Ferreira2015-11-25
| | | | | | In windows libuv does not return -errno, instead it uses negative error codes e.g. UV_ENOENT. This commit changes the comments in os_* functions to reflect this.
* remove HAVE_DUP #1072Justin M. Keyes2015-09-12
| | | | | Vim defines this for Windows, so there's no Neovim-supported system for which this would not be defined.
* os/os_defs.h cleanup: Remaining signal stuffMichael Reed2015-08-27
| | | | | | | | | | | | RETSIGTYPE, SIGRETURN, and SIGDEFARG are always defined the same, so inline them for simplicity; SIGDUMMYARG, however, is unused, so remove it. Even if these things don't work on windows, the signal handler in if_cscope.c is already wrapped with '#idef UNIX', as is its only call site. Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
* os/os_defs.h cleanup: SIGHASARGMichael Reed2015-08-27
| | | | It's always defined, so the #else is redundant.
* os/os_defs.h cleanup: SIGHAS3ARGSMichael Reed2015-08-27
| | | | | | | | | | | SIGHAS3ARGS appears in Vim's source code like this: /* List 3 arg systems here. I guess __sgi, please test and correct me. jw. */ if defined(__sgi) && defined(HAVE_SIGCONTEXT) define SIGHAS3ARGS endif Given we don't support SGI, remove it.
* os/os-defs.h cleanup: Don't include <time.h>Michael Reed2015-08-27
| | | | | Any files which need definitions from <time.h> should include it, not "os/os_defs.h".
* remove references to <sys/time.h>Justin M. Keyes2015-08-24
| | | | | Since gettimeofday() was replaced by os_time in fb5a786bdb5b7b52b9c36b3eb8b6d2cc002aa8f3 we do not need sys/time.h.
* os/fs: Define os_strerror as an alias to uv_strerrorZyX2015-07-26
| | | | It is not needed to know that os/* uses libuv.
* os/*defs: restore some comments and formatting.Justin M. Keyes2015-07-06
|
* refactor: remove SYS_MENU_FILE (unused)Yamakaky2015-07-06
|
* Split os_unix_defs.h into os/Yamakaky2015-07-06
|
* Linting: Fix header guards, add whitespace.Florian Walch2014-12-24
|
* Create os/os_defs.h for os specific definitionsPavel Platto2014-07-14