Is there any plan to newbuslize for 3-stable?

1999-08-12 Thread MIHIRA Sanpei Yoshiro
Hi. I have a question about new-bus code. Currently device style of FreeBSD-4-current is changing to newbus. But is there any plan to newbuslize for 3-stable? If my patch for pcm/ESS sound chip apply to FreeBSD, may I send-pr with old-config style? Yes, current pcm sound driver is

mmap bug

1999-08-12 Thread Oleg Derevenetz
Oh, I'm sorry, I made a mistake when posting code. I posted incorrectly patched version... This version correct : #include stdio.h #include stdlib.h #include sys/types.h #include sys/mman.h #include unistd.h #include fcntl.h #include errno.h main(int argc, char *argv[]) { int fd; int

Re: BSD-XFS Update

1999-08-12 Thread Ville-Pertti Keinonen
[EMAIL PROTECTED] (Alton, Matthew) writes: I am currently researching methods for implementing the 64-bit syscalls stat64(), fstat64(), lseek64() etc. delineated in the SGI design doc _64 Bit File Access_ by Adam Sweeney. Do the design docs indicate how inode numbers should interact with

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Dag-Erling Smorgrav
Tony Finch [EMAIL PROTECTED] writes: Kenny Drobnack [EMAIL PROTECTED] wrote: This may be a stupid question, but what's to keep from putting xfs in FreeBSD? Is there something in the licenses that says you can't use GPL'ed software and software under the BSD License together? Yes. The BSD

New tests for test(1)

1999-08-12 Thread Graham Wheeler
Hi all I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't it be a good idea to add some new tests to test(1),

Re: New tests for test(1)

1999-08-12 Thread Nadav Eiron
On Thu, 12 Aug 1999, Graham Wheeler wrote: Hi all I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't

Re: Various Questions

1999-08-12 Thread Niall Smart
-- snip -- if (pswitch) { /* * If the device is not configured up, we cannot put it in * promiscuous mode. */ if ((ifp-if_flags IFF_UP) == 0) return (ENETDOWN);

Re: New tests for test(1)

1999-08-12 Thread Dag-Erling Smorgrav
Graham Wheeler [EMAIL PROTECTED] writes: I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't it be a good

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: Or is the test for IFF_PROMISC made earlier in the code? You should only print a disabled message when it has previously been enabled so that log file watchers can always match up the up/down pairs. I've been using if.c modified

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
if (--ifp-if_pcount 0) return (0); ifp-if_flags = ~IFF_PROMISC; ---log(LOG_INFO, "%s%d: promiscuous mode disabled\n", ---ifp-if_name, ifp-if_unit); Shouldn't this be: if (ipf-if_flags

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On 12 Aug 1999 11:42:42 +0200, Dag-Erling Smorgrav wrote: NetBSD's test(1) utility has this (-nt and -ot). We should probably merge in their changes. Their code isn't useful in this case, since they've merged in a pdksh-derived version of test. How about we do the same? :-) Ciao, Sheldon.

Re: Various Questions

1999-08-12 Thread Niall Smart
Sheldon Hearn wrote: On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: Or is the test for IFF_PROMISC made earlier in the code? You should only print a disabled message when it has previously been enabled so that log file watchers can always match up the up/down pairs. I've

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Jason Thorpe
On 12 Aug 1999 11:01:06 +0200 Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: This prevents you from relicensing BSD software under the GPL. It does not prevent you from selling an OS that has both BSD and GPL bits, as long as the GPL bits come with full source. If you have an executable

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Dag-Erling Smorgrav
Jason Thorpe [EMAIL PROTECTED] writes: On 12 Aug 1999 11:01:06 +0200 Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: This prevents you from relicensing BSD software under the GPL. It does not prevent you from selling an OS that has both BSD and GPL bits, as long as the GPL bits come with

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:20:35 GMT, Niall Smart wrote: But what happens if you write a program which does whatever ioctl is required to unpromiscify an interface and run it on an unpromiscuous interface, does it print a message to syslog even though promiscuous mode was never enabled in the

Re: New tests for test(1)

1999-08-12 Thread Aaron Smith
this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. -- Aaron Smith [EMAIL PROTECTED] On Thu, Aug 12, 1999 at 11:18:50AM +0200, Graham Wheeler wrote: thinking - wouldn't it be a good idea to add some new tests to

Re: New tests for test(1)

1999-08-12 Thread Graham Wheeler
Aaron Smith wrote: this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. Portability is a Good Thing, but I write a lot of one-off scripts in which portability isn't an issue. Also, just because one uses standard

Re: New tests for test(1)

1999-08-12 Thread Bob Bishop
Hi, At 4:01 am -0700 12/8/99, Aaron Smith wrote: this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. Further, isn't test a builtin for most (all?) shells? Sounds like a can of worms to me... On Thu, Aug 12, 1999

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:26:41 GMT, Bob Bishop wrote: Further, isn't test a builtin for most (all?) shells? Sounds like a can of worms to me... If your only motivation for saying it's a can of worms is that test is usually a builtin, don't sweat it. Lots of scripts insist on using /bin/test .

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:22:39 +0200, Sheldon Hearn wrote: Their code isn't useful in this case, since they've merged in a pdksh-derived version of test. How about we do the same? :-) By the way, OpenBSD have _also_ incorporated NetBSD's test. *evil.grin* Ciao, Sheldon. To Unsubscribe:

Re: New tests for test(1)

1999-08-12 Thread Martin Cracauer
thinking - wouldn't it be a good idea to add some new tests to test(1), to compare files based on criteria like size or modification date? So far it has been policy for FreeBSD not to add options to commandline utilities that are replaceable by simple shell script constructs. Especially if

Re: how fast get real/absolute path of file

1999-08-12 Thread Assar Westerlund
"Steven Jurczyk" [EMAIL PROTECTED] writes: How fast get real / absolute path of specified file. I try use readlink, but this slow (for path /home/web/docs/index.htm must be done 4 or more (if this path have symlinks) readlink's - for /home, /home/web, /home/web/docs and

Re: libcompat proposition

1999-08-12 Thread Brian F. Feldman
On Wed, 11 Aug 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : What do you all think about growing a gnu subdirectory in src/lib/libcompat? : Things like a getopt_long implementation (yes, if it will be accepted, : I am volunteering to write it...) would

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
But what happens if you write a program which does whatever ioctl is required to unpromiscify an interface and run it on an unpromiscuous interface, does it print a message to syslog even though promiscuous mode was never enabled in the first place? Like I said, I seem to get the

Re: New tests for test(1)

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Brian F. Feldman wrote: On 12 Aug 1999, Dag-Erling Smorgrav wrote: Graham Wheeler [EMAIL PROTECTED] writes: I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this.

Re: libcompat proposition

1999-08-12 Thread Steve Kargl
Brian F. Feldman wrote: On Wed, 11 Aug 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : What do you all think about growing a gnu subdirectory in src/lib/libcompat? : Things like a getopt_long implementation (yes, if it will be accepted, : I am

Re: libcompat proposition

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Steve Kargl wrote: If you're writing unencumbered code, placing it under libcompat/gnu may lead to confusion because all other directory paths containing gnu contain GPL'd code. Just stick it into libcompat. That doesn't fit with the current organization. Choose:

Re: libcompat proposition

1999-08-12 Thread Warner Losh
In message [EMAIL PROTECTED] Steve Kargl writes: : If you're writing unencumbered code, placing it under : libcompat/gnu may lead to confusion because all other : directory paths containing gnu contain GPL'd code. : Just stick it into libcompat. Or libiberty :-) That way we can have a GPL-free

Re: libcompat proposition

1999-08-12 Thread Steve Kargl
Brian F. Feldman wrote: On Thu, 12 Aug 1999, Steve Kargl wrote: If you're writing unencumbered code, placing it under libcompat/gnu may lead to confusion because all other directory paths containing gnu contain GPL'd code. Just stick it into libcompat. That doesn't fit with the

Re: libcompat proposition

1999-08-12 Thread Warner Losh
In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : There : is simply no reason to assume that anything under a gnu directory is GPLd, : or that anything GPLd is going to be under a gnu directory (which it's not.) I'm afraid there is. It has been stated many times in the past that all

Whither makefiles for src/crypto/telnet/* ?

1999-08-12 Thread Nick Sayer
A long time ago I got some kinky modifications to telnet from a place in Germany the purpose of which was to encrypt telnet sessions. It did a Diffie-Hellman up front and used the common secret as a DES key sort of the way Kerberos does. It was called SRA telnet. It was vulnerable to

Re: libcompat proposition

1999-08-12 Thread Ben Rosengart
On Thu, 12 Aug 1999, Steve Kargl wrote: Brian F. Feldman wrote: If you're writing unencumbered code, placing it under libcompat/gnu may lead to confusion because all other directory paths containing gnu contain GPL'd code. Just stick it into libcompat. How about libcompat/gnuish?

Re: FreeBSD 3.2 on a ThinkPad 360c [keyboard not working]

1999-08-12 Thread David E. Cross
I am attempting to get FreeBSD 3.2 and/or 4.0 to go on a TP 360c. The problem I am having is that the keyboard works all the way up to sysinstall. I can use the keyboard in the visual kernel config/etc. I searched and found under 2.2 they suggested setting flags 0x10 on syscons. 0x10

Re: hey

1999-08-12 Thread Marc Nicholas
That's because the resolver on the Sun box is archaic, whereas FreeBSD has an up-to-date (and legal) resolver. Can't remember which RFC defined the '_' as being illegal off-hand...but all modern resolvers will react the same. That site admin must be running an old implementation of BIND (or

Re: hey

1999-08-12 Thread Bill Fumerola
On Thu, 12 Aug 1999, Michael Mannsberger wrote: ping www.atayatirim.com.tr works under Sun but not in FreeBSD - why? FreeBSD doesn't like "_" in a URL Uhm, that's a hostname, but yes, FreeBSD doesn't like it. Windows is okay with it, however.

interacting with ISA PnP devices.

1999-08-12 Thread tbuswell
Hi, What is the path of least resistance for getting an unsupported ISA PnP device to the point where you can do I/O to it (inb,outb)? Do I need a driver, or is there some general purpose way for getting the device "up" to the point that you can use /dev/io and a user space application? (on

Re: Whither makefiles for src/crypto/telnet/* ?

1999-08-12 Thread Travis Cole
On Thu, Aug 12, 1999 at 11:31:27AM -0700, Nick Sayer wrote: In the scrypto section, I see that the telnet stuff is set aside nicely in its own spot. I was able to add my patches just fine, but it appears that the Makefiles are somewhere else. Maybe in with the kerberos stuff or something?

Re:(2) hey

1999-08-12 Thread Evren Yurtesen
Well, I am the person who has this problem. The RFCs does not explicitly say that we should not use underscore character as far as I understood. But it suggests which characters we should use. Also in RFC1033 it says (well the status of this one is UNKNOWN though)

Re: changing root device to ...

1999-08-12 Thread John-Mark Gurney
Cillian Sharkey scribbled this message on Aug 12: is the system still booting off the IDE disk (if present) ? Yes. But not from the SCSI You can try setting the BIOS to boot from the SCSI disk which should do the trick..unless you have a crappy BIOS that doesn't let you do that.. :(

Re:(2) hey

1999-08-12 Thread Glenn Chisholm
Well, I am the person who has this problem. The RFCs does not explicitly say that we should not use underscore character as far as I understood. But it suggests which characters we should use. RFC 952 1. A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24

Re: (2) hey

1999-08-12 Thread Louis A. Mamakos
Well, I am the person who has this problem. The RFCs does not explicitly say that we should not use underscore character as far as I understood. But it suggests which characters we should use. RFC 952 1. A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24

Re:(2) hey

1999-08-12 Thread Doug
On Fri, 13 Aug 1999, Evren Yurtesen wrote: Well, I am the person who has this problem. The RFCs does not explicitly say that we should not use underscore character as far as I understood. This is a common misunderstanding. The only valid characters in hostnames to be used on the

Re: (2) hey

1999-08-12 Thread Glenn Chisholm
But the DNS is used to hold all sorts of information. For example, how do you reconcile domain names like: 42.10.202.144.IN-ADDR.ARPA in the DNS? It violates the "starts with alpha" "requirement" in 952 and 1101 that you quotes, yet we use these things all the time. In fact, you

Re: (2) hey

1999-08-12 Thread jack
Today Louis A. Mamakos wrote: RFC 952 1. A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit

Re: (2) hey

1999-08-12 Thread Doug
On Thu, 12 Aug 1999, Louis A. Mamakos wrote: But the DNS is used to hold all sorts of information. For example, how do you reconcile domain names like: 42.10.202.144.IN-ADDR.ARPA in the DNS? It violates the "starts with alpha" "requirement" in 952 and 1101 E.. even

Re: (2) hey

1999-08-12 Thread Glenn Chisholm
How do I reconcile it? Well I must admit that I have not seen that one before. However just because there is a domain out there that is incorrect and will resolve does not mean that we should allow others. The way I reconcile this is that we need a patch for the resolver and I will be sure

Re: (2) hey

1999-08-12 Thread Louis A. Mamakos
That IS a violation of the standard, since A records are not valid for hosts in in-addr.arpa. And next I suppose you'll tell me that PTR records are not valid outsize of the IN-ADDR.ARPA portion of the DNS namespace? What people really miss is that the DNS is a distributed database

Re: Q: panic: pipeinit: cannot allocate pipe -- out of kvm -- code = 3

1999-08-12 Thread David Scheidt
On Thu, 12 Aug 1999, Addr.com Web Hosting wrote: It happened more often then I am comfortable with (twice per day on one occasion). This is a machine running FreeBSD 3.0-STABLE on dual PII 400 with 1GB of ram and a DPT raid card. The machine is running semi-heavy load

Re: libcompat proposition

1999-08-12 Thread Jamie Howard
On Thu, 12 Aug 1999, Tim Vanderhoek wrote: src/lib/libgnucompat seems to be the best suggestion so far. I wonder where the line between libgnucompat and libfreebsdextension is, though. I've only been active here a few weeks but I've grown used to the "go ahead and do it" I know I'm about to

Re: STAILQ macros..

1999-08-12 Thread John Polstra
In article [EMAIL PROTECTED], Daniel O'Connor [EMAIL PROTECTED] wrote: I am looking at the STAILQ macros defined in sys/queue.h and I am curious why it is necessary to declare stqh_last in the STAILQ_HEAD as a pointer to pointer, rather than just a pointer? (like the head pointer) When the

Re: (2) hey

1999-08-12 Thread Warner Losh
In message [EMAIL PROTECTED] "Louis A. Mamakos" writes: : It violates the "starts with alpha" "requirement" in 952 and 1101 : that you quotes, yet we use these things all the time. That requirement has been relaxed. See RFC 1123. Bottom line is that _ is an illegal character in a hostname,

Re: (2) hey

1999-08-12 Thread Warner Losh
In message 25455.934497542@localhost "Jordan K. Hubbard" writes: : So Solaris does the right thing by understanding underscore I guess. : Since it is not forbidden to use it in hostnames. : : It does not do the right thing and it is indeed forbidden. :) Also, all modern versions of bind

Threaded X libraries

1999-08-12 Thread Stephen Hocking-Senior Programmer PGS Tensor Perth
I'm attempting to build the X11 libs with the thread safety stuff (I beleive Linux can already be built like this) and have discovered when linking that we don't have the getpwnam_r getpwuid_r functions in out libc_r. Is anyone planning on adding these? Stephen It's all part of my

Re: FreeBSD 3.2 on a ThinkPad 360c [keyboard not working]

1999-08-12 Thread Kazutaka YOKOTA
I am attempting to get FreeBSD 3.2 and/or 4.0 to go on a TP 360c. The problem I am having is that the keyboard works all the way up to sysinstall. I can use the keyboard in the visual kernel config/etc. I searched and foun d under 2.2 they suggested setting flags 0x10 on syscons. 0x10

Re: Is there any plan to newbuslize for 3-stable?

1999-08-12 Thread MIHIRA Sanpei Yoshiro
If my patch for pcm/ESS sound chip apply to FreeBSD, may I send-pr with old-config style? Yes, current pcm sound driver is old-config, but "Cameron Grant" [EMAIL PROTECTED] is working to newbuslize. I create patch for 4-current sys/i386/isa/snd. It fix for pcm/ESS-ISA sound driver.

Re: libcompat proposition

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Tim Vanderhoek wrote: On Thu, Aug 12, 1999 at 02:21:11PM -0400, Brian F. Feldman wrote: I don't care if most of the directories called "gnu" in the current tree contain GPLd code. How I had to read your message about 4

Re: FreeBSD 3.2 on a ThinkPad 360c [keyboard not working]

1999-08-12 Thread David E. Cross
You are quite right that the code in question was just moved from sc to atkbd and there is essentially no difference between the two versions. This is the first time that I hear the flag 0x10 for sc works in 2.X, but the flag 0x4 for atkbd does not in 3.1 or later :-( I think I heard

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Thu, Aug 12, 1999 at 12:02:19PM +0100, Tony Finch wrote: Matthew Dillon [EMAIL PROTECTED] wrote: One solution would be to map clean R+W pages RO and force a write fault to occur, allowing the system to recognize that there are too many dirty pages in vm_fault before it is too

Re: Q: panic: pipeinit: cannot allocate pipe -- out of kvm -- code = 3

1999-08-12 Thread Matthew Dillon
:On Thu, 12 Aug 1999, Addr.com Web Hosting wrote: : : It happened more often then I am comfortable with (twice per day on one : occasion). This is a machine running FreeBSD 3.0-STABLE on dual PII 400 : with 1GB of ram and a DPT raid card. The machine is running semi-heavy load :

Re: mmap bug

1999-08-12 Thread Mark Newton
Arun Sharma wrote: The second alternative - to mark system daemons as special sounds much more attractive. Ok, now define the difference between "system daemons" and any other daemon (or, for that matter, any other process). - mark Mark Newton

Re: New tests for test(1)

1999-08-12 Thread Peter Jeremy
I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. I've written programs to do this before as well. A more portable approach is find file1 -newer file2 ... thinking - wouldn't it be a good idea to add some new tests to test(1),

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Fri, Aug 13, 1999 at 03:04:43PM +0930, Mark Newton wrote: Arun Sharma wrote: The second alternative - to mark system daemons as special sounds much more attractive. Ok, now define the difference between "system daemons" and any other daemon (or, for that matter, any other

Max simultaneous NFS mounts?

1999-08-12 Thread Gregory Sutter
What is the (default) maximum number of simultanous NFS mounts in FreeBSD 2.2.8 and 3.2? I was looking at 3.2 and it appears that 63 is the max, and this is tunable with kernel config option NFS_MUIDHASHSIZ. Is this correct? What is the maximum possible setting? Last, where could I have

Is there any plan to newbuslize for 3-stable?

1999-08-12 Thread MIHIRA Sanpei Yoshiro
Hi. I have a question about new-bus code. Currently device style of FreeBSD-4-current is changing to newbus. But is there any plan to newbuslize for 3-stable? If my patch for pcm/ESS sound chip apply to FreeBSD, may I send-pr with old-config style? Yes, current pcm sound driver is

mmap bug

1999-08-12 Thread Oleg Derevenetz
Oh, I'm sorry, I made a mistake when posting code. I posted incorrectly patched version... This version correct : #include stdio.h #include stdlib.h #include sys/types.h #include sys/mman.h #include unistd.h #include fcntl.h #include errno.h main(int argc, char *argv[]) { int fd; int i;

Re: changing root device to ...

1999-08-12 Thread Cillian Sharkey
is the system still booting off the IDE disk (if present) ? Yes. But not from the SCSI You can try setting the BIOS to boot from the SCSI disk which should do the trick..unless you have a crappy BIOS that doesn't let you do that.. :( With fdisk I set the partition as bootable on the SCSI

Re: BSD-XFS Update

1999-08-12 Thread Ville-Pertti Keinonen
matthew.al...@anheuser-busch.com (Alton, Matthew) writes: I am currently researching methods for implementing the 64-bit syscalls stat64(), fstat64(), lseek64() etc. delineated in the SGI design doc _64 Bit File Access_ by Adam Sweeney. Do the design docs indicate how inode numbers should

Re: libcompat proposition

1999-08-12 Thread Ville-Pertti Keinonen
ch...@calldei.com (Chris Costello) writes: I'm in favor of a libgnucompat rather than gnu functions in libcompat. And how would a libgnucompat be different from libiberty? Except of course that it would be maintained by the FreeBSD folks... Or that it would be maintained at all. ;--)

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Dag-Erling Smorgrav
Tony Finch d...@dotat.at writes: Kenny Drobnack kdrob...@mission.mvnc.edu wrote: This may be a stupid question, but what's to keep from putting xfs in FreeBSD? Is there something in the licenses that says you can't use GPL'ed software and software under the BSD License together? Yes. The

New tests for test(1)

1999-08-12 Thread Graham Wheeler
Hi all I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't it be a good idea to add some new tests to test(1),

Re: New tests for test(1)

1999-08-12 Thread Nadav Eiron
On Thu, 12 Aug 1999, Graham Wheeler wrote: Hi all I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't

Re: Various Questions

1999-08-12 Thread Niall Smart
-- snip -- if (pswitch) { /* * If the device is not configured up, we cannot put it in * promiscuous mode. */ if ((ifp-if_flags IFF_UP) == 0) return (ENETDOWN);

Re: New tests for test(1)

1999-08-12 Thread Dag-Erling Smorgrav
Graham Wheeler g...@cequrux.com writes: I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but it set me thinking - wouldn't it be a good

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: Or is the test for IFF_PROMISC made earlier in the code? You should only print a disabled message when it has previously been enabled so that log file watchers can always match up the up/down pairs. I've been using if.c modified exactly

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
if (--ifp-if_pcount 0) return (0); ifp-if_flags = ~IFF_PROMISC; ---log(LOG_INFO, %s%d: promiscuous mode disabled\n, ---ifp-if_name, ifp-if_unit); Shouldn't this be: if (ipf-if_flags

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On 12 Aug 1999 11:42:42 +0200, Dag-Erling Smorgrav wrote: NetBSD's test(1) utility has this (-nt and -ot). We should probably merge in their changes. Their code isn't useful in this case, since they've merged in a pdksh-derived version of test. How about we do the same? :-) Ciao, Sheldon.

Re: Various Questions

1999-08-12 Thread Niall Smart
Sheldon Hearn wrote: On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: Or is the test for IFF_PROMISC made earlier in the code? You should only print a disabled message when it has previously been enabled so that log file watchers can always match up the up/down pairs. I've

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Jason Thorpe
On 12 Aug 1999 11:01:06 +0200 Dag-Erling Smorgrav d...@flood.ping.uio.no wrote: This prevents you from relicensing BSD software under the GPL. It does not prevent you from selling an OS that has both BSD and GPL bits, as long as the GPL bits come with full source. If you have an

Re: BSD XFS Port BSD VFS Rewrite

1999-08-12 Thread Dag-Erling Smorgrav
Jason Thorpe thor...@nas.nasa.gov writes: On 12 Aug 1999 11:01:06 +0200 Dag-Erling Smorgrav d...@flood.ping.uio.no wrote: This prevents you from relicensing BSD software under the GPL. It does not prevent you from selling an OS that has both BSD and GPL bits, as long as the GPL bits

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:20:35 GMT, Niall Smart wrote: But what happens if you write a program which does whatever ioctl is required to unpromiscify an interface and run it on an unpromiscuous interface, does it print a message to syslog even though promiscuous mode was never enabled in the

Re: New tests for test(1)

1999-08-12 Thread Aaron Smith
this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. -- Aaron Smith aa...@mutex.org On Thu, Aug 12, 1999 at 11:18:50AM +0200, Graham Wheeler wrote: thinking - wouldn't it be a good idea to add some new tests to

Re: mmap bug

1999-08-12 Thread Tony Finch
Matthew Dillon dil...@apollo.backplane.com wrote: One solution would be to map clean R+W pages RO and force a write fault to occur, allowing the system to recognize that there are too many dirty pages in vm_fault before it is too late and flush some of them. The downside of this

Re: New tests for test(1)

1999-08-12 Thread Graham Wheeler
Aaron Smith wrote: this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. Portability is a Good Thing, but I write a lot of one-off scripts in which portability isn't an issue. Also, just because one uses standard

Re: New tests for test(1)

1999-08-12 Thread Bob Bishop
Hi, At 4:01 am -0700 12/8/99, Aaron Smith wrote: this seems undesirable to me, since using it immediately makes your shell scripts nonportable. i liked the ls -t suggestion though. Further, isn't test a builtin for most (all?) shells? Sounds like a can of worms to me... On Thu, Aug 12, 1999 at

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:26:41 GMT, Bob Bishop wrote: Further, isn't test a builtin for most (all?) shells? Sounds like a can of worms to me... If your only motivation for saying it's a can of worms is that test is usually a builtin, don't sweat it. Lots of scripts insist on using /bin/test .

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 13:15:52 +0200, Graham Wheeler wrote: Portability is a Good Thing, but I write a lot of one-off scripts in which portability isn't an issue. Not to mention that following NetBSD's lead on issues relating to portability probably is seldom a bad idea. :-) Give PR 13091 a

Re: New tests for test(1)

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:22:39 +0200, Sheldon Hearn wrote: Their code isn't useful in this case, since they've merged in a pdksh-derived version of test. How about we do the same? :-) By the way, OpenBSD have _also_ incorporated NetBSD's test. *evil.grin* Ciao, Sheldon. To Unsubscribe: send

Re: New tests for test(1)

1999-08-12 Thread Martin Cracauer
thinking - wouldn't it be a good idea to add some new tests to test(1), to compare files based on criteria like size or modification date? So far it has been policy for FreeBSD not to add options to commandline utilities that are replaceable by simple shell script constructs. Especially if

Re: how fast get real/absolute path of file

1999-08-12 Thread Assar Westerlund
Steven Jurczyk st...@home.pl writes: How fast get real / absolute path of specified file. I try use readlink, but this slow (for path /home/web/docs/index.htm must be done 4 or more (if this path have symlinks) readlink's - for /home, /home/web, /home/web/docs and /home/web/docs/index.htm). Is

Re: Recreating LKM

1999-08-12 Thread Assar Westerlund
Jung, Michael mj...@npc.net writes: Ok How does one recreate /dev/lkm for 4.0-Current? It is no longer in /dev/MAKEDEV. There's no LKM support in -current any longer. /assar To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the body of the message

need some tools

1999-08-12 Thread free bsd
hello, I would like to know, if there a way (a tools) to make a partition fat16. thanks. -- flav To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the body of the message

Re: libcompat proposition

1999-08-12 Thread Brian F. Feldman
On Wed, 11 Aug 1999, Warner Losh wrote: In message pine.bsf.4.10.9908112337400.81521-100...@janus.syracuse.net Brian F. Feldman writes: : What do you all think about growing a gnu subdirectory in src/lib/libcompat? : Things like a getopt_long implementation (yes, if it will be accepted, : I

Re: need some tools

1999-08-12 Thread Warner Losh
In message 199908121645.qaa13...@hermes.epita.fr free bsd writes: : I would like to know, if there a way (a tools) to make a partition fat16. fdisk to mark the partion as fat16, newfs_msdos to splat a file system onto it. Warner To Unsubscribe: send mail to majord...@freebsd.org with

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
But what happens if you write a program which does whatever ioctl is required to unpromiscify an interface and run it on an unpromiscuous interface, does it print a message to syslog even though promiscuous mode was never enabled in the first place? Like I said, I seem to get the

Re: New tests for test(1)

1999-08-12 Thread Brian F. Feldman
On 12 Aug 1999, Dag-Erling Smorgrav wrote: Graham Wheeler g...@cequrux.com writes: I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this. In the end I worked around this by using make(1), but

freebsd4.0 (a little bit offtopic)

1999-08-12 Thread Martin Lizner
gentlemen, i am writing a short article on differences between 4.0 vs 3.2 versions for our corporate magazine - it's focused especially on networking/hacking. Is there a list of new features/approach ? Or what is your experience ? (i am testing myself, but more people == more interesting

Re: New tests for test(1)

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Brian F. Feldman wrote: On 12 Aug 1999, Dag-Erling Smorgrav wrote: Graham Wheeler g...@cequrux.com writes: I was writing a script yesterday, and I wanted to have a test to compare the modification time of two files. test(1) doesn't have the ability to do this.

Re: need some tools

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Warner Losh wrote: In message 199908121645.qaa13...@hermes.epita.fr free bsd writes: : I would like to know, if there a way (a tools) to make a partition fat16. fdisk to mark the partion as fat16, newfs_msdos to splat a file system onto it. Warner This should

Re: libcompat proposition

1999-08-12 Thread Steve Kargl
Brian F. Feldman wrote: On Wed, 11 Aug 1999, Warner Losh wrote: In message pine.bsf.4.10.9908112337400.81521-100...@janus.syracuse.net Brian F. Feldman writes: : What do you all think about growing a gnu subdirectory in src/lib/libcompat? : Things like a getopt_long implementation

Re: libcompat proposition

1999-08-12 Thread Brian F. Feldman
On Thu, 12 Aug 1999, Steve Kargl wrote: If you're writing unencumbered code, placing it under libcompat/gnu may lead to confusion because all other directory paths containing gnu contain GPL'd code. Just stick it into libcompat. That doesn't fit with the current organization. Choose:

  1   2   >