Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #11510

Interesting utilities

From jacob navia <jacob@spamsink.net>
Newsgroups comp.lang.c
Subject Interesting utilities
Date 2011-10-11 11:57 +0200
Organization lccwin
Message-ID <j713uv$e6o$1@speranza.aioe.org> (permalink)

Show all headers | View raw


I am developing in the Mac OS X (10.7) system, and it has some nice 
features that I hadn't seen in any windows/unix system.

One of them is the "mdfind" utility that is incredibly powerful:

mdfind some-identifier

will look in the whole machine for "some-identifier" and write you in 
standard output the name of all files that have a match. It is like

grep -R "some-identifier" /*.*

but it comes back in seconds instead of hours like grep.

It is very useful, and I never found something even remotely equivalent 
under linux/sun os

Another nifty thing is the splint code checker. (This one is probably
present under linux also but I never saw it under windows)

The problem with it is that it is incredibly verbose, swamping the
few interesting diagonstics under a mountain of rubbish. After a long
session with it I have trimmed it to give me reasonable short output.

I put all options in a shell script:

/bin/sh
splint -formatconst -dependenttrans -globstate -compdef -mayaliasunique 
-paramuse +boolint -immediatetrans -retvalother -noeffect 
-unqualifiedtrans -compdestroy -temptrans -branchstate -usereleased 
-kepttrans -compmempass -nullstate -nullpass -nullret -boolops 
-mustfreeonly -incondefs +charint -retvalint -predboolint -realcompare $1

Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-11 11:57 +0200
  Re: Interesting utilities Roberto Waltman <usenet@rwaltman.com> - 2011-10-15 00:35 -0400
    Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-15 13:06 +0200
      Re: Interesting utilities Geoff <geoff@invalid.invalid> - 2011-10-15 10:26 -0700
      [OT] Interesting utilities Roberto Waltman <usenet@rwaltman.com> - 2011-10-15 16:14 -0400
      Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 01:24 +0000
        Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 09:45 +0200
        Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 14:05 +0200
          Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 14:39 +0200
            Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-17 16:38 +0000
  Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 01:18 +0000
    Re: Interesting utilities Ian Collins <ian-news@hotmail.com> - 2011-10-16 14:34 +1300
  Re: Interesting utilities XeCycle <xecycle@gmail.com> - 2011-10-16 10:42 +0800
    Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 03:53 +0000
      Re: Interesting utilities XeCycle <xecycle@gmail.com> - 2011-10-16 21:25 +0800

csiph-web