Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

2008-06-17 Thread Diomidis Spinellis
Gabor Kovesdan wrote: In case of sort, I understarnd that it should explicitly handle wide characters due to the different alphabet of the different languages and yes, that seems to be a difficult task... Note that Konrad Jankowski in another SoC project is adding to our C library support for

Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

2008-06-15 Thread Diomidis Spinellis
Doug Barton wrote: I use the following construct in portmaster, where pdb=/var/db/pkg, origin is set to the origin of a given port, and ro_opd is usually empty, but can be another origin directory or the same one. To guarantee that you should get some kind of results you can test with origin=d

Re: Security Flaw in Popular Disk Encryption Technologies

2008-02-23 Thread Diomidis Spinellis
ooting a hibernated machine with a different operating system and retrieving the encryption keys from the hybernation dump. One can protect against this attack by having the hybernation sequence unmount the encrypted filesystems and wipe out the keys from memory. Diomidis

Re: FreeBSD on non-fpu device

2008-01-20 Thread Diomidis Spinellis
. mad is a good (integer-only) candidate for MP3 rendering with a slow CPU True. I'm using it on the non-FPU DNARD Shark (StrongArm SA-110 CPU running at 233 MHz) and it works fine. Diomidis Spinellis - http://www.spinellis.gr___ freebsd-ha

Re: BSD license compatible hash algorithm?

2007-12-28 Thread Diomidis Spinellis
e results permanently in a file. BDB will still use a temporary file internally, but this will be invisible to your users. Diomidis Spinellis - http://www.spinellis.gr ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freeb

Re: Some diffs

2007-12-20 Thread Diomidis Spinellis
x27;s Appendix D titled "Old Features Supported but not Encouraged" in the Seventh Edition Unix Programmer's Manual (January, 1979). I believe it's now time to make the switch. Thanks! -- Diomidis Spinellis - http://www.spinellis.gr __

FreeBSD OLPC

2007-06-08 Thread Diomidis Spinellis
ww.zabbadoz.net/users/bz/BSDCan2007/BSDCan2007-public/>. The first stumbling block would be booting with OLPC's OFW. Diomidis Spinellis - http://www.spinellis.gr ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinf

Process accounting changes

2007-05-22 Thread Diomidis Spinellis
@ request with test data, and especially to Larry Rosenman for arranging access to an additional test machine. Diomidis Spinellis - http://www.spinellis.gr ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Accounting test data

2007-05-16 Thread Diomidis Spinellis
, you will need to re-enable it after the script terminates (the script will tell you how). I intend to make the data you send me part of the process accounting regression testing. Many thanks, Diomidis Spinellis - http://people.freebsd.org

Re: Writing to a file

2007-05-06 Thread Diomidis Spinellis
On May 5, 2007, at 10:29 PM, Diomidis Spinellis wrote: On May 5, 2007, at 9:34 PM, Sonja Milicic wrote: I'm working on an IO logging utility for FreeBSD as my GSoC project, and I have some questions about writing a kernel functions that would open an existing or create a new file (wit

Re: Writing to a file

2007-05-05 Thread Diomidis Spinellis
ned file. There are reasons (performance, flexibility) why these two facilities have been designed in this way, and it would be a good idea to see whether some of their design decisions are also applicable to your problem. Diomidis Spinellis - htt

Re: extern "C" and undefined reference

2007-04-22 Thread Diomidis Spinellis
Andrew Pantyukhin wrote: 7zip developers converted some code from C++ to C, while leaving the main stand-alone lzma app in C++. They use 'extern "C" { }' blocks around #include's referencing C headers. Everything compiles fine, but "undefined reference" errors appear at linkage. The undefined re

Re: sed -i

2007-03-30 Thread Diomidis Spinellis
Yar Tikhiy wrote: May I take a bit more of your time? I've started playing with the code and noticed another gray area. Namely a `c' command won't print the text if having 2 addresses with the 2nd address beyond the actual end of file. For example: %

Re: sed -i

2007-03-29 Thread Diomidis Spinellis
Yar Tikhiy wrote: Hi, Recently noticed that our sed(1) differs from its GNU analog in that in -i mode it considers all files as a single sequence of lines while the latter treats each file independently. The in-line mode isn't in POSIX, so it isn't really clear which way is correct. Here is a

Re: Filesystem layering

2007-01-03 Thread Diomidis Spinellis
John Baldwin wrote: On Wednesday 03 January 2007 12:04, Diomidis Spinellis wrote: static int umap_bypass(ap) struct vop_generic_args /* { struct vnodeop_desc *a_desc; } */ *ap; { /* ... */ In this magic code here this function changes the vnode pointers in

Filesystem layering

2007-01-03 Thread Diomidis Spinellis
dds: again VOP_READ_APV with the same arguments? */ int VOP_READ_APV(struct vop_vector *vop, struct vop_read_args *a) { int rc; while(vop != NULL && vop->vop_read == NULL && vop->vop_bypass == NULL) vop = vop->vop_default;

Re: Call for testers: Replace GNU gzip with NetBSD's gzip implementation

2006-10-10 Thread Diomidis Spinellis
LI Xin wrote: Here is a patchset that replaces the GNU gzip with NetBSD's gzip implementation, which uses zlib to do actual compress/decompress operation: Go to your src/usr.bin and execute the following shar archive: http://people.freebsd.org/~delphij/for_review/bsd_gzip/shar-bsd-gzip-20061009

Code Quality and FreeBSD

2006-04-10 Thread Diomidis Spinellis
A quick note to inform my fellow FreeBSD users and developers that my new book "Code Quality: The Open Source Perspective" (Addison-Wesley, 2006) is now available. Almost all the 623 examples I use in the book are drawn from actual code. NetBSD is the primary package I used for source code ex

Re: Call for FreeBSD status reports

2005-04-10 Thread Diomidis Spinellis
Max Laier wrote: The new features from last time (categories and task-list) will be available, again. As a reminder the available categories are listed bellow. Please feel free to suggest additional entries: proj - Projects (non-specific) docs - Documentation kern - Kernel arch - Archi

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-08 Thread Diomidis Spinellis
Brooks Davis wrote: > No, I mean a server. The hard part about using PXE to install a box is > setting up the other box to boot the box your are installing on. It's > not all the difficult, but it require a bit of knowledge, some grunt > work, and a reasionable UNIX-like machine to start from. W

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-08 Thread Diomidis Spinellis
STICS, UNDI_INITIATE_DIAGS, UNDI_FORCE_INTERRUPT, UNDI_GET_MCAST_ADDRESS, UNDI_GET_NIC_TYPE, UNDI_GET_IFACE_INFO, UNDI_GET_STATE, UNDI_ISR. I hope this information helps if anyone wants to take it up from here. Diomidis -- Diomidis Spinellis Assistant Professor Department of Manag

Re: Booting a machine over the network without pxe.

2003-09-03 Thread Diomidis Spinellis
Josef Karthauser wrote: > On Tue, Sep 02, 2003 at 09:54:18PM +0100, Josef Karthauser wrote: > > Does anyone have any experience of booting a machine over the > > network, like pxeboot, but without running PXE on a network card. > > I imagine that it should be possible to load pxeboot at the boot: >

Re: Minimalist FreeBSD 4.8

2003-08-26 Thread Diomidis Spinellis
Tyler Kellen wrote: > The information I'm looking to aquire is the absolute minimum files > required to boot FreeBSD 4.8 into multi-user mode. If this involves > deleting a massive amount of directories and files, or setting up a > new drive and copying only the needed files, I think I can make it

Re: new routing protocol

2003-08-19 Thread Diomidis Spinellis
Jerry Toung wrote: > I am in the process of implementing a routing protocol under 5.0. [...] > My problem is dealing with debuging and portability. With this raw approach I > guess I will have to run builkernel and installkernel all the time. How can I > avoid that? I thought about kernel modules,

Re: Network pipes

2003-07-26 Thread Diomidis Spinellis
Diomidis Spinellis wrote: > I think I can package the proposed sh changes as a separate command, > following Luigi's suggestion. The syntax will not include a pipe symbol > and layout, but the performance benefits will still be there. It will > also be a lot more portable and a

Re: Network pipes

2003-07-25 Thread Diomidis Spinellis
Kirk Strauser wrote: > At 2003-07-25T06:06:01Z, Diomidis Spinellis <[EMAIL PROTECTED]> writes: > > You still have the overhead of two nc instances copying data and context > > switching. > Forgive my ignorance, but is that significantly higher than two /bin/sh > instanc

Re: Network pipes

2003-07-25 Thread Diomidis Spinellis
Kirk Strauser wrote: > # ssh -f remotehost "nc -l -p 54321 | dd of=/dev/st0 bs=32k" > # tar cvf - / | nc remotehost 54321 > > Netcat implements a TCP/UDP transports and basically nothing else. Isn't > that what you're trying to achieve? You still have the overhead of two nc instances cop

Re: Network pipes

2003-07-24 Thread Diomidis Spinellis
Luigi Rizzo wrote: > * strange benchmark results! Given the description, I would expect > the "|@ rsh" and "|@ ssh" cases to give the same throughput, and > in any case "| rsh" to be faster than "| ssh". How comes, instead, > that the times differ by an order of magnitude ? Can you run the >

Network pipes

2003-07-24 Thread Diomidis Spinellis
I am currently testing a set of modifications to /bin/sh that allow a user to create a pipeline over the network using a socket as its endpoints. Currently a command like tar cvf - / | ssh remotehost dd of=/dev/st0 bs=32k has tar sending each block through a pipe to a local ssh process, ssh comm

Contribution: PCL-724 driver

2002-12-09 Thread Diomidis Spinellis
I have written a device driver for the Advantech PCL-724 parallel I/O card and made it available at . The PCL-724 card emulates the Intel 8255A programmable peripheral interface chip running in mode 0 (simple I/O). The driver has been in production u