pcu.git
8 years agomincore: fix mismatched parenthesesmaster
Eric Wong [Wed, 13 May 2015 00:39:13 +0000 (13 00:39 +0000)]
mincore: fix mismatched parentheses

Oops, this completely broke things :x

10 years agoREADME: update license to GPLv2+
Eric Wong [Sat, 16 Nov 2013 08:15:49 +0000 (16 08:15 +0000)]
README: update license to GPLv2+

I prefer GPLv3 nowadays anyways, but continue allowing GPLv2 because
that's what we started with.

10 years agoopen_noatime wrapper to deal with EPERM on O_NOATIME
Eric Wong [Sun, 15 Sep 2013 08:58:56 +0000 (15 08:58 +0000)]
open_noatime wrapper to deal with EPERM on O_NOATIME

We favor O_NOATIME in a variety of places, use it when we can,
but fall back gracefully when we cannot.

10 years agopcu-fadvise: fall back if O_NOATIME fails due to EPERM
Eric Wong [Sat, 14 Sep 2013 09:18:15 +0000 (14 09:18 +0000)]
pcu-fadvise: fall back if O_NOATIME fails due to EPERM

open() may fail with EPERM on files we do not own.

11 years agoMakefile: ghetto generation task for the website
Eric Wong [Wed, 28 Nov 2012 23:40:25 +0000 (28 23:40 +0000)]
Makefile: ghetto generation task for the website

HTML sucks, but this was done when I hated HTML less...

11 years agopcu 0.3.0 - syncfs() support for pcu-fsyncv0.3.0
Eric Wong [Wed, 28 Nov 2012 23:21:07 +0000 (28 23:21 +0000)]
pcu 0.3.0 - syncfs() support for pcu-fsync

* pcu-fsync: add support for syncfs() on Linux (via -f flag)

11 years agoMakefile: remove --sanitize-html for pandoc
Eric Wong [Wed, 28 Nov 2012 23:19:26 +0000 (28 23:19 +0000)]
Makefile: remove --sanitize-html for pandoc

pandoc 1.8 no longer has this, and we don't have HTML
in our documentation anyways.

11 years agopcu-fsync: add support for syncfs() on Linux (-f flag)
Eric Wong [Thu, 15 Nov 2012 03:42:50 +0000 (15 03:42 +0000)]
pcu-fsync: add support for syncfs() on Linux (-f flag)

Sometimes it is useful to just commit a single filesystem.
This transparently falls back to using sync(2) if syncfs(2)
is not available.

12 years agoREADME: update URLs for bogomips.org
Eric Wong [Sat, 21 Jan 2012 08:55:26 +0000 (21 08:55 +0000)]
README: update URLs for bogomips.org

bogomips.org went on a URL diet last year and lost
the extra bytes.

14 years agoadd pcu-fsync(1) manpage
Eric Wong [Tue, 6 Apr 2010 06:18:24 +0000 (5 23:18 -0700)]
add pcu-fsync(1) manpage

14 years agomincore: add '-s' summary option
Eric Wong [Tue, 6 Apr 2010 06:14:16 +0000 (5 23:14 -0700)]
mincore: add '-s' summary option

This displays the percentage of the file mmap'ed.

14 years agomincore: mmap() returns MAP_FAILED on failure
Eric Wong [Sat, 3 Apr 2010 05:59:54 +0000 (2 22:59 -0700)]
mincore: mmap() returns MAP_FAILED on failure

mmap() may return NULL on success in certain situations not
applicable to us.  The proper failure value is MAP_FAILED.

14 years agoinline cstr_to_off_t to avoid warning
Eric Wong [Tue, 26 Jan 2010 21:21:07 +0000 (26 13:21 -0800)]
inline cstr_to_off_t to avoid warning

*sigh*

14 years agorename pcu-sync -> pcu-fsync
Eric Wong [Tue, 26 Jan 2010 21:20:10 +0000 (26 13:20 -0800)]
rename pcu-sync -> pcu-fsync

Avoid confusing people with a 'sync' command since this is about
fsync-ing individual files.

14 years agoAdd `pcu-sync' command
Eric Wong [Sun, 9 Aug 2009 22:33:48 +0000 (9 15:33 -0700)]
Add `pcu-sync' command

This can be useful for calling fsync(2)/fdatasync(2) on
individual files (and/or their containing directories).  This
can be used when a system-wide sync(2) is too expensive on
a busy system.

14 years agocast sizeof() to unsigned to avoid warnings on 64-bit
Eric Wong [Sun, 9 Aug 2009 21:42:44 +0000 (9 14:42 -0700)]
cast sizeof() to unsigned to avoid warnings on 64-bit

I doubt we'll ever see sizeof() returning a value larger than
UINT_MAX...

14 years agomincore: bad cast caused misprinted output on 32-bitv0.2.1
Eric Wong [Sat, 1 Aug 2009 19:46:35 +0000 (1 12:46 -0700)]
mincore: bad cast caused misprinted output on 32-bit

Due to the bad cast to unsigned long in the parameter before it,
printf was mishandling the bit output as the last parameter.

14 years agofix header dependencies in Makefile
Eric Wong [Sat, 1 Aug 2009 18:47:18 +0000 (1 11:47 -0700)]
fix header dependencies in Makefile

14 years agoMore accurate string => off_t conversion
Eric Wong [Sat, 1 Aug 2009 18:34:00 +0000 (1 11:34 -0700)]
More accurate string => off_t conversion

off_t can either be 32-bits or 64-bits wide on popular
architectures in 2009, so we need to pick between strtol and
strtoll.  This allows us to (hopefully) deal with files larger
than 2G on 32-bit machines

14 years agoUpdate external links to syscall manpages
Eric Wong [Mon, 27 Jul 2009 06:52:43 +0000 (26 23:52 -0700)]
Update external links to syscall manpages

For posix_fadvise and mmap, link to opengroup.org since that is
the official specification and not tied to any particular OS.

For mincore, use the kernel.org manpage links since that is
more likely up-to-date than the previous page (and more
canonical of a source).

14 years agoINSTALL is Markdown and thus Pandoc-able
Eric Wong [Mon, 27 Jul 2009 05:18:48 +0000 (26 22:18 -0700)]
INSTALL is Markdown and thus Pandoc-able

14 years agoremove large file support macros from the Makefile
Eric Wong [Mon, 27 Jul 2009 04:53:54 +0000 (26 21:53 -0700)]
remove large file support macros from the Makefile

They're already unconditionally defined in compat-util.h,
so avoid cluttering up the build output with them.

14 years agocapitalize arguments in usage strings
Eric Wong [Mon, 27 Jul 2009 04:50:21 +0000 (26 21:50 -0700)]
capitalize arguments in usage strings

By convention, required arguments are documented by SCREAMING

14 years agoREADME: add more links to things we reference
Eric Wong [Sun, 26 Jul 2009 21:29:18 +0000 (26 14:29 -0700)]
README: add more links to things we reference

14 years agoAdd html and gz suffixes to .gitignore
Eric Wong [Sun, 26 Jul 2009 20:53:07 +0000 (26 13:53 -0700)]
Add html and gz suffixes to .gitignore

14 years agoSwitch to pandoc for all documentation
Eric Wong [Sun, 26 Jul 2009 20:02:16 +0000 (26 13:02 -0700)]
Switch to pandoc for all documentation

pandoc can generate stand-alone HTML, an automatic TOC, and
the only Markdown processor I know of capable of generating
manpages.

Markdown is also a more standard syntax than txt2man and
appropriate for generating HTML versions of manpages.

14 years agoREADME: add a pointer to the ML archives
Eric Wong [Sun, 26 Jul 2009 19:17:32 +0000 (26 12:17 -0700)]
README: add a pointer to the ML archives

14 years agoREADME: updates
Eric Wong [Sun, 26 Jul 2009 01:13:09 +0000 (25 18:13 -0700)]
README: updates

* add links to syscall manpages
* include mailing list info

14 years agoDocumentation updates
Eric Wong [Mon, 8 Jun 2009 04:33:31 +0000 (7 21:33 -0700)]
Documentation updates

* Generate homepage using the README
* More git repository information
* Remove references to non-existent pcu(7) manpage

15 years agoAdd git info to README
Eric Wong [Mon, 11 May 2009 05:34:47 +0000 (10 22:34 -0700)]
Add git info to README

15 years agopcu v0.2.0v0.2.0
Eric Wong [Mon, 11 May 2009 00:00:42 +0000 (10 17:00 -0700)]
pcu v0.2.0

15 years agoClarify license, COPYING updates FSF mailing address
Eric Wong [Sun, 10 May 2009 23:58:33 +0000 (10 16:58 -0700)]
Clarify license, COPYING updates FSF mailing address

15 years agoMake it clear we don't need perms/capabilities
Eric Wong [Sun, 10 May 2009 23:51:43 +0000 (10 16:51 -0700)]
Make it clear we don't need perms/capabilities

We don't do things like mlock.

15 years agoCroak with usage info on no arguments
Eric Wong [Sun, 10 May 2009 23:44:03 +0000 (10 16:44 -0700)]
Croak with usage info on no arguments

15 years agoRevamp documentation, add manpages
Eric Wong [Sun, 10 May 2009 23:34:14 +0000 (10 16:34 -0700)]
Revamp documentation, add manpages

15 years agomincore: Only the first bit of the byte is defined
Eric Wong [Sun, 10 May 2009 06:53:59 +0000 (9 23:53 -0700)]
mincore: Only the first bit of the byte is defined

The other 7 bits are undefined at the moment.

15 years agomincore: fix offset calculations
Eric Wong [Sun, 10 May 2009 04:42:24 +0000 (9 21:42 -0700)]
mincore: fix offset calculations

15 years agomincore: byte offsets should be shown in hex
Eric Wong [Sun, 10 May 2009 04:18:29 +0000 (9 21:18 -0700)]
mincore: byte offsets should be shown in hex

15 years agomincore: allow offset and length to be specified
Eric Wong [Sun, 10 May 2009 04:16:23 +0000 (9 21:16 -0700)]
mincore: allow offset and length to be specified

Users won't have to mmap entire files if they don't want to

15 years agomincore: show byte offset instead of page offset
Eric Wong [Sun, 10 May 2009 03:52:55 +0000 (9 20:52 -0700)]
mincore: show byte offset instead of page offset

The page offset is architecture and kernel-dependent, whereas
the byte offset is universally understood.

15 years agoAlways open files with O_NOATIME
Eric Wong [Sun, 10 May 2009 01:51:11 +0000 (9 18:51 -0700)]
Always open files with O_NOATIME

Avoid generating unnecessary disk activity.

15 years agoFixup GIT-VERSION-GEN
Eric Wong [Sun, 10 May 2009 01:42:23 +0000 (9 18:42 -0700)]
Fixup GIT-VERSION-GEN

I don't plan on making release tarballs "by hand"
any more.  cgit/gitweb will just do it for me.

15 years agoAdd install target to Makefilev0.1.1
Eric Wong [Wed, 6 May 2009 20:57:42 +0000 (6 13:57 -0700)]
Add install target to Makefile

15 years agoDefine macros to enable 64-bit file support on 32-bit
Eric Wong [Wed, 5 Nov 2008 00:21:11 +0000 (4 16:21 -0800)]
Define macros to enable 64-bit file support on 32-bit

15 years agoinitialv0.1.0
Eric Wong [Sat, 25 Oct 2008 01:41:26 +0000 (24 18:41 -0700)]
initial