./misc/dync, C language awk-like utility

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.1nb2, Package name: dync-1.1nb2, Maintainer: agc

The dync utility is a small, but quite useful utility, which allows
the use of C as a scripting language. This can be quite useful
****SOMETIMES****, allowing access to system calls and library functions
from the command line. For example, there are occasions when I want
to see the struct stat for a directory entry, and want to be able to
access st_mtime values, without having to parse output from "ls -l".
A simple:

int main(int argc, char **argv)
{
struct stat st;
if (stat(argv[1], &st) == 0) {
printf("%lld\n", st.st_mtime);
}
exit(0);
}

will do the job. If I was to try this by other means, I would either
have to install all of Perl, and then learn its idiosyncratic syntax,
or write a custom C program, which I would then have to compile on
each architecture I need.

This utility relies on there being a C compiler on the target machine,
and a working dlopen(3).


Master sites:

SHA1: 58e3412a2980574d935e64f72eb45f8d017b961c
RMD160: 7c9326eb5c2381e0eeb8590197c4a76e41cc01e2
Filesize: 23.654 KB

Version history: (Expand)


CVS history: (Expand)


   2015-11-04 00:49:56 by Alistair G. Crooks | Files touched by this commit (330)
Log message:
Add SHA512 digests for distfiles for misc category

Problems found locating distfiles:
	Package colorls: missing distfile ls.tar.gz
	Package molden: missing distfile molden-4.6/molden4.6.tar.gz
	Package softmaker-office-demo: missing distfile ofl06trial.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2013-04-06 05:45:29 by Blue Rats | Files touched by this commit (152)
Log message:
Fixes:

 COMMENT should not be longer than 70 characters.
 COMMENT should not begin with 'A'.
 COMMENT should not begin with 'An'.
 COMMENT should not begin with 'a'.
 COMMENT should not end with a period.
 COMMENT should start with a capital letter.

pkglint warnings. Some files also got minor formatting, spelling, and style
corrections.
   2012-10-08 11:57:42 by Aleksej Saushev | Files touched by this commit (239)
Log message:
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
   2010-02-11 20:17:06 by Joerg Sonnenberger | Files touched by this commit (1)
Log message:
DESTDIR support
   2009-05-22 20:16:19 by Zafer Aydogan | Files touched by this commit (1) | Package updated
Log message:
update master site.
   2005-12-05 21:51:20 by Roland Illig | Files touched by this commit (1432)
Log message:
Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2 … /0034.html
   2005-07-08 23:09:36 by Krister Walfridsson | Files touched by this commit (1)
Log message:
Prevent a reference to build directories on machines that do
not need ldconfig.
   2005-06-25 03:36:47 by Krister Walfridsson | Files touched by this commit (1)
Log message:
Change the CONFIGURE_ENV to use the variables users are supposed to set,
rather than the autoconf cache variables.