summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/syscalls.h
Commit message (Collapse)AuthorAgeFilesLines
* Avoid conflict with libraries' HAVE_*Neil Moore2014-07-121-1/+1
|
* Remove redundant declaration for fdatasync on Windows (#7884)Neil Moore2014-01-091-1/+0
|
* Start using -Wredundant-decls; fix all the instances I getSamuel Bronson2013-12-121-0/+2
| | | | | That is, unless you count the ones in ncurses' headers, which I can't do anything except suppress.
* Remove unnecessary includes from header files.Jay3.14152012-10-231-2/+0
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Do a compile check for the presence of fdatasync().Adam Borowski2012-07-141-3/+3
| | | | | | | | | | This is a NIH implementation of a part of autoconf, it is limited as it would be hard to affect the Makefile from such tests. On the other hand, even nasty hacks like grepping for sqlite features are not enough here, as we're looking for something in system headers. I think all of configuration in the Makefile should be nuked and rewritten, so it's just a crutch for 0.11.
* Implement mkstemp() for Windows.Adam Borowski2012-07-111-0/+1
| | | | | | | I used this function because some random page misled me into thinking it is available on Windows (possibly a fault of my poor reading comprehension...). It looks like that there's no existing function on Windows that's race-free, so I implemented one from scratch.
* Make a bunch of functions static, delete some unused junk.Adam Borowski2011-11-111-1/+0
|
* alarm() for Windows.Adam Borowski2011-06-091-0/+1
|
* Put usleep() emulation into syscalls.ccAdam Borowski2011-06-041-0/+4
|
* Fix win64 compilation.Adam Borowski2011-04-081-0/+2
| | | | | BTW, what's the point of forcing architecture in the build? The compiler already knows that, trying to do that ourselves just caused build failures.
* Merge branch 'unicode'.Adam Borowski2011-04-011-9/+7
|\ | | | | | | | | There are some issues left, like incorrect wrapping in some cases, but we can fix them later.
| * Merge branch 'master' into unicodeAdam Borowski2011-01-111-0/+2
| |\ | | | | | | | | | Conflicts galore...
| * \ Merge branch 'master' into unicodeAdam Borowski2010-12-121-0/+12
| |\ \
| * \ \ Merge branch 'master' into unicodeAdam Borowski2010-12-021-1/+2
| |\ \ \
| * | | | Handle filenames with non-ascii characters.Adam Borowski2010-09-171-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Only iostreams functions are left; on Windows they don't support Unicode so a workaround will be needed.
* | | | | Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* | | | Use the Windows equivalent of /dev/urandom there.Adam Borowski2010-12-311-0/+2
| |_|/ |/| | | | | | | | | | | | | | | | | Without it, starting Crawl twice in the same second produced identical seeds. It doesn't matter for real games (no DGL on Windows...), but can be surprising when doing automated tests or playing with layout generators.
* | | Cowardly assume that systems lack fdatasync() unless on a list.Adam Borowski2010-12-111-1/+3
| | | | | | | | | | | | | | | | | | | | | It's strange that FreeBSD and old MacOS X don't have something that was mandated in POSIX Issue 5 (1997), but let's cope with that. It's better to unfairly accuse other systems of noncompliance and suffer a slowdown than to fail to build at all.
* | | fdatasync() implementation for Mac OS XMatthew Tadd2010-12-041-0/+4
| | |
* | | Add an implementation of fsync() for Windows.Adam Borowski2010-12-031-0/+6
| |/ |/|
* | Implement file locking on Windows.Adam Borowski2010-12-021-1/+2
|/
* Whitespace fixes.Adam Borowski2010-09-071-1/+1
|
* Fix the save browser on non-Windows.Adam Borowski2010-09-061-1/+1
|
* Use file locking on the save file to prevent corruption from running Crawl ↵Adam Borowski2010-09-061-0/+2
| | | | | | | | | | twice. This fixes Mantis 2061. I did not reuse the existing lk_open() because it's non-portable, waits for the lock to become available and works using FILE* not a descriptor (bad for random access).
* "--edit-save Joe repack" that defrags the save file.Adam Borowski2010-09-051-0/+19
It's mostly so you can see how much of the file was lost to due to waste. If everything is working as designed, waste should never exceed the size of compressed global chunks (chr, you, tc, kil, ...) plus at most two levels -- that is, the biggest set of chunks rewritten between commits. If you know a case when the waste explodes in size, tell me!