Re: [dev][sbase][PATCH v3] Various fixes, add renice command.

2013-06-11 Thread Lorenzo Cogotti
9 or 20 (the affected processes run only when nothing else in the +system attempts to run) and any negative number +(to make processes run faster). +.SH AUTHOR +Written by Lorenzo Cogotti. +.SH SEE ALSO +.BR nice(1) diff --git a/renice.c b/renice.c new file mode 100644 index 000..1df512a

Re: [dev][sbase][PATCH v2] Various fixes, add renice command.

2013-06-11 Thread Lorenzo Cogotti
I find useful to have the minimum amount of logic done during argument parsing. Both approaches are pretty much the same anyway, so reverting the change is not a problem. -- Lorenzo Cogotti

Re: [dev][sbase][PATCH v2] Various fixes, add renice command.

2013-06-09 Thread Lorenzo Cogotti
lue, if the user has the appropriate privileges to do so. +.TP +.I "renice -n 4 -u 8 sas" +.PP +Adjust the nice value so that numeric user ID 8 and user sas would +have a lower nice value. +Useful nice value increments on historical systems include +19 or 20 (the affected processes run

[dev][sbase][PATCH] Various fixes, add renice command.

2013-06-09 Thread Lorenzo Cogotti
e, if the user has the appropriate privileges to do so. +.TP +.I "renice -n 4 -u 8 sas" +.PP +Adjust the nice value so that numeric user ID 8 and user sas would +have a lower nice value. +Useful nice value increments on historical systems include +19 or 20 (the affected processes run only w

[dev][sbase][PATCH] Added POSIX paste(1) command implementation.

2013-04-29 Thread Lorenzo Cogotti
| paste - - - -" +.PP +Write out a directory in four columns. +.TP +.I "paste -s -d '\et\en' file" +.PP +Combine pairs of lines from a file into single lines. +.SH AUTHOR +Written by Lorenzo Cogotti. +.SH SEE ALSO +.BR cut(1) +.BR lam(1) diff --git a/paste.c b/paste.

Re: [dev][libsl][PATCH] drw.c: Allocation success check, don't call die() on error

2013-04-12 Thread Lorenzo Cogotti
Il giorno Fri, 12 Apr 2013 16:56:55 +0200 Lorenzo Cogotti ha scritto: > [...] eliminating redundant calls to free() [...] That is: "eliminating redundant checks before free() calls" -- Lorenzo Cogotti

[dev][libsl][PATCH] drw.c: Allocation success check, don't call die() on error

2013-04-12 Thread Lorenzo Cogotti
This commit modifies drw.c to avoid killing the application if an error occurs, the caller should be able to decide what to do on error situations, this hopefully improves code reusability on various projects. It also checks for calloc() to succeed before using the returned pointer, improving code