Port proposal, lockf(1) ported from freebsd.

2009-04-20 Thread Christiano Farina Haesbaert
Hi there, I've ported lockf(1) from Freebsd, made some style changes to conform to style(9) and added an option to write the lock holder pid in the lockfile (-p) option. It's a single file with 246 lines. I'll port/write the manpage if you think the port may be accepted. This is the first port

flock(1) utility proposal.

2009-02-28 Thread Christiano Farina Haesbaert
} } else {/* child */ if(oclose) close(fd); return execvp(*argv, argv); } return 0; }d __dead void usage(void) { errx(1, "usage: flock [-sexu] [-no] [-r file] [-w seconds] -c command"); /* NOTREACHED */ } ==end flock.c== -- Christiano Farina HAESBAERT