Files in C.

2005-05-03 Thread Pablo Mora
I know that this is not the place to consult on programming C. But I am so enthusiastic in FreeBSD that I want to learn more on the language C and someday coming to be a small part of which you already are. It wanted that they recommended to me some webpage where to be able to obtain information

EPERM from write()

2005-05-03 Thread Steve Watt
I'm down in the bowels of chasing a weird bug that is being presented by sendmail when doing TLS. For *some* clients it works, but for the ones that fail, they fail hard. There are various weird things in my analyses. The proximate symptom is that the call to write() to put out the ServerHello m

Re: A question about /sys/kern/link_elf.c

2005-05-03 Thread Doug Rabson
On Monday 02 May 2005 13:35, [EMAIL PROTECTED] wrote: > >There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef > >SPARSE_MAPPING" at line 713.I just can't understand the second > >one.Does it have any special mean ? > > > >thanks . > > It's just conditional compiling construct...howeve

mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread Denis Peplin
Hello! The mergemaster with this is test patch (attached) can auto-update files that was not modified. It do this by compairing each file with it's CVS copy. If file was not modified, it can be rewritten. This dramatically redices amount of files that require admin's attention. There is one maj

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread John Hay
On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: > > The mergemaster with this is test patch (attached) > can auto-update files that was not modified. > > It do this by compairing each file with it's CVS > copy. If file was not modified, it can be rewritten. > > This dramatically re

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread Denis Peplin
John Hay wrote: > On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: >>There is one major problem here: >>This can be done in single-user mode only if your >>have local CVS repository, because if local CVS is >>not exist, anoncvs is used. >> >>Possible solutions: > > > What about mer

Re: Files in C.

2005-05-03 Thread Erich Dollansky
Hi, Pablo Mora wrote: I know that this is not the place to consult on programming C. But I am so enthusiastic in FreeBSD that I want to learn more on the language C and someday coming to be a small part of which you already To get this a bit in line with FreeBSD: FreeBSD comes with the GNU compile

Re: 5.4-STABLE corrupting fs on shutdown -p now?

2005-05-03 Thread Danny Braniss
> On Mon, 2 May 2005, c0ldbyte wrote: > > >> I have a "HDD Post Write Buffer" in the BIOS according to the MB manual > >> although the disks aren't connected to the MB controllers they are on RAID > >> 5 set off a PCI-X card. Will give it a go tomorrow ( drag the monitor > >> back to the rack ).

Re: A question about /sys/kern/link_elf.c

2005-05-03 Thread prime
thanks for all your responses.I know that it is just conditional compiling construct,but I just can't understand the nested *test* of SPARSE_MAPPING( the 2nd "#ifdef ..." is nested in the 1st one). Thanks .I think I get it now. On Monday 02 May 2005 13:35, gerarra at tin.it wrote: >> >There is a

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread c0ldbyte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 May 2005, Denis Peplin wrote: Hello! The mergemaster with this is test patch (attached) can auto-update files that was not modified. It do this by compairing each file with it's CVS copy. If file was not modified, it can be rewritten. This dra

Re: Files in C.

2005-05-03 Thread c0ldbyte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 May 2005, Pablo Mora wrote: I know that this is not the place to consult on programming C. But I am so enthusiastic in FreeBSD that I want to learn more on the language C and someday coming to be a small part of which you already are. It wan

Re: 5.4-STABLE corrupting fs on shutdown -p now?

2005-05-03 Thread Steven Hartland
So sounds like this does need a bit of looking at. The key thing is both reboot and halt always leave the machine FS in a good state where as shutdown -p doesnt so is there something that -p skips? Or is it simply the fact that it powers down? Steve - Original Message - From: "Danny Bra

Re: ipfw causing panic 4.11-RELEASE-p4

2005-05-03 Thread Maxim Konovalov
On Mon, 2 May 2005, 13:20+0300, Imri Zvik wrote: > Hi, > > I was playing around with ipfw, and when I tried something like: > > /sbin/ipfw disable firewall > > /sbin/ipfw flush && sysctl net.inet.ip.fw.dyn_buckets=600 > > > > /sbin/ipfw enable firewall > > > > The machine paniced: Mine doesn't:

RE: ipfw causing panic 4.11-RELEASE-p4

2005-05-03 Thread Maxim Konovalov
On Tue, 3 May 2005, 17:49+0300, Imri Zvik wrote: > I forgot to mention I was using ipfw1. > > When I upgraded to ipfw2 it didn't happen again. [...] > Mine doesn't: > > shy# uname -a > FreeBSD shy.macomnet.ru 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Apr 21 > 05:48:09 MSD 2005 [EMAIL PROTECTED]

Can't get correct address in string form

2005-05-03 Thread Sergey
Hello freebsd-hackers I have a question related to the simple code below: #include #include #include #include #include #include #include #include #include #include int main(int argc, char **argv) { struct addrinfo hints, *la, *localaddr; char buf[31]; int gaierr=0;

Re: Can't get correct address in string form

2005-05-03 Thread Hajimu UMEMOTO
Hi, > On Tue, 3 May 2005 18:39:10 +0300 > Sergey <[EMAIL PROTECTED]> said: fenix>//get local address - local address is 192.168.0.250 fenix>if ((gaierr = getaddrinfo(argv[1], argv[2], &hints, &localaddr)) != 0) fenix>errx(1, "%s port %s: %s", argv[1], argv[2],

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread Julian Elischer
John Hay wrote: On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: The mergemaster with this is test patch (attached) can auto-update files that was not modified. It do this by compairing each file with it's CVS copy. If file was not modified, it can be rewritten. This dramatically redic

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread Julian Elischer
c0ldbyte wrote: IMHO this isnt something that should be included with mergemaster due to the following things. 1). It should upgrade a file if the files cvs id doesnt match and provide you with a merge option, which it allready does both of those as it is now. 2). Only upgrading files that havent

Re: 5.4-STABLE corrupting fs on shutdown -p now?

2005-05-03 Thread Kris Kennaway
On Tue, May 03, 2005 at 01:39:23PM +0100, Steven Hartland wrote: > So sounds like this does need a bit of looking at. The key thing is > both reboot and halt always leave the machine FS in a good state > where as shutdown -p doesnt so is there something that -p skips? > Or is it simply the fact tha

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread Juergen Unger
On Tue, May 03, 2005 at 11:15:51AM -0700, Julian Elischer wrote: > c0ldbyte wrote: [...] > >But with all due respect, This just seems like another case of a > >"Bike Shed" incident. > not at all. > I've wanted this for a long time.. > files that I have not touched are at default state and I wnat th

cleanup and diffs ?

2005-05-03 Thread Thordur I. Bjornsson
Hello. I was surfing the dragonflybsd wiki site the other day and found out that they are doing a "base-cleanup". That is they are compiling the tools that come with the base system with WARNS?=6 ... Humm... This is something that I could do.. Minor cleanup (since I'm no C expert or a OS develope

Re: cleanup and diffs ?

2005-05-03 Thread Kris Kennaway
On Tue, May 03, 2005 at 10:38:37PM +, Thordur I. Bjornsson wrote: > Hello. > > I was surfing the dragonflybsd wiki site the other day and found out > that they are doing a "base-cleanup". That is they are compiling the > tools that come with the base system with WARNS?=6 ... > > Humm... This

Re: Files in C.

2005-05-03 Thread Pablo Mora
Thanks by responding me. I will revise each direction that have given me and truly I thank it a lot. -- ConcepciĆ³n, Chile. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any m

Re: what goes wrong with barrier free atomic_load/store?

2005-05-03 Thread Tim Kientzle
On Wednesday 20 April 2005 04:39 pm, John Giacomoni wrote: can someone give me an example of a situation where one needs to use memory barriers to ensure "correctness" when doing writes as above? One basic example: struct foo *p = malloc(sizeof(struct foo)); // Step 1 p->bar = 0; // Step 2

Re: mergemaster improvement (auto-update for not modified files)

2005-05-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Juergen Unger <[EMAIL PROTECTED]> writes: : On Tue, May 03, 2005 at 11:15:51AM -0700, Julian Elischer wrote: : > c0ldbyte wrote: : [...] : > >But with all due respect, This just seems like another case of a : > >"Bike Shed" incident. : > not at all. : > I

Re: cleanup and diffs ?

2005-05-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Kris Kennaway <[EMAIL PROTECTED]> writes: : it. This can be nontrivial. Also, Dragonfly doesn't have to worry : about any other architectures than i386, so it's possible that they : haven't "really" fixed many of these warnings (i.e. they might still :