Commit Graph

60 Commits

Author SHA1 Message Date
C. Guy Yarvin
a4baea40fd Fix a bunch of memory leaks and stuff. 2013-11-11 23:09:11 -08:00
C. Guy Yarvin
8bd25d8b32 Use ftruncate() to map checkpoint images as sparse files. 2013-11-11 11:13:47 -08:00
Curtis Yarvin
fd4e5f9e5f Remove debug printf. 2013-11-09 04:05:48 +00:00
C. Guy Yarvin
91fe182f81 Various fixes and improvements... 2013-11-08 15:37:38 -08:00
Steven Dee
c489d2dc7d Remove remainder of sprintf & strcpy calls
Note that there are still some in libuv.
2013-11-01 15:10:41 -04:00
Steven Dee
324c6a235d Remove most instances of strcpy and sprintf
OpenBSD whines about these and recommends using strlcpy / snprintf
instead. Since strlcpy isn't quite universal yet, we use strncpy instead
and be careful about terminating the string. We could implement a
portable strlcpy in terms of strncpy, but that'd add another function to
the namespace.

Yes, usually the length is obviously bounded. Still, pretending
strcpy/sprintf don't exist seems like a great strategy.

N.B. there are still a few occurrences of strcpy and sprintf under f/
and in libuv, but I don't have time to tackle them right now.
2013-10-30 15:25:22 -04:00
Aaron Sokoloski
3755a7620e loom.c -- drop unnecessary fsync in _loom_write that causes lag on some systems.
u2_loom_save syncs after writing anyway.
2013-10-14 21:02:32 +01:00
Steven Dee
1a6f18d09d Consider both FreeBSD and OpenBSD "bsd" 2013-10-07 12:31:41 -04:00
Lev Serebryakov
018cfe5eaf Quick'n'dirty port to FreeBSD (checked on FreeBSD 9.2/amd64) 2013-10-02 18:44:22 +04:00
Christian Carter
3af3130bdc Cleaning up old code 2013-09-28 13:21:18 -07:00