+.Pp
+Programmatically, an
+.Xr asl 3
+message may be sent to syslogd to force it to checkpoint either a single file,
+or to checkpoint all files for a particular ASL module.
+To checkpoint all files:
+.Pp
+ const char *module_name;
+.Pp
+ //TODO: set module_name
+ asl_object_t ctl = asl_new(ASL_TYPE_MSG);
+ asl_set(ctl, ASL_KEY_OPTION, "control");
+ asl_log(NULL, ctl, ASL_LEVEL_NOTICE, "@ %s checkpoint", module_name);
+ asl_release(ctl);
+.Pp
+To checkpoint just one file:
+.Pp
+ const char *module_name;
+ const char *file_name;
+.Pp
+ //TODO: set module_name
+ //TODO: set file_name
+ asl_object_t ctl = asl_new(ASL_TYPE_MSG);
+ asl_set(ctl, ASL_KEY_OPTION, "control");
+ asl_log(NULL, ctl, ASL_LEVEL_NOTICE, "@ %s checkpoint %s", module_name, file_name);
+ asl_release(ctl);
+.Pp