Re: Completely offtopic : [OT?] Coding Style

2001-01-24 Thread Bernd Petrovitsch
(e.g. German) where capital letters quite common. [Fullquote deleted] Bernd -- Bernd Petrovitsch Email : [EMAIL PROTECTED] G.A.M.S GmbH Fax : +43 1 8958499-60 Stiegerg. 15-17/8 A-1150 Vienna/Austria/Europe

Re: About IP address

2000-11-28 Thread Bernd Petrovitsch
gnificant two octets contain the DI, which is an Internet Autonomous System number. --- snip --- Bernd -- Bernd Petrovitsch Email : [EMAIL PROTECTED] G.A.M.S GmbH Fax : +43 1 8958499-60 Stiegerg. 15-17/8

Re: Kernel compile trouble

2001-01-07 Thread Bernd Petrovitsch
el hacking # CONFIG_MAGIC_SYSRQ=y Bernd Petrovitsch Email : [EMAIL PROTECTED] G.A.M.S GmbH Fax : +43 1 8958499-60 Stiegerg. 15-17/8 A-1150 Vienna/Austria/Europe LUGA : http://www.luga.at PGP signature

Re: Style Question

2007-03-11 Thread Bernd Petrovitsch
On Sun, 2007-03-11 at 22:15 +0800, Cong WANG wrote: [...] Another question is about NULL. AFAIK, in user space, using NULL is better than directly using 0 in C. In kernel, I know it used its own NULL, which may be defined as ((void*)0), Userspace has the usually same definition.

Re: [RFC] A need for yesno-function? (and cleanup of kernel.h) (was: Re: [KJ] [RFC] A need for a yesno-function?)

2007-03-16 Thread Bernd Petrovitsch
On Fri, 2007-03-16 at 16:24 +0100, Richard Knutsson wrote: [...] more readable). The big problem is, where to put it? Seems wrong to put in linux/string.h since it appear to be a replica of userspace's string.h (otherwise, why put mem*-functions in there?). memcpy(3) and memcmp(3) are also

Re: [RFC] A need for yesno-function? (and cleanup of kernel.h)

2007-03-16 Thread Bernd Petrovitsch
On Fri, 2007-03-16 at 18:09 +0100, Richard Knutsson wrote: Bernd Petrovitsch wrote: On Fri, 2007-03-16 at 16:24 +0100, Richard Knutsson wrote: [...] more readable). The big problem is, where to put it? Seems wrong to put in linux/string.h since it appear to be a replica

Re: Coding style RFC: convert for (i=0;iARRAY_SIZE(array);i++) to array_for_each(index, array)

2007-02-13 Thread Bernd Petrovitsch
On Tue, 2007-02-13 at 18:42 +1100, Nick Piggin wrote: Joe Perches wrote: [...] perhaps: #define array_for_each(element, array) \ for ((element) = (array); \ (element) ((array) + ARRAY_SIZE((array))); \ (element)++) If you're going for consistency, then

Re: Coding style RFC: convert for (i=0;iARRAY_SIZE(array);i++) to array_for_each(index, array)

2007-02-13 Thread Bernd Petrovitsch
On Tue, 2007-02-13 at 21:54 +1100, Nick Piggin wrote: Bernd Petrovitsch wrote: On Tue, 2007-02-13 at 18:42 +1100, Nick Piggin wrote: Joe Perches wrote: [...] perhaps: #define array_for_each(element, array) \ for ((element) = (array); \ (element) ((array

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Wed, 2007-02-14 at 22:27 -0800, v j wrote: [...] here. I am perfectly willing to live with the way Linux is today. I am telling you as a user that if Linux continues on the current path it will become less and less attractive to Embedded Users. Which is only (or more accurate: at most) true

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Wed, 2007-02-14 at 23:28 -0800, v j wrote: On 2/14/07, Randy Dunlap [EMAIL PROTECTED] wrote: At least one of us is confused about that an embedded User is. It seems to me that you are an embedded developer, not User. I doubt that most Embedded Users care what their OS is, or even know

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Wed, 2007-02-14 at 22:46 -0800, v j wrote: You don't get it do you. Our source code is meaningless to the Open Source community at large. It is only useful to our tiny set of Perhaps you should leave that decision to the open source community at large. [ Useless fullquote deleted ]

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Thu, 2007-02-15 at 15:37 +0100, Benny Amorsen wrote: JDL == Jan De Luyck [EMAIL PROTECTED] writes: JDL I think a nice example of that might be the Linksys WRT54G JDL routers. They don't ship with Linux anymore, except the WRT54GL. Apparently switching was worth it to save 2MB flash.

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Thu, 2007-02-15 at 18:40 +1100, Nick Piggin wrote: Ben Nizette wrote: [...] Question to the world here: Distros make, as a matter of course, a series of modifications to the Linux Kernel so that their modules or features work. What stops VJ making a patchset which effectively

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bernd Petrovitsch
On Thu, 2007-02-15 at 17:41 -0500, Jeff Garzik wrote: Bernd Petrovitsch wrote: On Thu, 2007-02-15 at 18:40 +1100, Nick Piggin wrote: Rhetorical question: what stops me from taking somebody's copyrighted work, stripping the copyrights or falsely claiming to have a license to redistribute

Re: GPL vs non-GPL device drivers

2007-02-16 Thread Bernd Petrovitsch
On Fri, 2007-02-16 at 03:19 -0500, [EMAIL PROTECTED] wrote: [...] Actually, the *real* reason embedded systems end up using old versions is much simpler. ACK. They start developing their code on release 2.X.Y, and they keep their code out-of-tree. Then, when they come up for air, and it's

Re: GPL vs non-GPL device drivers

2007-02-16 Thread Bernd Petrovitsch
On Thu, 2007-02-15 at 18:36 -0600, Scott Preece wrote: [...] Note that it is possible that what vj said is strictly true. IF the product they ship is non-modifiable, then it's hard to argue that anyone else could maintain it. And if the drivers are for devices The GPL has no special handling

Re: GPL vs non-GPL device drivers

2007-02-16 Thread Bernd Petrovitsch
On Thu, 2007-02-15 at 22:25 -0800, v j wrote: [...] No, just that the trend is disturbing. If enough Kernel Developers choose to write their Software in a way that prevents others from using it freely, then that is troubling. Especially when these Kernel You can use it freely - your

RE: kernel porting query

2007-02-16 Thread Bernd Petrovitsch
On Fri, 2007-02-16 at 07:46 +0530, Rick Brown wrote: Your quoting style sucks. I fixed it by hand. [...] 1) Can any one please shed some light on precisely and exactly what are differences in different boards for which we need to port linux? On Fri, 2007-02-16 at 09:48 +0530, Ajay Singh

RE: GPL vs non-GPL device drivers

2007-02-16 Thread Bernd Petrovitsch
On Fri, 2007-02-16 at 03:42 -0800, David Schwartz wrote: [...] Not quite. Copyright is: This particular implementation is mine, but you are free to implement any idea any *other* way you want. You simply can't implement an idea precisely the way I did it, but all ideas are open to you.

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Bernd Petrovitsch
On Mon, 2007-02-19 at 21:19 -0800, v j wrote: [...] Now it would also be worthwhile to contemplate what EXPORT_SYMBOL_GPL does to this popularity. I don't know. I am just giving you my The big problem with such discussions (as this) are: It is a law decision which license applies in which

Re: GPL vs non-GPL device drivers

2007-02-20 Thread Bernd Petrovitsch
On Tue, 2007-02-20 at 10:14 -0500, [EMAIL PROTECTED] wrote: On Tue, 20 Feb 2007 12:00:51 +0100, Bernd Petrovitsch said: Flame bait alert: I heard a talk from an Austrian lawyer an according to his believes (and I don't know if he is the only one or if there lots of) one must see from

Re: The ext3 way of journalling

2008-01-08 Thread Bernd Petrovitsch
Sorry for feeding the troll: On Die, 2008-01-08 at 17:52 +, Tuomo Valkonen wrote: On 2008-01-08, Andre Noll [EMAIL PROTECTED] wrote: Use tune2fs to deactivate checking. So, a workaround is the answer to a clear bug. Typical FOSS. At least you get a simple solution for your problem:

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Bernd Petrovitsch
On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: On 01/11/2008 10:17 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: On 01/11/2008 05:10 AM, Daniel Walker wrote: A little feature addition to allow checkpatch.pl to check patches piped into it, in addition

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Bernd Petrovitsch
On Fre, 2008-01-11 at 01:47 -0800, Daniel Walker wrote: On Fri, 2008-01-11 at 10:41 +0100, Jiri Slaby wrote: On 01/11/2008 10:36 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 10:34 +0100, Jiri Slaby wrote: If somebody is hacking kernel, I think he should know the - trick used in many

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Bernd Petrovitsch
On Fre, 2008-01-11 at 01:30 -0800, Daniel Walker wrote: On Fri, 2008-01-11 at 10:23 +0100, Bernd Petrovitsch wrote: On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: On 01/11/2008 10:17 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: On 01/11/2008 05

Re: The ext3 way of journalling

2008-01-14 Thread Bernd Petrovitsch
On Mon, 2008-01-14 at 09:15 +0200, Tuomo Valkonen wrote: [...] ntpdate isn't run by any of the init scripts. ntpd is, but like I Yes, that is a usual bug/problem in common distributions[0] as there is no real guarantee that your clock is not far off. Add your timeservers in

Re: The ext3 way of journalling

2008-01-14 Thread Bernd Petrovitsch
On Mon, 2008-01-14 at 09:48 +, Tuomo Valkonen wrote: On 2008-01-14, Bernd Petrovitsch [EMAIL PROTECTED] wrote: Yes, that is a usual bug/problem in common distributions[0] as there is no real guarantee that your clock is not far off. It isn't, right after boot. But while the system

Re: The ext3 way of journalling

2008-01-14 Thread Bernd Petrovitsch
On Mon, 2008-01-14 at 13:11 +0200, Tuomo Valkonen wrote: On 2008-01-14 10:57 +0100, Bernd Petrovitsch wrote: That leads to the question why the clock starts to run like crazy at some time so that `ntpd` can't cope with it. I do wonder whether the PSU could've been causing it. Now

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread Bernd Petrovitsch
On Wed, 2007-09-12 at 09:13 -0700, Dan Stromberg wrote: I sent this to kernel newbies first, and while I got one response there, it answered a different question than the one I was asking... Are you sure? I'm on a SuSE system. I'm working on automating the install of said system, but it

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread Bernd Petrovitsch
On Wed, 2007-09-12 at 19:05 +0200, Sam Ravnborg wrote: [] Being rpm ignorant I do not know what the expected content of a kernel-source RPM are but this is the available targets for kernel packaging (from make help): The kernel-source including all patches and configured as usually to be

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread Bernd Petrovitsch
On Wed, 2007-09-12 at 10:31 -0700, Dan Stromberg wrote: On Wed, 12 Sep 2007 19:09:26 +0200, Bernd Petrovitsch wrote: [...] I'm on a SuSE system. I'm working on automating the install of said system, but it needs a Linus kernel - 2.6.21.7 specifically, and it needs kernel source too so

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread Bernd Petrovitsch
On Wed, 2007-09-12 at 19:51 +0200, Sam Ravnborg wrote: On Wed, Sep 12, 2007 at 07:11:21PM +0200, Bernd Petrovitsch wrote: On Wed, 2007-09-12 at 19:05 +0200, Sam Ravnborg wrote: [] Being rpm ignorant I do not know what the expected content of a kernel-source RPM

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread Bernd Petrovitsch
On Wed, 2007-09-12 at 20:16 +0200, Sam Ravnborg wrote: But we are talking[0] about a kernel-source-$VERSION.$ARCH.rpm's which contain the kernel sources (read: lots of .c and .h files, etc.) - including a matching .config and after `make oldconfig` - so that one can build out-of-tree

Re: [PATCH] 9p: rename uid and gid parameters

2007-09-13 Thread Bernd Petrovitsch
On Thu, 2007-09-13 at 08:51 -0600, Latchesar Ionkov wrote: Zero was the value that was used before, even though it wasn't defined explicitly. I just defined a macro so we can see and eventually change it to something better. I don't know if there is a good default value. Is nfsnobody the same

Re: kernel source code repository?

2007-12-06 Thread Bernd Petrovitsch
On Don, 2007-12-06 at 21:46 +0530, Amogh Hushdar wrote: [...] none of this is available, at least a tarball that I can download using my browser? Look at http://www.kernel.org/ Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156

Re: A peek at the future of storage

2007-12-12 Thread Bernd Petrovitsch
On Mit, 2007-12-12 at 10:02 -0800, Daniel Phillips wrote: On Wednesday 12 December 2007 09:46, J. Bruce Fields wrote: [...] People have proposed writing a daemon that just reads /proc/net/rpc/nfsd periodically and uses that to adjust the number of threads from userspace, probably subject to

Re: Get physical MAC address

2008-01-01 Thread Bernd Petrovitsch
On Mon, 2007-12-31 at 12:39 +0700, Theewara Vorakosit wrote: [...] I get MAC address from ioctl. However, ifconfig can change this MAC address. Can I get a real physical MAC address of the NIC? - You can get the initial MAC address right after bootup before anyone changes it. - Some (if not

Re: Get physical MAC address

2008-01-02 Thread Bernd Petrovitsch
On Die, 2008-01-01 at 22:58 -0600, Matt Domsch wrote: On Mon, Dec 31, 2007 at 12:39:11PM +0700, Theewara Vorakosit wrote: Hello, I get MAC address from ioctl. However, ifconfig can change this MAC address. Can I get a real physical MAC address of the NIC? yes. It's

Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)

2007-10-25 Thread Bernd Petrovitsch
On Mit, 2007-10-24 at 17:35 -0700, Ray Lee wrote: [] Key-based masterlocks are easily broken with freon, and their combo locks are easily brute-forced in about ten minutes. Yet, I'll still use them to lock up my bike and garage. The question is what the security threat is and the value of

Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)

2007-10-30 Thread Bernd Petrovitsch
On Thu, 2007-10-25 at 09:04 -0700, Ray Lee wrote: On 10/25/07, Bernd Petrovitsch [EMAIL PROTECTED] wrote: On Mit, 2007-10-24 at 17:35 -0700, Ray Lee wrote: [] Key-based masterlocks are easily broken with freon, and their combo locks are easily brute-forced in about ten minutes. Yet

Re: [PATCH] Intel Manageability Engine Interface driver

2007-10-24 Thread Bernd Petrovitsch
On Die, 2007-10-23 at 15:35 -0400, Lennart Sorensen wrote: On Tue, Oct 23, 2007 at 11:22:50AM -0700, Roland Dreier wrote: It's not a hard experiment to do. The answer is: warning: suggest parentheses around assignment used as truth value A warning is not an error. It won't

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread Bernd Petrovitsch
On Mon, 2008-02-11 at 17:07 +0530, rohit h wrote: On Feb 8, 2008 9:24 PM, Jan Engelhardt [EMAIL PROTECTED] wrote: [...] Compiling the kernel module with g++ is not a simple work, you may need big patch for kernel itself. I don't want to compile entire kernel. I only want to compile my

Re: [Announce] Linux-tiny project revival

2007-09-28 Thread Bernd Petrovitsch
On Fre, 2007-09-28 at 00:21 +0200, Arnd Bergmann wrote: On Thursday 27 September 2007, you wrote: Then you don't have to change every single printk in the kernel, but only those that don't currently come with a log level. More importantly, you can do the conversion without a flag day, by

Re: Floating Point Issue

2007-09-28 Thread Bernd Petrovitsch
On Don, 2007-09-27 at 12:41 +0100, mahamuni ashish wrote: I have small code And the relevance to the Linux kernel as such is? [] Add -Wall -Wextra and fix all errors and warnings. Expected output is No. Bernd -- Firmix Software GmbH http://www.firmix.at/

Re: Patch for WindowsMobile5 on Linux Kernel

2007-10-09 Thread Bernd Petrovitsch
On Die, 2007-10-09 at 12:20 +0300, Grosjo.net - jom wrote: [...] Would it be possible to include the patches (available on www.synce.org) for WindowsMobile5, as most mobile phones are under Window$, and it is very convenient to connect it to the laptop under Linux do { Test them review

Re: GPL weasels and the atheros stink

2007-09-02 Thread Bernd Petrovitsch
On Sun, 2007-09-02 at 16:03 +0200, Marc Espie wrote: [...] So, now, it's down to dirty fighting. Absorbing and `relicensing' and evolving code. Have you all been bitten my RMS paranoia (that leads to this `interesting GPLv3) ? Do you intend to keep grabbing BSD code and putting it

Re: How to learn Linux Kernel Programming

2007-08-22 Thread Bernd Petrovitsch
On Wed, 2007-08-22 at 06:47 +, Noud Aldenhoven wrote: Thank you for your information and help, I think it's a lot more clear for me now. I've seen the ldd3 some time ago, but someone told me that book was out-of-date. Guess he was wrong. Would it also be use full to use some kind of

Re: How to register block device as read-only

2007-07-28 Thread Bernd Petrovitsch
On Fri, 2007-07-27 at 13:07 -0500, [EMAIL PROTECTED] wrote: Hello, In a block device driver, how do you tell the kernel that your block device is read-only? Is it in the registration of the gendisk, or is there an ioctl I should be catching to inform the kernel (and user) that this disk

Re: [PATCH] type safe allocator

2007-08-02 Thread Bernd Petrovitsch
On Thu, 2007-08-02 at 15:47 +0200, Peter Zijlstra wrote: On Thu, 2007-08-02 at 16:04 +0400, Alexey Dobriyan wrote: On 8/2/07, Miklos Szeredi [EMAIL PROTECTED] wrote: The linux kernel doesn't have a type safe object allocator a-la new() in C++ or g_new() in glib. Introduce two

Re: gcc fixed size char array initialization bug - known?

2007-08-03 Thread Bernd Petrovitsch
On Fri, 2007-08-03 at 11:40 +0800, WANG Cong wrote: On Fri, Aug 03, 2007 at 08:47:56AM +0530, Satyam Sharma wrote: [] While we're talking of null-termination of strings, then I bet you generally want to be using strlcpy(), really. Often strncpy() isn't what you want. Of course, if that

Re: non-free firmware in kernel modules, aggregation and unclear copyright notice.

2005-04-08 Thread Bernd Petrovitsch
On Fri, 2005-04-08 at 09:08 -0300, Humberto Massa wrote: Adrian Bunk wrote: Debian doesn't seem to care much about the possible legal problems of patents. You have lots of possible legal problems of any kind. Basically everyone can sue you for (almost) whatever he wants almost all ofth time.

Re: GPL violation by CorAccess?

2005-04-20 Thread Bernd Petrovitsch
On Tue, 2005-04-19 at 17:37 -0600, Chris Friesen wrote: Richard B. Johnson wrote: No. Accompany it with a written offer to __provide__ the source code for any GPL stuff they used (like the kernel or drivers). Anything at the application-level is NOT covered by the GPL. That depends on

Re: [OT] speeding boot process

2005-02-15 Thread Bernd Petrovitsch
On Tue, 2005-02-15 at 09:34 +0100, Paolo Ciarrocchi wrote: [...] So... why is Gentoo the only distro the uses parallel execution of init scripts ? Because no other distro bothered to implement it. Apart from that we as quite far off-topic for LKML since this has nothing to do with kernel. The

Re: [OT] speeding boot process (was Re: [ANNOUNCE] hotplug-ng 001 release)

2005-02-15 Thread Bernd Petrovitsch
On Tue, 2005-02-15 at 09:55 +0100, Helge Hafting wrote: [...] The init-script dependencies are specifies already - at least on debian. These are not dependencies but only the sequence of startup (and it is not only Debian but also Fedora/RedHat, SuSE, Mandrake and probably all except Gentoo).

Re: [OT] speeding boot process (was Re: [ANNOUNCE] hotplug-ng 001 release)

2005-02-15 Thread Bernd Petrovitsch
On Tue, 2005-02-15 at 14:20 +0100, Helge Hafting wrote: Bernd Petrovitsch wrote: On Tue, 2005-02-15 at 09:55 +0100, Helge Hafting wrote: [...] These are not dependencies but only the sequence of startup (and it is not only Debian but also Fedora/RedHat, SuSE, Mandrake and probably all except

Re: Bug in SLES8 kernel 2.4.x freezing HP DL740/760

2005-02-17 Thread Bernd Petrovitsch
On Wed, 2005-02-16 at 22:03 +0100, Oliver Antwerpen wrote: Matthias-Christian Ott schrieb: Oliver Antwerpen wrote: SuSE has patched UNICON into the kernel which will cause these servers to hang when booted with vga=normal. The system will run fine in fb-mode, but not in plain text.

Re: [PATCH] v850: const-qualify first parameter of find_next_zero_bit

2005-07-20 Thread Bernd Petrovitsch
On Wed, 2005-07-20 at 17:38 +0900, Miles Bader wrote: [...] @@ -157,7 +157,7 @@ #define find_first_zero_bit(addr, size) \ find_next_zero_bit ((addr), (size), 0) -extern __inline__ int find_next_zero_bit (void *addr, int size, int offset) +extern __inline__ int find_next_zero_bit(const

Re: [PATCH 22/82] remove linux/version.h from drivers/message/fus ion

2005-07-20 Thread Bernd Petrovitsch
On Tue, 2005-07-19 at 22:12 -0500, Matt Domsch wrote: On Tue, Jul 19, 2005 at 06:07:41PM -0600, Moore, Eric Dean wrote: [...] What you illustrated above is not going to work. If your doing #ifndef around a function, such as scsi_device_online, it's not going to compile when

Re: a 15 GB file on tmpfs

2005-07-21 Thread Bernd Petrovitsch
On Wed, 2005-07-20 at 14:16 +0200, Bastiaan Naber wrote: [...] I have a 15 GB file which I want to place in memory via tmpfs. I want to do this because I need to have this data accessible with a very low seek time. Apart fromn the 32-vs-64bit thing: Isn't it enough (and simpler and more

Re: a 15 GB file on tmpfs

2005-07-21 Thread Bernd Petrovitsch
On Thu, 2005-07-21 at 11:12 +0200, Stefan Smietanowski wrote: [...] On a 64bit machine: $ gcc test.c -o test64 ; ./test64; file ./test64 sizeof(void *): 8 sizeof(size_t): 8 test64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared

Re: 10 GB in Opteron machine

2005-07-22 Thread Bernd Petrovitsch
On Fri, 2005-07-22 at 11:31 +0200, Christoph Pleger wrote: [...] 2. All other software on the machine is 32-bit software. Will that software work with a 64-bit kernel? Basically yes. E.g. open-office does not exist natively for 64bit architectuires ATM. Bernd -- Firmix Software GmbH

Re: 10 GB in Opteron machine

2005-07-22 Thread Bernd Petrovitsch
On Fri, 2005-07-22 at 11:31 +0200, Christoph Pleger wrote: [...] 2. All other software on the machine is 32-bit software. Will that software work with a 64-bit kernel? Basically yes. E.g. open-office does not exist natively for 64bit architectures ATM (at least not on x86-compatibles).

Re: Kernel doesn't free Cached Memory

2005-07-22 Thread Bernd Petrovitsch
On Fri, 2005-07-22 at 08:27 -0300, Vinicius wrote: [...] I have a server with 2 Pentium 4 HT processors and 32 GB of RAM, this server runs lots of applications that consume lots of memory to. When I stop this applications, the kernel doesn't free memory (the memory still in use) and the

Re: xor as a lazy comparison

2005-07-25 Thread Bernd Petrovitsch
On Sun, 2005-07-24 at 18:15 -0400, Puneet Vyas wrote: [...] I just compiled two identical program , one with != and other with ^. The assembly output is identical. Hmm, which compiler and which version? You might want to try much older and other compilers. Bernd -- Firmix Software

Re: xor as a lazy comparison

2005-07-26 Thread Bernd Petrovitsch
On Tue, 2005-07-26 at 08:07 +0200, Jan Engelhardt wrote: [...] To answer for x *= 2 vs x = 1: and x += x Use * when you would logically want to do a multiplication, if you're working on a bitfield. It's just for keeping the code clean enough so that others may understand it. In the

Re: [PATCH] signed char fixes for scripts

2005-07-28 Thread Bernd Petrovitsch
On Thu, 2005-07-28 at 11:02 +0100, Paulo Marques wrote: J.A. Magallon wrote: On 07.27, Sam Ravnborg wrote: On Fri, Jul 15, 2005 at 10:14:43PM +, J.A. Magallon wrote: On 07.16, J.A. Magallon wrote: On 07.15, Andrew Morton wrote:

Re: [PATCH] signed char fixes for scripts

2005-07-28 Thread Bernd Petrovitsch
On Thu, 2005-07-28 at 11:40 +0100, Paulo Marques wrote: [...] You're comming really late in this thread :) Well, the same issue arised recently somewhere else too on this list and lots of C programmers (not only beginners) don't know about the 3 char types as speficied in the C standard. [ The C

Re: [Fwd: United States Patent: 6,862,609]

2005-03-04 Thread Bernd Petrovitsch
On Thu, 2005-03-03 at 13:11 -0700, Trever L. Adams wrote: [...] It is Article 1 Section 8. It also says they shall have that power and that the intent is to promote the advances of arts and sciences. It Actually the current (ab)use of the patent system (both in the USA and by the EPO under

Re: Atheros wi-fi card drivers (?)

2005-03-11 Thread Bernd Petrovitsch
On Mon, 2005-03-07 at 16:55 +0100, Raphael Jacquot wrote: [...] as your name appears european, there are no software patents (yet ?) so Alas, this is wrong. The EPO is issuing masses of software patents since years (though they are more or less explicitly[0] excluded from patentability in the

Re: uninterruptible sleep lockups

2005-02-23 Thread Bernd Petrovitsch
On Tue, 2005-02-22 at 22:05 -0300, Horst von Brand wrote: Chris Friesen [EMAIL PROTECTED] said: [...] Maybe I'm on crack, but would it not be technically possible to have all resource usage be tracked so that when a task tries to do something and hangs, eventually it gets cleaned up?

Re: [Fwd: United States Patent: 6,862,609]

2005-03-03 Thread Bernd Petrovitsch
On Wed, 2005-03-02 at 21:28 -0700, Jeff V. Merkey wrote: Gene Heskett wrote: On Wednesday 02 March 2005 21:36, Jeff V. Merkey wrote: Another Linux patent. ... and another - AFAICS obvious - trivial (prior art) patent (but I'm not fluent in patent quak, I'm just a simple systems engineer).

Re: [Fwd: United States Patent: 6,862,609]

2005-03-03 Thread Bernd Petrovitsch
On Thu, 2005-03-03 at 01:21 -0500, Gene Heskett wrote: [...] It brings up another sore point with me. I'm of the opinion that both copyright, and patent, should be granted to the author/inventor on a non-transferable basis. He could then sell rights to use it for a ACK. This would kill

Re: creating daemons

2005-02-03 Thread Bernd Petrovitsch
On Wed, 2005-02-02 at 15:24 +0530, root wrote: i want run my program as a daemon..its like normal how to do that service squid start Look into /etc/init.d/squid (or wherever your distribution puts the SysV-Init startup files) on how to write a similar script for your daemon. And BTW this has

Re: IBM Patents

2005-01-17 Thread Bernd Petrovitsch
On Mon, 2005-01-17 at 08:44 -0500, linux-os wrote: Tue Jan 11 07:07:40 EST 2005 IBM has announced that it will provide free access to about No, they only promise now to not sue anyone given the following criteria. No one knows what happens in 5 years. 500 of its existing software patents to

Re: IBM Patents

2005-01-18 Thread Bernd Petrovitsch
On Tue, 2005-01-18 at 09:37 +0100, Bernhard Schauer wrote: And almost all of them are pure software-patents and probably prior art. Thus they are - at least in Europe - not relevant and actually illegal if you believe in the current European patent law as defined by the European Patent

Re: time

2005-08-25 Thread Bernd Petrovitsch
On Thu, 2005-08-25 at 09:54 +0530, raja wrote: [...] Is There Any function in c to caliculate the exact time taken to execute block of code(in micro sec and milli sec and minuits and hours). thanking you, Do you mean system-time, user-space-time or the time it took in the real world?

Re: Petition for gas grices

2005-08-26 Thread Bernd Petrovitsch
On Thu, 2005-08-25 at 15:01 -0400, Patrick McFarland wrote: [...] cheap even if gas is $5 per gallon (predicted price for 2006). Better than We have here (in Austria/Europe) ATM 1.11 € for one liter of 91 Octane gasoline. Diesel oil is slightly (a few Cents) less. And it will probably rise

Re: A Great Idea (tm) about reimplementing NLS.

2005-08-26 Thread Bernd Petrovitsch
On Thu, 2005-08-25 at 20:00 -0400, Daniel B. wrote: Alan Cox wrote: On Sul, 2005-06-19 at 18:55, Pavel Machek wrote: [...] If we are serious about utf-8 support in ext3, we should return -EINVAL if someone passes non-canonical utf-8 string. That would ironically not be standards

Re: syscall: sys_promote

2005-08-29 Thread Bernd Petrovitsch
On Mon, 2005-08-29 at 11:55 +0800, qiyong wrote: Erik Mouw wrote: On Fri, Aug 26, 2005 at 05:25:37PM +0800, Coywolf Qi Hunt wrote: I just wrote a tool with kernel patch, which is to set the uid's of a running process without FORK. The tool is at

Re: syscall: sys_promote

2005-08-29 Thread Bernd Petrovitsch
On Mon, 2005-08-29 at 16:16 +0800, Coywolf Qi Hunt wrote: Bernd Petrovitsch wrote: [...] (almost) every tool may become a security problem. If you fear a bug in sudo, then write a minimal setuid wrapper for yourself which checks for the user it started and exec's a binary (with the full path

Re: KLive: Linux Kernel Live Usage Monitor

2005-08-30 Thread Bernd Petrovitsch
On Tue, 2005-08-30 at 11:40 +0200, Rogier Wolff wrote: [...] would IMHO work better. (A userspace program is technically a better solution, the social aspect of getting a bigger user-base is the main reason for me to suggest the in-kernel approach). So *if* a user wants to participate, he/she

Re: [ANNOUNCE] DSFS Network Forensic File System for Linux Patches

2005-09-01 Thread Bernd Petrovitsch
On Wed, 2005-08-31 at 18:56 -0600, jmerkey wrote: Bernd Eckenfels wrote: In article [EMAIL PROTECTED] you wrote: I mean, nvidia people also use propietary code in the kernel (probably violating the GPL anyway) and don't do such things. The Linux kernel allows binary drivers, you just have

Re: forbid to strace a program

2005-09-05 Thread Bernd Petrovitsch
On Sun, 2005-09-04 at 09:32 +0200, Andreas Hartmann wrote: Chase Venters wrote: [...] Can I ask why you want to hide the database password from root? It's easy: for security reasons. There could always be some bugs in some software, which makes it possible for some other user, to gain

Re: Open letter to Linux kernel developers (was Re: Binary Drivers)

2006-12-31 Thread Bernd Petrovitsch
On Fri, 2006-12-22 at 12:59 +0100, Erik Mouw wrote: On Thu, Dec 21, 2006 at 01:16:15PM -0500, [EMAIL PROTECTED] wrote: At least nVidia *does* actually Get It, they just don't have a choice in implementing it, because all their current hardware includes patents that they licensed from other

Re: [PATCH] [DISCUSS] Make the variable NULL after freeing it.

2006-12-31 Thread Bernd Petrovitsch
On Thu, 2006-12-28 at 09:54 +0100, Jan Engelhardt wrote: On Dec 27 2006 17:10, Pavel Machek wrote: Was just wondering if the _var_ in kfree(_var_) could be set to NULL after its freed. It may solve the problem of accessing some freed memory as the kernel will crash since _var_ was set to

Re: Open letter to Linux kernel developers (was Re: Binary Drivers)

2007-01-02 Thread Bernd Petrovitsch
On Tue, 2007-01-02 at 16:30 +1000, Trent Waddington wrote: [...] I think you're repeating a myth that has become a common part of hacker lore in recent years. It's caused by how little we know about software patents. The myth is that if you release source code which violates someone's patent

Re: Open letter to Linux kernel developers (was Re: Binary Drivers)

2007-01-02 Thread Bernd Petrovitsch
On Tue, 2007-01-02 at 21:26 +1000, Trent Waddington wrote: On 1/2/07, Bernd Petrovitsch [EMAIL PROTECTED] wrote: While this is true (at last in theory), there is one difference in practice: It is *much* easier to prove a/the patent violation if you have (original?) source code than

Re: Open letter to Linux kernel developers (was Re: Binary Drivers)

2007-01-03 Thread Bernd Petrovitsch
On Tue, 2007-01-02 at 16:23 -0300, Horst H. von Brand wrote: Bernd Petrovitsch [EMAIL PROTECTED] wrote: [...] I don't know about others but I wouldn't write an offer with a fixed price for look into assembler dumps, reverse engineer it and find an infringement on a list of given patents so

Re: Linux, Get the facts?

2005-08-03 Thread Bernd Petrovitsch
On Tue, 2005-08-02 at 14:19 -0600, Alejandro Bonilla wrote: [...] I watched some commercials and I almost puked when I looked at the Microsoft Get the Facts for Linux vs Windows Server stuff. They have a url which is http://www.microsoft.com/getthefacts Yes, this propaganda exists

Re: Binary Drivers

2006-12-18 Thread Bernd Petrovitsch
On Fri, 2006-12-15 at 21:20 +, James Porter wrote: I think some kernel developers take to much responsibility, is there a bug in a binary driver? Send it upstream and explain to the user that it's a closed Plaese name them. AFAICS if there is a response, it is similar to your kernel is

Re: Open letter to Linux kernel developers (was Re: Binary Drivers)

2006-12-21 Thread Bernd Petrovitsch
On Wed, 2006-12-20 at 16:38 -0800, Casey Schaufler wrote: [...] The argument that a hardware company usually invokes is that, while they don't give a horse's pitute about the software itself, they do care about the information the software contains about their hardware. The concern is that

Re: PROBLEM: KB-KiB, MB - MiB, ... (IEC 60027-2)

2007-01-22 Thread Bernd Petrovitsch
On Mon, 2007-01-22 at 02:56 +0100, Krzysztof Halasa wrote: Jan Engelhardt [EMAIL PROTECTED] writes: Bleh. Except for storage, base 1024 was used for almost everything I remember. 4 MB memory meant 4096 KB, and that's still the case today. Most likely the same for transfer rates. Nope,

Re: Mark bitrevX() functions as const

2006-12-11 Thread Bernd Petrovitsch
On Mon, 2006-12-11 at 18:35 +0100, Jan Engelhardt wrote: [...] I can just second this. What should be marked const is [1]the things pointed to, not [2]the local copy of a function argument. This[2] is what I believe almost every other software project does, Yes, also for the reason to

Re: [GIT PATCH] more Driver core patches for 2.6.19

2006-12-14 Thread Bernd Petrovitsch
On Thu, 2006-12-14 at 18:47 +0100, Hans-Jürgen Koch wrote: Am Donnerstag, 14. Dezember 2006 18:34 schrieb Bernd Petrovitsch: On Thu, 2006-12-14 at 10:56 +0100, Hans-Jürgen Koch wrote: [] A small German manufacturer produces high-end AD converter cards. He sells 100 pieces per year

Re: [GIT PATCH] more Driver core patches for 2.6.19

2006-12-14 Thread Bernd Petrovitsch
On Thu, 2006-12-14 at 10:56 +0100, Hans-Jürgen Koch wrote: [] A small German manufacturer produces high-end AD converter cards. He sells 100 pieces per year, only in Germany and only with Windows drivers. He would now like to make his cards work with Linux. He has two driver programmers

Re: what will connect the fork() with its following code ? a simple example below:

2005-09-06 Thread Bernd Petrovitsch
On Tue, 2005-09-06 at 17:15 +0800, Sat. wrote: if(!(pid=fork())){ .. printk(in child process); .. }else{ . printk(in father process); . } this is a classical example, when the fork() system call runs, it will build a new process and

Re: kbuild C++

2005-09-06 Thread Bernd Petrovitsch
On Tue, 2005-09-06 at 13:23 +0200, Budde, Marco wrote: [] for one of our customers I have to port a Windows driver to Linux. Large parts of the driver's backend code consists of C++. How can I compile this code with kbuild? The C++ support (I have tested with 2.6.11) of kbuild seems to

Re: kbuild C++

2005-09-07 Thread Bernd Petrovitsch
On Tue, 2005-09-06 at 17:08 -0400, Chris Frey wrote: On Tue, Sep 06, 2005 at 01:30:34PM +0200, Bernd Petrovitsch wrote: Yes, because the official Linux kernel is pure C (using some gcc extensions). There is http://netlab.ru.is/exception/LinuxCXX.shtml but it is a) not integrated

Re: what will connect the fork() with its following code ? a simple example below:

2005-09-07 Thread Bernd Petrovitsch
On Tue, 2005-09-06 at 12:58 -0400, [EMAIL PROTECTED] wrote: On Tue, 06 Sep 2005 17:15:51 +0800, Sat. said: Not a kernel problem, please consult an intro-to-C list next time if(!(pid=fork())){ .. printk(in child process); .. }else{ .

RE: kbuild C++

2005-09-07 Thread Bernd Petrovitsch
BTW you kill threading. On Wed, 2005-09-07 at 11:13 +0200, Budde, Marco wrote: [...] That would be because the kernel is written in *C* (and some asm), *not* C++. I cannot see the connection. At the end everything gets converted to assembler/opcode. In the user space I can mix C and C++

  1   2   3   4   >