Re: Perl scripts that need rewiting - Any volunteers?

2002-06-27 Thread Mark Murray
Hiya Yo! Here's the updated version of vidfont/kbdmap. The changes are: WARNS=6 clean 80 columns max Now uses 'mkstemp()' rather than 'mktemp()' Fixed a couple of dumb bugs Copyrights added Removed '{}' from single lines Default strings now in vidfont.h Good! I'll check out and

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-26 Thread Jonathan Belson
Hiya Here's the updated version of vidfont/kbdmap. The changes are: WARNS=6 clean 80 columns max Now uses 'mkstemp()' rather than 'mktemp()' Fixed a couple of dumb bugs Copyrights added Removed '{}' from single lines Default strings now in vidfont.h Cheers, --Jon http://www.witchspace.com

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-25 Thread Mark Murray
o Please shorten any long line or comment to less than 80 columns This is quite tricky when using 8 character tabs. Is 4 character indent okay for userland source? Real tabs are best. Look at style(9) for ways to break the long lines. It is ok to break very long lines

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-25 Thread Sheldon Hearn
On (2002/06/25 10:20), Mark Murray wrote: How's this? int handle; template = /tmp/mumble; char *cmd; handle = mkstemp(template); // template is modified asprintf(cmd, prog %s, template); system(cmd); close(handle); // bye-bye file It would be failsafe if you tested that

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-25 Thread Alfred Perlstein
* Mark Murray [EMAIL PROTECTED] [020625 02:26] wrote: I couldn't see a simple way around this, any clues? How's this? int handle; template = /tmp/mumble; char *cmd; handle = mkstemp(template); // template is modified asprintf(cmd, prog %s, template); system(cmd);

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-25 Thread Mark Murray
Kinda buggy. :) Ya, ya, ya. :-) That was the concept model. The actual author can make it robust. :-) M -- o Mark Murray \_ O.\_Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-24 Thread Jonathan Belson
Mark Murray wrote: Okay, here's my vidfont/kbdmap rewrite for review. Any feedback is welcome, the same goes for bug reports :-) Cool, thank you very much! Some comments: o Please put a copyright on the top of this. By preference, please use

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-24 Thread Cyrille Lefevre
On Mon, Jun 24, 2002 at 08:46:22PM +0100, Jonathan Belson wrote: Mark Murray wrote: o Please do not use mktemp(); use mkstemp() instead. I used mktemp() to get a filename to redirect to, eg. /* Improvised example */ char *cmd; asprintf(cmd, prog %s, mktemp(blah)); system(cmd);

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-23 Thread Mark Murray
Mark Murray wrote: These seem to be the same program. I'll take this if there are no objections. You have it! Okay, here's my vidfont/kbdmap rewrite for review. Any feedback is welcome, the same goes for bug reports :-) Cool, thank you very much! Some comments: o Please put a

Re: Perl scripts that need rewiting - Any volunteers?

2002-06-14 Thread Jonathan Belson
Mark Murray wrote: These seem to be the same program. I'll take this if there are no objections. You have it! Okay, here's my vidfont/kbdmap rewrite for review. Any feedback is welcome, the same goes for bug reports :-) Cheers, --Jon http://www.witchspace.com #include sys/queue.h

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-10 Thread Mike Makonnen
On Thu, 2002-05-09 at 07:41, Mark Murray wrote: On Thu, 2002-05-09 at 03:57, Mark Murray wrote: /usr/sbin/rmuser Wrapper round pw userdel? I took this one while the discussion was going on the past couple of days. It's at: http://home.pacbell.net/makonnen/rmuser.sh It also

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-10 Thread David O'Brien
On Fri, May 10, 2002 at 01:56:16AM -0600, Mike Makonnen wrote: The problem with writing man pages is, if you don't do it often enough you keep having to relearn it every time you do (which is why I wised up /usr/share/examples/mdoc/example.{1,3,4} To Unsubscribe: send mail to [EMAIL

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-10 Thread Mike Makonnen
On Fri, 2002-05-10 at 02:56, David O'Brien wrote: On Fri, May 10, 2002 at 01:56:16AM -0600, Mike Makonnen wrote: The problem with writing man pages is, if you don't do it often enough you keep having to relearn it every time you do (which is why I wised up

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-10 Thread Michael Lucas
On Fri, May 10, 2002 at 01:56:16AM -0600, Mike Makonnen wrote: The problem with writing man pages is, if you don't do it often enough you keep having to relearn it every time you do (which is why I wised up after about the third time or so this happened to me I created a cheat sheet). What

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-09 Thread Riccardo Torrini
On 09-May-2002 (15:38:45/GMT) Mark Murray wrote: I tryed this one. I'm not a committer, just a volunteer :-) You're on! Please put appropriate (c) on this (Preferably 2-clause BSD license) and I'll commit it for you :-) Ahemm, I'm not sure to have done correct job. Please review last

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-09 Thread Mark Murray
On 09-May-2002 (15:38:45/GMT) Mark Murray wrote: I tryed this one. I'm not a committer, just a volunteer :-) You're on! Please put appropriate (c) on this (Preferably 2-clause BSD license) and I'll commit it for you :-) Ahemm, I'm not sure to have done correct job. Please review

Re: Perl scripts that need rewiting - Any volunteers?

2002-05-09 Thread Peter Wemm
Mark Murray wrote: [bogus From: address, because people cannot be bothered to respect Reply-To :] On Thu, May 09, 2002 at 10:57:00AM +0100, Mark Murray wrote: It would be acceptable to rewrite in C (C++?) NO! for rewriting in C++. If you do, you'll soon see the consequences.