Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Brad Mettee
Gary Kline wrote: Guys, maybe this can't be done reading in a file with fgets(buffer[128], fp), then calling skiptags(), conditionally, to while () past ',' and '>'. I know I need to calll skipTags with its address, skipTags(&buffer);, but then how to i handle the variable "s" in skipTags? An

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Gary Kline
On Mon, Oct 19, 2009 at 04:02:29AM +0200, Polytropon wrote: > On Sun, 18 Oct 2009 18:33:43 -0700, Gary Kline wrote: > > Guys, > > > > maybe this can't be done reading in a file with fgets(buffer[128], fp), > > then calling skiptags(), conditionally, to while () past ',' and '>'. > > > > I know I

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Gary Kline
On Mon, Oct 19, 2009 at 05:43:44AM +0200, Polytropon wrote: > On Sun, 18 Oct 2009 22:23:43 -0500, David Kelly wrote: > > When not using a count to indicate how much data is in a char* you > > should always test for null. Testing for null is not a sure fire way > > to prevent buffer over runs b

IBM Thinkpad 755C and FreeBSD's minimal hardware requirements - still usable?

2009-10-18 Thread Polytropon
Dear list, I'm about to try something strange. Recently, I got back my IBM Thinkpad 755C. It's from ca. 1995, has a 486 processor at 75 MHz, 20 MB RAM and a 640x480x256 display. The hard disk is 330 MB, but I have a 500 MB disk that I want to use. Use for what? FreeBSD, of course. Allthough this

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Polytropon
On Sun, 18 Oct 2009 23:30:49 -0400, Robert Huff wrote: > > Glen Barber writes: > > > >> // redo, skip TAGS > > > > > > Is this C or C++ source code? I always thought // was C++ > > > specific... > > > > > > > "//" comments are recognized by both C and C++. > > How about "... are r

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Polytropon
On Sun, 18 Oct 2009 22:23:43 -0500, David Kelly wrote: > When not using a count to indicate how much data is in a char* you > should always test for null. Testing for null is not a sure fire way > to prevent buffer over runs but its better than nothing. There are means like #include

Re: Accessing LDAP via web

2009-10-18 Thread Peter Boosten
Olivier Nicole wrote: > Hi Carmen, > >> I have email clients on my laptops that can access the LDAP server when >> connected via my LAN. When traveling that is not readily possible (is >> it)? Therefore, how can I accomplish this or is it not possible? >> >> Remember, I am not attempting to admini

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Robert Huff
Glen Barber writes: > >> // redo, skip TAGS > > > > Is this C or C++ source code? I always thought // was C++ > > specific... > > > > "//" comments are recognized by both C and C++. How about "... are recognized by both C++ and more recent versions of C."?

Re: Fwd: upgrading remote server

2009-10-18 Thread John Almberg
After you boot into single user mode, type mount -a. Then cd to /usr/src and run mergemaster -p. This worked, thanks. mergemaster -p then ran fine with no errors, but when I tried 'make installworld', it stopped on this error: --

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread David Kelly
On Oct 18, 2009, at 8:33 PM, Gary Kline wrote: Guys, maybe this can't be done reading in a file with fgets(buffer[128], fp), then calling skiptags(), conditionally, to while () past ',' and '>'. I know I need to calll skipTags with its address, skipTags (&buffer);, but then how to i hand

Write attempt to file in ZFS snapshot dir causes panic

2009-10-18 Thread Carl Chave
I'm new to FreeBSD. Been experimenting with 8.0-RC1 and zfs in a VM. Really haven't even installed it yet, just getting familiar with zfs usage from the fixit environment. I experienced some strange behavior and was wondering if this would warrant a bug report: 1. load zfs from bootloader prompt

Re: Accessing LDAP via web

2009-10-18 Thread Olivier Nicole
Hi Carmen, > I have email clients on my laptops that can access the LDAP server when > connected via my LAN. When traveling that is not readily possible (is > it)? Therefore, how can I accomplish this or is it not possible? > > Remember, I am not attempting to administer the LDAP server, but rath

Re: Certification

2009-10-18 Thread Glen Barber
Hello, On Sun, Oct 18, 2009 at 9:53 PM, Andrew Cherkashin wrote: > Hello. Where i can take FreeBSD exam? In California. This link may be helpful: http://www.bsdcertification.org/ Cheers, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list h

Certification

2009-10-18 Thread Andrew Cherkashin
Hello. Where i can take FreeBSD exam? In California. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Glen Barber
On Sun, Oct 18, 2009 at 10:02 PM, Polytropon wrote: [snip] > >> // redo, skip TAGS > > Is this C or C++ source code? I always thought // was C++ > specific... > "//" comments are recognized by both C and C++. -- Glen Barber ___ freebsd-questions@fre

Re: need C help, passing char buffer[] by-value....

2009-10-18 Thread Polytropon
On Sun, 18 Oct 2009 18:33:43 -0700, Gary Kline wrote: > Guys, > > maybe this can't be done reading in a file with fgets(buffer[128], fp), > then calling skiptags(), conditionally, to while () past ',' and '>'. > > I know I need to calll skipTags with its address, skipTags(&buffer);, > but then h

need C help, passing char buffer[] by-value....

2009-10-18 Thread Gary Kline
Guys, maybe this can't be done reading in a file with fgets(buffer[128], fp), then calling skiptags(), conditionally, to while () past ',' and '>'. I know I need to calll skipTags with its address, skipTags(&buffer);, but then how to i handle the variable "s" in skipTags? Anybody? // redo,

Re: device nodes in usb2 stack (fwd)

2009-10-18 Thread Hans Petter Selasky
On Sunday 18 October 2009 23:08:14 Alexander Best wrote: > posted this to freebsd-questions@ a while ago and got no answer. > > alex Hi, For every USB device there is /dev/usb/XXX . Currently the USB Bluetooth driver does not have any file nodes. Entries appearing in devd.conf might not always

tft pivot support and auto rotation

2009-10-18 Thread Alexander Best
hi there, my tft comes with pivot support. i'm running x with the nvidia closed source drivers and added Option "RandRRotation" "True" to my xorg.conf. so now when i do `xrandr -o left` or `xrandr -o right` X gets rotated which is great. under windows however i've been told that this is be

Re: using split, can i break up a huge txt file using a regex

2009-10-18 Thread Polytropon
On Fri, 16 Oct 2009 22:25:13 -0700, Gary Kline wrote: > I would like to put back the > huge text file into its 66 smaller files using split. Can I break this > very large journeyTowardtheDawn.txt using the regex > "Chapter [:digit:]{1,2}" ?? > > Or maybe just "Chapter "

Re: Fwd: upgrading remote server

2009-10-18 Thread Warren Block
On Sun, 18 Oct 2009, John Almberg wrote: The 7.2 GENERIC kernel includes PF, but not ALTQ. Okay, that's good to know. Thanks. Well, I was able to boot the new kernel in single user mode, but when I tried to run mergemaster -p, it couldn't find mergemaster. Booting to single-user isn't stric

Re: Fwd: upgrading remote server

2009-10-18 Thread Paul Schmehl
--On October 18, 2009 6:53:04 PM -0400 John Almberg wrote: The 7.2 GENERIC kernel includes PF, but not ALTQ. Okay, that's good to know. Thanks. Well, I was able to boot the new kernel in single user mode, but when I tried to run mergemaster -p, it couldn't find mergemaster. It looks like o

Re: Accessing LDAP via web

2009-10-18 Thread Dan Nelson
In the last episode (Oct 18), carmel_ny said: > On Sun, 18 Oct 2009 20:57:52 +0700 (ICT) > Olivier Nicole (olivier.nic...@cs.ait.ac.th) replied: > > >> I am probably doing this all wrong. I have an OpenLDAP server set up > >> that works correctly. I wanted to be able to access it via "LDAP://" >

Re: Fwd: upgrading remote server

2009-10-18 Thread John Almberg
The 7.2 GENERIC kernel includes PF, but not ALTQ. Okay, that's good to know. Thanks. Well, I was able to boot the new kernel in single user mode, but when I tried to run mergemaster -p, it couldn't find mergemaster. It looks like only one file system is mounted... nothing in /usr for instan

Re: Fwd: upgrading remote server

2009-10-18 Thread LoH
John Almberg wrote: My build-world is finally done, so going to see if it works, now... H'mmm... I have a question about the kernel configuration file... I am currently using a customer kernel. Unfortunately, this machine was installed by someone before my time, so I don't know the details.

Re: Fwd: upgrading remote server

2009-10-18 Thread John Almberg
My build-world is finally done, so going to see if it works, now... H'mmm... I have a question about the kernel configuration file... I am currently using a customer kernel. Unfortunately, this machine was installed by someone before my time, so I don't know the details. Can I make a 7.2 ker

Re: I hate to bitch but bitch I must

2009-10-18 Thread Jon Radel
PJ wrote: It's owrthless to read your entire comment here as everyone is forgetting two things, here... 1. COMMON SENSE 2. NOT EVERYONE WHO READS MANUALS OR MAN PAGES IS NECESSARILY LIMITED TO THE NARROW MINDBEND OF THE "INITIATED". There are those who think those who bitch because they've no

Re: Fwd: upgrading remote server

2009-10-18 Thread Paul Schmehl
--On October 18, 2009 7:02:34 PM +0100 Jeronimo Calvo wrote: quiet interesting that serial port thingy! do you know the name of it btw? I will be interested to install on of them... and start saving some money going to my office :D when i can not use even ssh... Google IPKVM. Paul Schmehl,

Re: Fwd: upgrading remote server

2009-10-18 Thread John Almberg
Jeronimo Calvo wrote: quiet interesting that serial port thingy! do you know the name of it btw? I will be interested to install on of them... and start saving some money going to my office :D when i can not use even ssh... I had to look it up... Here's what I have: http://www.digi.com/product

Re: I hate to bitch but bitch I must

2009-10-18 Thread PJ
Ian Smith wrote: > PJ, > > having (in this case at least) the luxury of reading freebsd-questions > as a digest, I'm going to quote a few of your extracts from several > messages, largely without surounding context, as it's all incredibly > repetitive, masively overquoted and mostly just "graspi

Re: Fwd: upgrading remote server

2009-10-18 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeronimo Calvo wrote: > quiet interesting that serial port thingy! do you know the name of it > btw? I will be interested to install on of them... and start saving > some money going to my office :D when i can not use even ssh... > Hi Jeronimo, When

Fwd: upgrading remote server

2009-10-18 Thread Jeronimo Calvo
quiet interesting that serial port thingy! do you know the name of it btw? I will be interested to install on of them... and start saving some money going to my office :D when i can not use even ssh... 2009/10/18 John Almberg : >>> I've been reading the upgrade chapter in "Absolute FreeBSD", and

Re: upgrading remote server

2009-10-18 Thread John Almberg
I've been reading the upgrade chapter in "Absolute FreeBSD", and it seems like the best option is to download the source files for 7.2 and upgrade from sources. I've done it several times via ssh between major and minor versions without any problems. You should read /usr/src/UPDATING for any ad

Re: how long till 8.0-RELEASE

2009-10-18 Thread ill...@gmail.com
2009/10/18 Alex R : > Hi Guys, > > It's obvious the release is behind schedule, RC2 isn't even out yet > according to the freebsd site. is there any rough ideas when we can expect > 8.0-release? :) > I'm channelling Annie, who insists it is Tomorrow! Tomorrow! It's only a day away! -- -- __

Re: I hate to bitch but bitch I must

2009-10-18 Thread Manolis Kiagias
PJ wrote: (trimmed down) > > Is entirely possible that I mucked up somewhere and did not do the > shutdown -r quite right... anyway, it is working fine now. > I still have some minor questions, though... > Can glabel be done on a dormant file system and then boot that file > system to change the f

Re: I hate to bitch but bitch I must

2009-10-18 Thread PJ
Manolis Kiagias wrote: > PJ wrote: > >> Manolis Kiagias wrote: >> >> >>> PJ wrote: >>> >>> >>> Manolis, my state of mind is quite clear... and I'm coping with everything quite allright... I'm not about to get mad at anyone or anything... but tell me, ho

Re: I hate to bitch but bitch I must

2009-10-18 Thread PJ
Bob Hall wrote: > On Sat, Oct 17, 2009 at 05:36:43PM -0400, PJ wrote: > >> Bob Hall wrote: >> >>> On Sat, Oct 17, 2009 at 02:34:40AM +, Mark wrote: >>> >>> Actually, this has got very little to do with being a native English speaker or not. It's ere a matter of inton

Re: upgrading remote server

2009-10-18 Thread Artifex Maximus
Hello! On Sun, Oct 18, 2009 at 5:08 PM, John Almberg wrote: > I've been reading the upgrade chapter in "Absolute FreeBSD", and it seems > like the best option is to download the source files for 7.2 and upgrade > from sources. I've done it several times via ssh between major and minor versions

upgrading remote server

2009-10-18 Thread John Almberg
I just reinstalled a server that was out for repair. It's on the network in the data center, but no applications are running on it, yet. I thought this would be a perfect time to upgrade the OS. It's currently running 6.2 Release, I want to bring it up to 7.2 Release. I'd like to do this rem

how long till 8.0-RELEASE

2009-10-18 Thread Alex R
Hi Guys, It's obvious the release is behind schedule, RC2 isn't even out yet according to the freebsd site. is there any rough ideas when we can expect 8.0-release? :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/l

Re: Accessing LDAP via web

2009-10-18 Thread carmel_ny
On Sun, 18 Oct 2009 20:57:52 +0700 (ICT) Olivier Nicole (olivier.nic...@cs.ait.ac.th) replied: >> I am probably doing this all wrong. I have an OpenLDAP server set >> up that works correctly. I wanted to be able to access it via >> "LDAP://" from my laptop when traveling. Unfortunately, that is no

Re: Accessing LDAP via web

2009-10-18 Thread Olivier Nicole
> I am probably doing this all wrong. I have an OpenLDAP server set > up that works correctly. I wanted to be able to access it via "LDAP://" > from my laptop when traveling. Unfortunately, that is not working. When An LDAP server is not something that you access through a web browser. The naming

Accessing LDAP via web

2009-10-18 Thread carmel_ny
I am probably doing this all wrong. I have an OpenLDAP server set up that works correctly. I wanted to be able to access it via "LDAP://" from my laptop when traveling. Unfortunately, that is not working. When trying it via Microsoft, I simply get an error that the server is either busy or not avai

Re: small question about tape-based dumps

2009-10-18 Thread Jerry McAllister
On Sat, Oct 17, 2009 at 08:09:22PM -0600, Tim Judd wrote: > On 10/17/09, Stevan Tiefert wrote: > > Am Samstag, den 17.10.2009, 18:49 -0600 schrieb Tim Judd: > >> On 10/17/09, Jerry McAllister wrote: > >> > >> > >> > You do not need to. dump alrady writes that when it finishes each time. > >> >

Re: small question about tape-based dumps

2009-10-18 Thread Jerry McAllister
On Sat, Oct 17, 2009 at 06:49:02PM -0600, Tim Judd wrote: > On 10/17/09, Jerry McAllister wrote: > > > > You do not need to. dump alrady writes that when it finishes each time. > > If you to that, you will get a second one at that location. > > > > You do not need to do the rewind and mt fsf be

Re: strange quota behaviour

2009-10-18 Thread Stefan Miklosovic
hi again, I correct my post, of course I can set quotas for that user, by setquota command, but I cant see quotas for that user, only by repquota. I need to see it by quota command because I write a script where I depend on it. On Sun, Oct 18, 2009 at 2:13 PM, Stefan Miklosovic < miklosovic.free

strange quota behaviour

2009-10-18 Thread Stefan Miklosovic
hi list, I am going to add user "test" in system: ~/:sudo pw useradd test -m then, I am going to check quotas ~/:sudo quota -u -v test Disk quotas for user test (uid 2022): Filesystem usage quota limit grace files quota limit grace /home 36 0 0

Re: POSIX Message queues

2009-10-18 Thread Pieter de Goeje
On Sunday 18 October 2009 10:25:41 Ross wrote: > I have a program that works with POSIX message queues, i.e. calls > mq_open, mq_send, etc. These calls fail with "Bad system call" > message. > I googled that in order to get POSIX semaphores work on FreeBSD you > should kldload sem. What should I lo

Re: POSIX Message queues

2009-10-18 Thread Vaibhav Gavane
mqueuefs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

w3c validator-0.8.5_1 port broken ?

2009-10-18 Thread roudoudou
Hi all, I've just updated the ports tree with portsnap and compiled the w3c validator and all its dependency with portinstall on FreeBSD 6.4 but whenever i try to validate a html document, i get the following error message: --- check: Can't load '/usr/local/lib/perl5/site_perl/5.8.9/mach/auto/SG

Re: I hate to bitch but bitch I must

2009-10-18 Thread krad
2009/10/17 michael > PJ wrote: > >> michael wrote: >> >> >>> PJ wrote: >>> >>> Why is it that the manual pages, as thorough as they may be, are very, very confusing. Perhaps I am being too wary, but I find that too many instructions/examples are stumbling blocks to appreciatio

Re: I hate to bitch but bitch I must

2009-10-18 Thread Ian Smith
PJ, having (in this case at least) the luxury of reading freebsd-questions as a digest, I'm going to quote a few of your extracts from several messages, largely without surounding context, as it's all incredibly repetitive, masively overquoted and mostly just "grasping for ambiguity" as Warren

POSIX Message queues

2009-10-18 Thread Ross
I have a program that works with POSIX message queues, i.e. calls mq_open, mq_send, etc. These calls fail with "Bad system call" message. I googled that in order to get POSIX semaphores work on FreeBSD you should kldload sem. What should I load to make message queues work? _

Re: I hate to bitch but bitch I must

2009-10-18 Thread Scott Bennett
On Sat, 17 Oct 2009 05:18:48 +0200 Polytropon wrote: >On Fri, 16 Oct 2009 20:59:18 -0600 (MDT), Warren Block >wrote: >> I understand it, but see ambiguity in the word "should". Easy enough to >> rewrite: >> >> BUGS ^ ^^^ ^ ^^^ ^^^ ^^^ ^^^ ^^^ Please no