IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.86 MB
Powered by
Channel Info
Network: freenodeChannel: #netbsd |
Search in www.irclog.org
Log from #netbsd at freenode 2006-06-01
[02:58]<vygvyg>hi :)
[03:00]<vygvyg>I'm currently with NetBSD-2.0, i'd like to upgrade it to 2.1. The right way to do it is to reinstall from scratch or is it fine too with some source download and make world ?
[03:02]<ducjg2j2>vinvin: I believe make buildworld / make installworld --- I don't know the state of build.sh in 2.x, but that's the current recommended method... you'll want to build/test a kernel w/ the new source first.
[03:02]<ducjg2j2>vinvin: btw, NetBSD 3.0 is nice :)
[03:03]<ducjg2j2>vinvin: also, check out the manual for etcupdate(8)... you'll want to run it.
[03:05]<vygvyg>yukonbob: thanks :)
[03:06]<vygvyg>yukonbob: can I upgrade to 3.0 with a 2.* system ?
[03:08]<ducjg2j2>vinvin: I don't remember if that's what I did, or did a 'from scratch' somehow --- I'm thinking I updated in-place 2.x->3, though...
[03:09]<vygvyg>ok :)
[03:09]<ducjg2j2>vinvin: 3.0 introduced PAM (pluggable authentication modules) to NetBSD, which tie into the auth subsystem, and require configuration in /etc --- _make_ _sure_ you have /etc up-to-date before you try rebooting into a 3.x system (see aforementioned etcupdate)
[03:10]<vygvyg>yukonbob: thanks for that :D
[03:11]<ducjg2j2>np: good luck :)
[03:11]<vygvyg>cya !
[18:39]<dyfjsg>hi Fish dmesg
[18:39]<ddnsr>milosn hi :)
[18:49]<gudedj>hi
[18:50]<txgcrg>Hi...offtopic:): what way is there in ansi-c to copy the part of a *char from position x on?
[18:50]<txgcrg>like you got char *string="hello world" and i want to have "o world" only
[18:50]<gudedj>TheCan - well
[18:51]<gudedj>string[4] ?
[18:51]<srrdrrg>Just add to the pointer
[18:51]<txgcrg>sjamaan, yeah i tried that..
[18:51]<dyfjsg>strlcpy?
[18:51]<srrdrrg>strcpy(target, (dest + 4))
[18:51]<gudedj>printf(*(string[4])); ?
[18:52]<srrdrrg>Guyzmo: Eh, WTF
[18:52]<txgcrg>but seems to work with char *string but not with string[somenumber]
[18:52]<vjymrrsv>Guyzmo: no pointer dereference
[18:52]<gudedj>voidcast - sorry
[18:52]<srrdrrg>That would AT LEAST be printf(&string[4]);
[18:52]<gudedj>too much java last monthes fscked up my brain :(
[18:52]<rflxrwrvns>dmesg: hi, what is the web calender software you talked about the other day?
[18:52]<dyfjsg>C string manipulation
[18:53]<txgcrg>strlcpy didnt hear about this yet...is this ansi-c?
[18:53]<srrdrrg>No
[18:53]<dyfjsg>nope
[18:53]<srrdrrg>I think it's BSD only
[18:53]<ddnsr>AlphaWaves hula :)
[18:53]<dyfjsg>BSD
[18:53]<dyfjsg>sjamaan: yeah
[18:53]<vjymrrsv>c++ excels at string handling. Too bad it sucks at other things.
[18:53]<ddnsr>AlphaWaves but better use horde
[18:53]<srrdrrg>TheCan: What line fails, and what's the error?
[18:54]<gudedj>voidcast - c++ excels in many things, except in having a good *standard* library..
[18:54]<srrdrrg>Guyzmo: It has the STL, which is pretty standard afaik
[18:54]<srrdrrg>But it's fugly
[18:54]<txgcrg>i´ve tried *newstring += 10; and got a segmentation fault, without dereferencing it it does not compile
[18:55]<vjymrrsv>you can't add to an array pointer
[18:55]<gudedj>sjamaan - and which sucks pretty much
[18:55]<srrdrrg>*newstring += 10 would increase the character at the new string's first location by 10
[18:55]<txgcrg>oh..
[18:55]<srrdrrg>voidcast: That's new?
[18:55]<txgcrg>yeah i think this worked but i got strangte characters then :D
[18:56]<srrdrrg>heh
[18:56]<vjymrrsv>TheCan: do like this: char mystring[] = "foobar"; char *wrkptr=mystring;
[18:56]<vjymrrsv>then wrkptr+=4;
[18:56]<txgcrg>aaah..
[18:56]<txgcrg>first declare a [] and then make a pointer to it
[18:56]<txgcrg>this sounds nice
[18:56]<srrdrrg>that's not very handy
[18:56]<srrdrrg>Why not use &string[4]?
[18:56]<srrdrrg>That gives you the same
[18:56]<gudedj>hm... anyone knows if there is there any (uptodate) tutorial/manual about netbsd for soekris 4801 ?
[18:57]<txgcrg>sjamaan, with string[4] i only get the character at position 5 dont i?
[18:57]<txgcrg>or it´s address
[18:57]<vjymrrsv>because if you think about it, mystring is allocated at a certain memory region and the symbol as such is not a modifiable lvalue
[18:57]<txgcrg>with &
[18:57]<srrdrrg>TheCan: With & you get the address of that character
[18:58]<txgcrg>sjamaan, so you just get the adress and copy it over with str(n)cpy until you encounter '\0' ?
[18:58]<srrdrrg>yes
[18:58]<srrdrrg>That's how strings work
[18:58]<srrdrrg>They're just memory addresses which happen to point to a number of characters delimited by a \0
[18:58]<txgcrg>yes i know..
[18:58]<txgcrg>but when i got a pointer already and not an array?
[18:59]<txgcrg>i once tried converting it, well this works but sounds somehow stupid
[18:59]<srrdrrg>When you already have a pointer you can just add to it
[18:59]<srrdrrg>Like voidcast showed you
[18:59]<txgcrg>ah mhm..
[19:00]<txgcrg>i´ll try this :) thank you guys
[19:00]<srrdrrg>np
[19:01]<dyfjsg>yeah ... and dont do strings in C
[19:01]<dyfjsg>it'll byte u!
[19:02]<txgcrg>lol :)
[19:02]<lyllyag>milosn: What is wrong with strings in C?
[19:03]<srrdrrg>pippijn: Does *BUFFER OVERRUN* ring any alarm bells in your head?
[19:03]<srrdrrg>:)
[19:03]<dyfjsg>nothing, as long as u do it properly and have a masohistic line in your caracter
[19:03]<lyllyag>sjamaan: Yes, but you have to do it right and it won't happen.
[19:04]<srrdrrg>pippijn: Yeah, but it's too easy to get wrong
[19:04]<dyfjsg>pippijn: dunno, i just find it to consuming (time, brain, effort) for such simple thing as string operations
[19:04]<srrdrrg>I agree with milosn here
[19:04]<lyllyag>milosn: Then use C++
[19:04]<lyllyag>std::string
[19:04]<lyllyag>hm
[19:05]<srrdrrg>C++ hurts my eyes
[19:05]<lyllyag>sjamaan: So perl would do the same :)
[19:05]<dyfjsg>pippijn if it works for u i guess its OK
[19:05]<srrdrrg>Ack
[19:05]<lyllyag>milosn: I didn't say that
[19:05]<lyllyag>Perl if not done perfectly right hurts anyone's eyes







