Re: bin/27205: Listing all users in the passwd file

2001-05-09 Thread Peter Pentchev
I'd think id(1) would be a more proper place, as it already knows how to format various passwd(5) and group(5) information. How about the attached patch? (and I'm probably starting another of those bikesheds as to whether new options should be added to existing utilities..) G'luck, Peter --

Re: sysctl(8) and opaque MIB entries

2001-05-07 Thread Peter Pentchev
On Mon, May 07, 2001 at 07:24:39PM +0200, Dag-Erling Smorgrav wrote: Sheldon Hearn [EMAIL PROTECTED] writes: On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: Yes it will, with -X. The interesting question is why there isn't an option to make it display just one variable in hex,

Re: sysctl(8) and opaque MIB entries

2001-05-07 Thread Peter Pentchev
On Mon, May 07, 2001 at 07:43:39PM +0200, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Sheldon Hearn writes: On 07 May 2001 18:51:22 +0200, Dag-Erling Smorgrav wrote: Yes it will, with -X. The interesting question is why there isn't an option to make it display just one

Re: sysctl(8) and opaque MIB entries

2001-05-07 Thread Peter Pentchev
On Mon, May 07, 2001 at 07:52:15PM +0200, Dag-Erling Smorgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: How about e.g. 'sysctl -a hw', which still shows *all* MIB's? At least on ref5 as of this very moment.. Yes, because '-a' means 'show all non-opaque' and 'hw' is ignored. OK, so

Re: Trouble with 4.3-RELEASE compiler

2001-04-28 Thread Peter Pentchev
On Fri, Apr 27, 2001 at 05:15:31PM -0700, David O'Brien wrote: On Fri, Apr 27, 2001 at 07:40:22PM -0300, Joao Carlos Mendes Luis wrote: I was installing a squid server with 4.3-RELEASE, and found that FreeBSD has now a bug in the compiler that affects squid. The default compilation of

Re: More PCI-PCMCIA bridge stuff

2001-04-26 Thread Peter Pentchev
On Thu, Apr 26, 2001 at 02:02:40PM +0200, Lists Account wrote: Hi All Ok, the newcard stuff under version 5 picks up my bridge fine, and it finds my wi0 (orinoco gold card) perfectly, this is all great and I was rather ecstatic as I watched it boot and tell me all this... However the

Re: UFS block size vs. write speed

2001-04-24 Thread Peter Pentchev
On Tue, Apr 24, 2001 at 10:43:29AM +0100, Bob Bishop wrote: Hi, At 11:35 24/04/01 +0200, Niek Bergboer wrote: [...] In fact, I couldn't care less if the allocated blocks contain random data (rather than zeros), since I'll be overwriting them immediately. You *should* care: the blocks

Re: PCI - PCMCIA Bridge Adapter

2001-04-23 Thread Peter Pentchev
On Mon, Apr 23, 2001 at 08:25:56PM +0200, Lists Account wrote: Hi All, I just was wondering if anyone out there knew of any drivers that support the pccard PCI - PCMCIA bridge adapter, also made by pccard (see www.pccard.co.uk), similar to the ISA - PCMICIA bridge adapter that is currently

Re: Dilemma.

2001-04-19 Thread Peter Pentchev
On Thu, Apr 19, 2001 at 11:31:52AM -0400, Paul Halliday wrote: Hi. I will try to make this quick. I am writting a little monitoring script in bash and I have run into a little stumbling block. Basically, one of the checks this program will perform is to take a fingerprint of the

Re: Idea about modules build

2001-04-16 Thread Peter Pentchev
On Sat, Apr 14, 2001 at 07:51:31PM +0400, Vladimir B. Grebenschikov wrote: I have idea about modules build/install process: May be it need to create some makefile variable like KERNEL_MODULES, that can be defined in /etc/make.conf to limit list of modules to build/install, it is not

Re: Quota reporting is inaccurate.

2001-04-14 Thread Peter Pentchev
On Fri, Apr 13, 2001 at 03:48:28PM -0600, Matt Simerson wrote: Another thought is that this user may have had files still open. Even if you "remove" a file, it really does not go away until the last open handle is closed. That seems like the most likely possibility. However, only one

Re: vm balance

2001-04-14 Thread Peter Pentchev
On Sat, Apr 14, 2001 at 09:34:26AM -0500, Matthew D. Fuller wrote: On Thu, Apr 12, 2001 at 02:24:36PM -0700, a little birdie told me that Matt Dillon remarked Without vmiodirenable turned on, any directory exceeding vfs.maxmallocbufspace becomes extremely expensive to work with

Re: netinet/accf_http.c usage ?

2001-04-12 Thread Peter Pentchev
On Thu, Apr 12, 2001 at 07:52:39AM +, [EMAIL PROTECTED] wrote: Hi, I can't seem decipher the functionality of the accf_http.c file in the netinet directory ... I also couldn't find any documents that describe its purpose is it an HTTP filter or something like that ? Have you

Re: Who call setitimer( )?

2001-04-09 Thread Peter Pentchev
On Sun, Apr 08, 2001 at 03:07:25AM +0800, ªL­^¶W wrote: Dear all: I trace the FreeBSD kernel source , and I can't find program call the function "setitimer()", Is it a callout function to call it ? I will appreciate if anyone give me some advice setitimer() is defined in

Re: openssl/mdX.h and mdX.h name clashes

2001-04-02 Thread Peter Pentchev
On Mon, Apr 02, 2001 at 05:03:20PM +0700, Max Khon wrote: hi, there! /usr/include/mdX.h and /usr/include/openssl/mdX.h both declare structures and functions with the same name (structures are a bit different) and this is a bit troublesome for applications that want to link with both -lmd

Re: Dynamic routing table (problem solved, was: server continue dies)

2001-04-02 Thread Peter Pentchev
On Mon, Apr 02, 2001 at 02:03:37PM +0400, Dmitry Samersoff wrote: My servers had died every 12h and I spend lots of time to solve problem, I hope the result of my work is interesting for community. The main reason of server fault is overloading of dynamic routing table (netstat -nra | grep

Re: accessing ide

2001-03-28 Thread Peter Pentchev
On Wed, Mar 28, 2001 at 02:01:54PM +0200, Sandeep Kohli wrote: hi, i am writing kinda fdisk program..now when i opened /dev/hda in linux and tried to lseek to the mbr it worked but its not working in freebsd when i am trying to access /dev/wd0 i donot want to use disklabel.h thanks I think

Re: accessing ide

2001-03-28 Thread Peter Pentchev
On Wed, Mar 28, 2001 at 05:08:40AM -0800, Julian Elischer wrote: Ceri Storey wrote: On Wed, Mar 28, 2001 at 11:36:25AM +0300, Peter Pentchev wrote: [...] And btw, another part of your problem could be that FreeBSD has used ad, not wd, for ATAPI devices access for some time

Re: 4.3-RC bug in /usr/bin/netstat

2001-03-28 Thread Peter Pentchev
On Wed, Mar 28, 2001 at 03:42:10PM +0200, Jose M. Alcaide wrote: Jim Mercer wrote: netstat gets a bus error if handed the -a option and the -i option. Me too: $ uname -v FreeBSD 4.3-RC #0: Wed Mar 28 15:11:51 CEST 2001 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SATURNO $ netstat

Re: 4.3-RC bug in /usr/bin/netstat

2001-03-28 Thread Peter Pentchev
On Wed, Mar 28, 2001 at 09:19:04AM -0500, Michael Lucas wrote: Broken on a few days old -current as well: turtledawn~;netstat -ia Name Mtu Network AddressIpkts IerrsOpkts Oerrs Coll lp0* 1500 Link#1 0 00 0 0 lo0

Re: Need advice (server continue dies)

2001-03-27 Thread Peter Pentchev
On Tue, Mar 27, 2001 at 02:09:32PM +0400, Dmitry Samersoff wrote: Daniel O'Connor wrote: On 27-Mar-01 Dmitry Samersoff wrote: I also have a kernel crash dump and could post it here if no one can give me a good advice without it ;-))) If you haven't compiled the kernel with

Re: Need advice (server continue dies)

2001-03-27 Thread Peter Pentchev
On Tue, Mar 27, 2001 at 05:03:49PM +0400, Dmitry Samersoff wrote: Peter Pentchev wrote: On Tue, Mar 27, 2001 at 02:09:32PM +0400, Dmitry Samersoff wrote: Daniel O'Connor wrote: On 27-Mar-01 Dmitry Samersoff wrote: I also have a kernel crash dump and could post it here

Re: Displaying options for current NFS mounts

2001-03-25 Thread Peter Pentchev
On Sun, Mar 25, 2001 at 02:18:43PM +1000, Bruce Evans wrote: On Sat, 24 Mar 2001, Dima Dorfman wrote: I tried to export this stuff in struct statfs, but ran into a problem: I'd need the complete definitions of fs_args in sys/mount.h, but I can't include, e.g., nfs/nfs.h because the

Re: Patch to disallow the build of modules

2001-03-25 Thread Peter Pentchev
On Sun, Mar 25, 2001 at 11:23:20AM -0700, Warner Losh wrote: In message [EMAIL PROTECTED] Maxime Henrion writes: : Here is a patch to select the modules you want and don't want. : The patch is for /usr/src/sys/modules/Makefile from RELENG_4. My patch is even simpler: Index: Makefile

Re: The right way to build a new world WAS: 4.3-BETA world crashin g 4.2-RELEASE kernel ?

2001-03-23 Thread Peter Pentchev
On Thu, Mar 22, 2001 at 06:01:16PM -0700, Matt Simerson wrote: OK, let's approach this from a little different angle: Below is the appropriate entries from /usr/src/UPDATING on a FreeBSD 4-stable machine. As of 2/2/2001, the most correct and safest method for updating your FreeBSD machine

Re: kernel panic

2001-03-20 Thread Peter Pentchev
You could take a look at www.FreeBSD.org/handbook/kerneldebug.html and provide a bit more details about that crash; at the very least, a 'where' or 'bt' would be useful. After we've seen the 'where' results, it would be easier to isolate the function that caused the panic; then you could use

Re: httpfs

2001-03-17 Thread Peter Pentchev
On Sat, Mar 17, 2001 at 04:53:34PM +0100, Dag-Erling Smorgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: There was at the time - socketpair(2) had totally slipped my mind ;) Umm, you want pipe(2), not socketpair(2). Actually, I want socketpair(2). pipe(2) was what I used before

Re: httpfs

2001-03-16 Thread Peter Pentchev
On Fri, Mar 16, 2001 at 05:46:49AM +, Tony Finch wrote: Peter Pentchev [EMAIL PROTECTED] wrote: What I did was implement an 'exec' portal method, which executes a program with given arguments, obtained from the path components and portal.conf rules, and returns a - basically read-only

Re: status of KSE?

2001-03-16 Thread Peter Pentchev
On Fri, Mar 16, 2001 at 12:59:24PM +0800, David Xu wrote: Hello Julian, Friday, March 16, 2001, 12:18:15 PM, you wrote: JE David Xu wrote: I wonder status of KSE, I am dreaming rewrite our application server using kqueue+pthread(KSE), current, we use poll()+pthread because

Re: httpfs

2001-03-14 Thread Peter Pentchev
On Sat, Mar 10, 2001 at 03:15:15AM -0800, Kris Kennaway wrote: A few of us were talking on IRC tonight about how cool it would be to have an httpfs filesystem -- then it occurred to me we almost have this already, in the form of the (under-utilised) portalfs. Portalfs works by handing off

Re: Kernel compile problems

2001-03-13 Thread Peter Pentchev
On Mon, Mar 12, 2001 at 05:24:14PM -0500, Elliott Perrin wrote: I just did a cvs of src-all this morning, remade the world and am trying to compile a new kernel. I am able to make depend, but I just tried to do the make and got the following errors [TCPDEBUG compile error log snipped]

Re: Trouble with quotas on FreeBSD 4.2-STABLE

2001-03-09 Thread Peter Pentchev
On Thu, Mar 08, 2001 at 06:48:23PM -0800, Matt Dillon wrote: :I am running a system with a 50GB /home drive. One user is experiencing :inconsistencies, for him the system reports being over disk quota. :du -sk reports 1.7GB utilization, quota reports 5.2GB. I've been checking :the entire

Re: Qmail + MYSQL

2001-03-09 Thread Peter Pentchev
On Fri, Mar 09, 2001 at 06:16:16PM +0200, Mustafa Deeb wrote: hi, Qmail has the capabillity of storing Email inside a table with MYSQL and do POP3 from it as well is it better to go this approach , or the standard homedir way is better? need some openions "It depends". If you have a

Re: blow fish

2001-03-02 Thread Peter Pentchev
On Fri, Mar 02, 2001 at 01:23:01PM +0100, milunovic wrote: Does anybody have blow fish for FreeBSD or know wehere to find it? I just want to change password encription from MD5 to blow fish:o) A little question: why? MD5 seems to be secure enough. Other than that, look at the

Re: blow fish

2001-03-02 Thread Peter Pentchev
On Fri, Mar 02, 2001 at 02:26:03PM +0200, Peter Pentchev wrote: On Fri, Mar 02, 2001 at 01:23:01PM +0100, milunovic wrote: Does anybody have blow fish for FreeBSD or know wehere to find it? I just want to change password encription from MD5 to blow fish:o) A little question: why? MD5

Re: Stupid debugging pthread question

2001-03-01 Thread Peter Pentchev
On Thu, Mar 01, 2001 at 12:44:39PM -0500, Peter Dufault wrote: This is a stupid question, basically it's how to debug something. I have four cooperating p-threaded processes. One of them keeps getting a SIGSEGV with the address 0x752f422f. I'm not sure if that address is always the same,

Re: OpenSSH 2.5.1

2001-02-22 Thread Peter Pentchev
On Wed, Feb 21, 2001 at 10:23:30AM +0900, Tomoyuki Murakami wrote: --Repost--- If duplicated, ignore this. thanks. --- Hi I have made a patch to up ssh version 2.3.0(FreeBSD-current) to recently released OpenSSH 2.5.1. Too rough

Re: IOmega ZIP problem

2001-02-22 Thread Peter Pentchev
On Thu, Feb 22, 2001 at 01:19:33PM -0600, Michael C . Wu wrote: On Thu, Feb 22, 2001 at 07:40:16PM +0100, Torbjorn Kristoffersen scribbled: | Hi I'm using 4.2-RELEASE, with a parallel port ZIP drive (100M). | Whenever I copy a large file from the zip drive (for example /dev/da0s1), | the "cp"

Re: multiple IP addresses in /etc/hosts

2001-02-08 Thread Peter Pentchev
On Thu, Feb 08, 2001 at 11:41:59AM -0500, Eric Fiterman wrote: Hi: Is it possible to have an application like ping or telnet iterate through IP addresses for a given hostname, if a previous attempt fails? For example: in /etc/hosts: --- 0.0.0.1 testhost 0.0.0.2

Re: multiple IP addresses in /etc/hosts

2001-02-08 Thread Peter Pentchev
On Fri, Feb 09, 2001 at 02:06:31AM +0900, Hajimu UMEMOTO wrote: On Thu, 8 Feb 2001 18:51:50 +0200 IPv6 aware applications in base system such as telnet, ssh... do round-robbin so that it can be fall back to use IPv4 if IPv6 connection is fail. Errr.. oops. I must have been on something.

Re: unsubscribe

2001-02-07 Thread Peter Pentchev
On Tue, Feb 06, 2001 at 11:48:26PM -0500, Ed Gold wrote: To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message This would work better if you actually read the mails you're receiving, and send the update request to [EMAIL PROTECTED], not

Re: unsubscribe freebsd-hackers

2001-02-07 Thread Peter Pentchev
On Wed, Feb 07, 2001 at 12:43:00PM +0300, Dmitry Dicky wrote: unsubscribe freebsd-hackers To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message This would work better if you actually read the mails you are receiving, and send the

make -f Makefile.bsd depend fails

2001-02-05 Thread Peter Pentchev
Hi, I'm trying to write a cross-platform, cross-make compatible app. Thus, there is a Makefile.bsd and a Makefile.gnu, with Makefile being a symlink the user makes to the appropriate file. If Makefile points to Makefile.bsd, 'make depend' works fine. If, however, I invoke a make -f Makefile.bsd

Re: make -f Makefile.bsd depend fails

2001-02-05 Thread Peter Pentchev
could be improved though :) G'luck, Peter -- Do you think anybody has ever had *precisely this thought* before? On Mon, Feb 05, 2001 at 07:33:19PM +0200, Peter Pentchev wrote: Hi, I'm trying to write a cross-platform, cross-make compatible app. Thus, there is a Makefile.bsd and a Makefile.gnu

Re: Suboptimal mmap of devices on i86

2001-02-02 Thread Peter Pentchev
On Thu, Feb 01, 2001 at 01:19:24PM -0800, John Baldwin wrote: On 01-Feb-01 Doug White wrote: On Mon, 29 Jan 2001, John Baldwin wrote: Then only rename it in 4.x We can do an API change for 5.0. We'll be renaming syscall2() back to syscall() in 5.0 for example. We don't want to end

Re: EBCDIC - ASCII

2001-02-02 Thread Peter Pentchev
On Fri, Feb 02, 2001 at 12:34:47AM -0500, Louis A. Mamakos wrote: Warner Losh writes: Even the name (dd) comes from IBM's control language (JSYS?). Huh! I never realized that. //GO.SYSIN DD * ... // Where are my punch cards? :-) man 6 bcd Come to think of it, since

Re: strace

2001-02-02 Thread Peter Pentchev
On Fri, Feb 02, 2001 at 05:44:06PM +, milunovic wrote: Is there strace for FreeBSD? Do a man -k trace, you'll see manual pages about everything related to 'trace'. In particular, man 1 ktrace man 1 truss G'luck, Peter -- If this sentence were in Chinese, it would say something else.

Re: Suboptimal mmap of devices on i86

2001-02-02 Thread Peter Pentchev
On Fri, Feb 02, 2001 at 11:16:15AM -0800, John Baldwin wrote: On 02-Feb-01 Peter Pentchev wrote: On Thu, Feb 01, 2001 at 01:19:24PM -0800, John Baldwin wrote: On 01-Feb-01 Doug White wrote: On Mon, 29 Jan 2001, John Baldwin wrote: Then only rename it in 4.x We can do an API

ncurses tic(1)

2001-02-01 Thread Peter Pentchev
Is there a way to build tic(1) from the ncurses distribution in src/contrib/ncurses? I know there is one in the ncurses port, but for some reason it is not built in the base system. How do I go about enabling it in the build process? There are also several other utilities in

Re: EBCDIC - ASCII

2001-01-31 Thread Peter Pentchev
On Wed, Jan 31, 2001 at 02:37:43PM -0500, Garance A Drosihn wrote: [snip good explanation why EBCDIC encoding diffs matter] Now, it's perfectly reasonable to try 'dd's conversion, and see if that works for you. But if it doesn't, then rummage around thru the ports collection, and see if

Re: escape sequence for 'Ic' terminal capability

2001-01-31 Thread Peter Pentchev
On Tue, Jan 09, 2001 at 10:05:01AM +0200, Peter Pentchev wrote: Hi, I'm thinking of messing with the syscons ioctl handler to allow setting of color values - all EGA- and VGA-compatible video controllers allow this. The idea is to later define my termcap(5) entry to let ncurses deal

Re: Bash2 removes SSH_CLIENT from the environment

2001-01-30 Thread Peter Pentchev
On Mon, Jan 29, 2001 at 03:09:30PM -0500, Patrick Bihan-Faou wrote: Hi, I am writing some script that looks for the SSH_CLIENT environment variable. As specified in the sshd(8) man page, this variable should contain the IP address of the client, the port number on the client side and the

Re: packet redirection design problem [Divert Sockets Fragmentation revisited]

2001-01-27 Thread Peter Pentchev
On Fri, Jan 26, 2001 at 09:00:54PM +0100, mouss wrote: "IP filtering engines" that do something to packet based on rule matching have a problem when fragmentation comes to play. In the case of a "packet redirector' such as divert, the problem is that only the first fragment will match the

Re: Dramatic cron changes are premature Was: Re: cvs commit: src/usr.sbin/cron/cron cron.8 cron.c cron.h

2001-01-21 Thread Peter Pentchev
On Sun, Jan 21, 2001 at 07:33:43PM -0800, Doug Barton wrote: You need to back out your changes and let the people who are proposing a more complete solution which has been widely discussed and agreed to have time to finish their work and send it to -arch for more discussion. Your

Re: Can I do a make world only for PentiumPro?

2001-01-18 Thread Peter Pentchev
On Thu, Jan 18, 2001 at 09:15:16AM +0100, Micke Josefsson wrote: [snip] Hmm, come to think of it: Can I use -O to get even more trimmed code? And where do I put it? There must be some file somewhere that contains this info, must there not? Look at the /etc/make.conf file and 'man 5

stupid CVS question

2001-01-18 Thread Peter Pentchev
Sorry if this is the wrong list - and I guess it is.. When I do a 'cvs diff' between branches, and there are files on one branch that are not on the other, CVS reports 'tag whatever is not in filename'. Is there a way to make it diff the file against /dev/null or something, so I could use 'cvs

Re: stupid CVS question

2001-01-18 Thread Peter Pentchev
On Thu, Jan 18, 2001 at 12:43:26PM +0200, Peter Pentchev wrote: Sorry if this is the wrong list - and I guess it is.. When I do a 'cvs diff' between branches, and there are files on one branch that are not on the other, CVS reports 'tag whatever is not in filename'. Is there a way to make

Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-17 Thread Peter Pentchev
On Wed, Jan 17, 2001 at 07:47:23AM +0100, Walter W. Hop wrote: The exploit managed to start inetd, camped on the specified port I guess, if it doesn't exist already, that it wouldn't be so hard to create a small patch to the kernel, so that only processes owned by root, or a certain

Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-17 Thread Peter Pentchev
On Wed, Jan 17, 2001 at 10:17:03AM +, David Malone wrote: On Wed, Jan 17, 2001 at 10:33:30AM +0200, Peter Pentchev wrote: I've actually been thinking along the lines of something like that. A bit more strict access control though - bind() on AF_INET and/or AF_INET6 disabled

Re: Permissions on crontab..

2001-01-17 Thread Peter Pentchev
On Wed, Jan 17, 2001 at 10:28:22AM +, David Malone wrote: On Wed, Jan 17, 2001 at 12:18:42AM -0500, [EMAIL PROTECTED] wrote: Why is crontab suid root? I say to myself "To update /var/cron/tabs/ and to signal cron". Could crontab run suid 'cron'? If those are the only two

Re: pppd mkdir diff

2001-01-16 Thread Peter Pentchev
On Tue, Jan 16, 2001 at 01:32:13PM +0100, mouss wrote: These are probably cosmetic comments, but here they are anyway... At 09:54 13/01/01 +, W.H.Scholten wrote: +char *dirname(char *path) { + char *slash; + + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1

Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Peter Pentchev
On Tue, Jan 09, 2001 at 05:32:29PM +0900, Kazutaka YOKOTA wrote: syscons is already capable of changing forground and background colors via escape sequences. Is it not sufficient for your intended application? Kazu Since I received the same question in private mail more than once, I

Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Peter Pentchev
On Tue, Jan 09, 2001 at 06:24:30PM +0900, Kazutaka YOKOTA wrote: On Tue, Jan 09, 2001 at 05:32:29PM +0900, Kazutaka YOKOTA wrote: syscons is already capable of changing forground and background colors via escape sequences. Is it not sufficient for your intended application? Kazu

Re: sswrap broken ?

2001-01-09 Thread Peter Pentchev
This post would be better suited for the -ports mailing list, as it is a list which deals specifically with the FreeBSD Ports Collection. Also, one of the first people you could ask about a port problem would be the port maintainer as specified in the Makefile. In this case, it is [EMAIL

Re: gmake to make

2001-01-09 Thread Peter Pentchev
On Tue, Jan 09, 2001 at 04:11:18PM -0800, John Baldwin wrote: On 09-Jan-01 Glenn Johnson wrote: How can I convert the following gmake syntax into something that FreeBSD's make can understand? %.x: %.o libtinker.a ${F77} ${LINKFLAGS} -o $@ $^ ${LIBS} .o.x:

escape sequence for 'Ic' terminal capability

2001-01-08 Thread Peter Pentchev
Hi, I'm thinking of messing with the syscons ioctl handler to allow setting of color values - all EGA- and VGA-compatible video controllers allow this. The idea is to later define my termcap(5) entry to let ncurses deal with color setting. termcap(5) lists the 'cc' - 'can change color' and 'Ic'

more than 8 colors in console?

2001-01-04 Thread Peter Pentchev
Hi, I'm writing a console app, which needs to be quite colorful, and to use customizable colors. Unfortunately, with ncurses, right after start_color(), I get a can_change_color() == FALSE. Besides, COLORS is defined to as many as the Co termcap capability, which is 8. Well, all (well, most

Re: Just how standard is APM?

2001-01-04 Thread Peter Pentchev
On Fri, Jan 05, 2001 at 07:48:48AM +0200, Graham Wheeler wrote: Warner Losh wrote: APM is standard. Except when it is broken in some brain damaged ways. However, you likely have your apm device disabled in your kernel and all you need to do is enable it. Nope - as I said, I

Re: waiting for new files in a directory

2000-12-28 Thread Peter Pentchev
On Thu, Dec 28, 2000 at 12:23:12PM +1300, Dan Langille wrote: On 27 Dec 2000, at 19:56, Peter Pentchev wrote: On Wed, Dec 27, 2000 at 09:16:34AM -0800, Alfred Perlstein wrote: * Dan Langille [EMAIL PROTECTED] [001226 23:50] wrote: My idea is to have a daemon, or something

Re: waiting for new files in a directory

2000-12-28 Thread Peter Pentchev
On Thu, Dec 28, 2000 at 11:36:50PM +1300, Dan Langille wrote: On 28 Dec 2000, at 11:29, Volker Stolz wrote: Am 28. Dec 2000 um 10:33 MET schrieb Dan Langille: What about a daemon signalling a waiting perl script? Is it an issue if the daemon signals the perl script when it's already

Re: waiting for new files in a directory

2000-12-28 Thread Peter Pentchev
On Thu, Dec 28, 2000 at 01:35:08PM +0100, Dag-Erling Smorgrav wrote: What are you guys smoking? Use cron to run a spool scanning job every minute or so, and use a lock file to make sure one doesn't start until the previous one is done. Note that reliable locking is non-trivial in Perl; a

Re: waiting for new files in a directory

2000-12-28 Thread Peter Pentchev
On Thu, Dec 28, 2000 at 01:44:34PM +0100, Dag-Erling Smorgrav wrote: Volker Stolz [EMAIL PROTECTED] writes: On Thu, Dec 28, 2000 at 01:35:08PM +0100, Dag-Erling Smorgrav wrote: What are you guys smoking? *shrug* Can you spell "event-driven"? There are ways to do things much more

Re: Boot process robustness

2000-12-28 Thread Peter Pentchev
On Thu, Dec 28, 2000 at 03:31:55PM +0100, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], "Walter W. Ho p" writes: [snip] 2. Automatic file system checks In case of a powercycle or crash, it could be that a filesystem needs fixing. Now I don't know much about fs internals, but

Re: waiting for new files in a directory

2000-12-27 Thread Peter Pentchev
On Wed, Dec 27, 2000 at 08:49:51PM +1300, Dan Langille wrote: FreshPorts2 will have a new processing strategy for incoming messages. Each message will be in a separate file in a predetermined directory. As each file arrives, it is processed by a perl script. I want only one instance of

Re: waiting for new files in a directory

2000-12-27 Thread Peter Pentchev
On Wed, Dec 27, 2000 at 11:17:47PM +1300, Dan Langille wrote: On 27 Dec 2000, at 12:11, Peter Pentchev wrote: I would do that (and have done it in several projects) using opendir() and readdir(). Open the directory, read entry by entry, when you find a file you want, process

Re: waiting for new files in a directory

2000-12-27 Thread Peter Pentchev
On Wed, Dec 27, 2000 at 11:09:40AM +, Mike Bristow wrote: On Wed, Dec 27, 2000 at 12:53:37PM +0200, Peter Pentchev wrote: Btw, anybody reading this discussion - I tried the attached script with #!/usr/bin/perl -wT, and Perl died on the unlink() - "unsafe dependency".

Re: waiting for new files in a directory

2000-12-27 Thread Peter Pentchev
On Wed, Dec 27, 2000 at 01:18:28PM +0200, Peter Pentchev wrote: [snip..] closedir(D); foreach $fname (@files) { next if (($fname eq ".") || ($fname eq "..")); # more filename vailidity checks go here

Re: waiting for new files in a directory

2000-12-27 Thread Peter Pentchev
On Wed, Dec 27, 2000 at 09:16:34AM -0800, Alfred Perlstein wrote: * Dan Langille [EMAIL PROTECTED] [001226 23:50] wrote: My idea is to have a daemon, or something resembling one, sitting on the box watching the directory. When a new file appears, it starts a perl script. This perl

Re: Pentium 4

2000-12-23 Thread Peter Pentchev
On Fri, Dec 22, 2000 at 03:33:15PM -0800, Luigi Rizzo wrote: The Linux issue was actually more stupid than that; Linux won't run on a CPU it doesn't recognise. FreeBSD will only refuse to run on a CPU it recognises as incapable (since that is a much smaller set). actually, back in

Re: Why does lpd cause a lot of DNS traffic?

2000-12-15 Thread Peter Pentchev
On Fri, Dec 15, 2000 at 10:57:43AM +, Jamie Heckford wrote: On Fri, 15 Dec 2000, you wrote: On Fri, Dec 15, 2000 at 10:54:43AM +0100, Konrad Heuer wrote: For a heavily loaded printer server (as mine is) this seems not be a good idea ... but maybe there's a good reason to to this?

Re: eye-candy hack - warp_saver changing direction :)

2000-12-11 Thread Peter Pentchev
OK, OK, I *promise* I'll think twice before posting next time :) Here's a revised patch - a kern.warp_period = 0 signifies no direction change, for those who prefer the old behavior. G'luck, Peter -- This sentence no verb. Patch against -current: Index:

eye-candy hack - warp_saver changing direction :)

2000-12-11 Thread Peter Pentchev
So.. if anybody else is using the warp screen saver, here's a little patch to make it reverse direction from time to time; as my boss put it, "I don't know about you, but an hour of your screen rolling over to the right makes me dizzy." :) This one defines two sysctl's - kern.warp_dir (zero to

Re: eye-candy hack - warp_saver changing direction :)

2000-12-11 Thread Peter Pentchev
On Mon, Dec 11, 2000 at 05:01:22PM +0100, Dag-Erling Smorgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: This one defines two sysctl's - kern.warp_dir (zero to roll to the left, non-zero to roll the other way), and kern.warp_period (number of iterations before changing direction

Re: eye-candy hack - warp_saver changing direction :)

2000-12-11 Thread Peter Pentchev
On Mon, Dec 11, 2000 at 06:03:46PM +0200, Peter Pentchev wrote: On Mon, Dec 11, 2000 at 05:01:22PM +0100, Dag-Erling Smorgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: This one defines two sysctl's - kern.warp_dir (zero to roll to the left, non-zero to roll the other way

Re: eye-candy hack - warp_saver changing direction :)

2000-12-11 Thread Peter Pentchev
On Mon, Dec 11, 2000 at 06:03:00PM +0100, Dag-Erling Smorgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: SYSCTL_DECL(_kern_saver); SYSCTL_DECL is for declaring a node that's defined elsewhere. You should use the following instead: SYSCTL_NODE(_kern, OID_AUTO, saver, CTLFLAG_RW

Re: Kernel question (detecting a user log-on)

2000-12-08 Thread Peter Pentchev
On Thu, Dec 07, 2000 at 09:30:54PM +0100, Torbjorn Kristoffersen wrote: Hi Hackers, I'm wondering about two things, how does the kernel detect that a user logs on a tty, and what should I know if I was to write a kernel module that detects it (And does something about it)? Must I read the

Re: Shared Memory

2000-12-08 Thread Peter Pentchev
On Fri, Dec 08, 2000 at 01:01:16PM +0100, William Carlsson - Teligent Nordic, AB - Sweden wrote: Isn't all kern.* read only? Seems like it can't be changed more than it's in theory changeable Something like the maximum nuber of files and processes, that is suposed to be soft configurable

Re: get tun0's ip from my program

2000-12-04 Thread Peter Pentchev
On Mon, Dec 04, 2000 at 08:12:50PM +0800, [EMAIL PROTECTED] wrote: I want to get tun0's two ip addresses. and add ipfw rules to system at my program. How can I do it?is there a function? or have document describe it. someone please tell me! thank you! See the tun(4) manpage, it describes

Re: dlopen()

2000-11-23 Thread Peter Pentchev
On Thu, Nov 23, 2000 at 01:40:34PM +, Konstantin Chuguev wrote: Dmitry Sychov wrote: Greetings. Is it safe to remove the *.so file after it is loaded into the process space and addresses to its functions are gotten? It's safe to remove it as soon as it's been opened. The file

Re: Systems programming questions...

2000-11-21 Thread Peter Pentchev
On Tue, Nov 21, 2000 at 09:29:02AM -0600, Mark wrote: Hey all -- I'm trying to find a "correct" way to add virtual interfaces to my network card via a C program. right now, I've come up with 3 system() calls to do the work. I don't know if there is a better way or not, but if there is,

Re: Hiding the cursor on the console

2000-11-21 Thread Peter Pentchev
On Tue, Nov 21, 2000 at 10:05:33AM -0600, Dan Nelson wrote: In the last episode (Nov 21), [EMAIL PROTECTED] said: Hi, Is it possible to hide the (text) cursor when using syscons? There is no vi attribute defined for the cons25 termcap record...is this an oversite or is it not

Re: Byte order?

2000-11-20 Thread Peter Pentchev
On Mon, Nov 20, 2000 at 05:47:47PM +0200, Alex Koshterek wrote: This program gets it wrong. When the last byte of a long is set after the long was set to 1, we have a big endian architecture (the "little" end is at the 4th byte, so the "big end" is at the 1st byte). The x86 architecture

changing a running process's credentials

2000-11-15 Thread Peter Pentchev
All right, feel free to flame me a LOT for what follows :) There are situations (at least I could think of some :) where it is necessary to change a running process's credentials. I'm thinking specifically of the effective UID and GID, but I might have to tinker with the real and saved UID's,

Re: changing a running process's credentials

2000-11-15 Thread Peter Pentchev
On Wed, Nov 15, 2000 at 08:47:22AM -0800, Alfred Perlstein wrote: * Peter Pentchev [EMAIL PROTECTED] [001115 06:19] wrote: All right, feel free to flame me a LOT for what follows :) No need for that. (yet) :-) ..possibly because I did not make my intentions clear enough

Re: New mergemaster behavior - comparing CVS $Id too

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 12:15:14AM -0800, Doug Barton wrote: Peter Pentchev wrote: Is there a way to make mergemaster revert to its old behavior - only comparing $FreeBSD tags on files which have those? Of course there is a way, the question is how likely it is to happen

Re: umask(2) and -Wconversion

2000-11-07 Thread Peter Pentchev
In my experience, the problem is not only with umask(2) - GCC *is* a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( I'm having the same problems with many other functions when passing integer constants - even if I explicitly cast them to a long or unsigned long or plain

Re: daemon()

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 11:41:19PM +1000, [EMAIL PROTECTED] wrote: On Tue, 7 Nov 2000, Max Khon wrote: what is FD 4? I can't reproduce this? Does it always happen? AOL Me neither.. /AOL RELENG_4 here, but daemon() seems to be exactly the same across (supported) releases. All fd's I

Re: daemon()

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 08:24:19PM +0600, Max Khon wrote: hi, there! On Tue, 7 Nov 2000 [EMAIL PROTECTED] wrote: what is FD 4? I can't reproduce this? Does it always happen? yes. I am running sample program under FreeBSD 4.2-BETA (31 Oct 2000) As was already mentioned, this most

Re: umask(2) and -Wconversion

2000-11-07 Thread Peter Pentchev
On Tue, Nov 07, 2000 at 11:32:11AM -0500, Chris BeHanna wrote: On Tue, 7 Nov 2000, Peter Pentchev wrote: In my experience, the problem is not only with umask(2) - GCC *is* a bit stubborn about -Wconversion; I wonder if this is really a GCC bug :( I'm having the same problems with many

New mergemaster behavior - comparing CVS $Id too

2000-11-06 Thread Peter Pentchev
Is there a way to make mergemaster revert to its old behavior - only comparing $FreeBSD tags on files which have those? I keep some of my /etc files in a CVS repository of my own, and in the last mergemaster runs it detects that the file in /etc has an $Id, while the file in /var/tmp/temproot

<    1   2   3   4   5   >