- Original Message -
> From: Tijl Coosemans
> To: Quark
> Cc: "freebsd-questions@freebsd.org"
> Sent: Tuesday, 27 August 2013 1:41 PM
> Subject: Re: c++11 question: clang++ 3.3 header not found
>
> On Tue, 27 Aug 2013 15:22:49 +0800 (SGT) Quark wr
AFAIK, the easiest way to get C++11 support in clang is to use libc++ (see
http://blogs.freebsdish.org/theraven/2013/01/03/the-new-c-stack-in-9-1/).
See also
https://lists.freebsd.org/pipermail/freebsd-toolchain/2013-May/000841.html .
2013/8/27 Quark
> % uname -a
> FreeBSD cobalt 9
error generated.
>
> I guess clang is re-using system headers which belong to older gcc 4.2
> I also have gcc48 installed, how can I make clang to refer gcc48 headers?
There two C++ runtime libraries, the old gcc libstdc++ which is used by
default and the new C++11 libc++. You can use the latter like this:
clang++ -std=c++11 -stdlib=libc++ -otest test.cc
signature.asc
Description: PGP signature
list, please pardon
my stupid mail client hung, giving me impression that e-mail was not sent.
apologies for spam.
- Original Message -
> From: Quark
> To: "freebsd-questions@freebsd.org"
> Cc:
> Sent: Tuesday, 27 August 2013 12:52 PM
> Subject: c++11 question
tions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/test-jIvr1p.o -x c++ test.cc
clang -cc1 version 3.3 based upon LLVM 3.3 default target
x86_64-unknown-freebsd9.2
ignoring nonexistent directory "/usr/include/c++/4.2/backward/backward"
ignoring no
Thread model: posix
clang 3.3 is C++11 feature complete, but it fails to find and/or
headers.
since it is looking in system compiler path, which is old gcc4.2, not C++11
ready
how to make clang refer headers from gcc48's installation( via pk
% uname -a
FreeBSD cobalt 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013
r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
% clang++ --version
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd9.2
Thread model: posix
Hello there,
I've installed the c++ (libc++ library) like this :
make -C /usr/src/lib/libcxxrt all install
make CXX=clang -C /usr/src/lib/libc++ all install
Then, I was able to compile with clang++ using -std=c++11 -stdlib=libc++.
And now, after the clang-3.2 update I can't build
On Mon, May 06, 2013 at 11:40:06PM -0400, rpratt wrote:
> On Mon, 6 May 2013 16:19:02 -0700
> Gary Kline wrote:
> > I've been meaning to ask one of the Nix lists if there is a script that
> > will record something from kuow.org
>
> To play audio stream:
>
> mplayer -playlist 'http://shoutcas
On Mon, May 06, 2013 at 07:24:29PM -0500, Joshua Isom wrote:
> On 5/6/2013 6:19 PM, Gary Kline wrote:
> >
> >guys,
> >
> >I've been meaning to ask one of the Nix lists if there is a script that
> >will record something from kuow.org while I watch one of my favorite tv
> >broadcasts. most of the t
On Mon, 6 May 2013 16:19:02 -0700
Gary Kline wrote:
> I've been meaning to ask one of the Nix lists if there is a script that
> will record something from kuow.org
To play audio stream:
mplayer -playlist 'http://shoutcast.kuow.org:8002/listen.pls'
To dump the audio stream to file:
mpla
On 5/6/2013 6:19 PM, Gary Kline wrote:
guys,
I've been meaning to ask one of the Nix lists if there is a script that
will record something from kuow.org while I watch one of my favorite tv
broadcasts. most of the time, nothing is on tv, but this one radio
broadcast, "AR" co-insides with "NOV
guys,
I've been meaning to ask one of the Nix lists if there is a script that
will record something from kuow.org while I watch one of my favorite tv
broadcasts. most of the time, nothing is on tv, but this one radio
broadcast, "AR" co-insides with "NOVA" at 21:00.
anybody know?
--
Gar
Le dimanche 14 avril 2013 13:26:17 Shane Ambler a écrit :
> On 13/04/2013 21:45, Jason Lenthe wrote:
> >> Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE
> >> has some compiler C++11 capable but the /usr/include/c++ headers lacks
> >> so
On 13/04/2013 21:45, Jason Lenthe wrote:
Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE has
some compiler C++11 capable but the /usr/include/c++ headers lacks some c++11
features (and missing headers).
Is there any port of c++11 available?
There sure is. Just get
> Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE has
> some compiler C++11 capable but the /usr/include/c++ headers lacks some c++11
> features (and missing headers).
>
> Is there any port of c++11 available?
There sure is. Just get the latest ve
Hello folks,
Is it possible to get C++11 support on FreeBSD? Currently the 9.1-RELEASE has
some compiler C++11 capable but the /usr/include/c++ headers lacks some c++11
features (and missing headers).
Is there any port of c++11 available?
Regards,
--
David Demelier
On 13/02/2013 15:58, Arthur Chance wrote:
> A question for pkgng gurus. When using pkg -c or pkg -j to work within
> chroots or jails, how much of the pkg infrastructure needs to be present
> in the chroot/jail?
>
> The reason I ask is because I'm thinking of building a se
A question for pkgng gurus. When using pkg -c or pkg -j to work within
chroots or jails, how much of the pkg infrastructure needs to be present
in the chroot/jail?
The reason I ask is because I'm thinking of building a server which has
all services running in jails, with the nece
On Sat, Jan 12, 2013 at 11:10 AM, alwin doss wrote:
> Hi All,
>
> I am a C++ developer and I want to contribute to FreeBSD.
> There are so many applications.
> Is there any C++ project which is simple enough to start with.
>
> Thanks in advance for your help.
Hi Alwin,
th
Hi All,
I am a C++ developer and I want to contribute to FreeBSD.
There are so many applications.
Is there any C++ project which is simple enough to start with.
Thanks in advance for your help.
--
Alwin Doss
God's Beloved
___
freebsd-ques
On Mon, 31 Dec 2012 11:39:27 +0100
Marcus Karlsson wrote:
> Hello.
>
> I was very happy when I received the 9.1 announcement in my mailbox,
> especially when I read about the inclusion of the new C++11 stack
> including LLVM libc++ and libcxxrt. So I decided to test it on
Hello.
I was very happy when I received the 9.1 announcement in my mailbox,
especially when I read about the inclusion of the new C++11 stack
including LLVM libc++ and libcxxrt. So I decided to test it on a 9.1
system:
clang++ foo.cc -stdlib=libc++
However, the compilation fails:
/usr
>> On Tue, 18 Dec 2012 16:26:10 -0800,
>> Gary Kline said:
G> which C function is best to check for the existence of a *directory*?
G> say that I am want to make postitve that "/tmp/foo/" exists. ALso:
G> which will make sure that the directory AND file
G>
On Tue, 18 Dec 2012 16:26:10 -0800, Gary Kline wrote:
>
> which C function is best to check for the existence of a
> *directory*? say that I am want to make postitve that "/tmp/foo/"
> exists.
That can be done with the opendir() function; its manpage
l
which C function is best to check for the existence of a
*directory*? say that I am want to make postitve that "/tmp/foo/"
exists.
ALso: which will make sure that the directory AND ffile
"tmp/foo/filename12345" exists and that I ha
On Sat, 24 Nov 2012, Matthias Apitz wrote:
El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block
escribió:
On Wed, 21 Nov 2012, Warren Block wrote:
The fdisk/bsdlabel section of my disk setup article has been rewritten
to use gpart. Feedback welcome.
http://www.wonkity.
El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block
escribió:
> On Wed, 21 Nov 2012, Warren Block wrote:
>
>
> The fdisk/bsdlabel section of my disk setup article has been rewritten
> to use gpart. Feedback welcome.
>
> http://www.wonkity.com/~wblock/docs/html/disksetup.
On Fri, 23 Nov 2012, Shane Ambler wrote:
On 22/11/2012 14:49, Warren Block wrote:
On Wed, 21 Nov 2012, Warren Block wrote:
Got a chance to set up a scratch drive and check this. Turns out
I left out the step of creating a "slice" (MBR partition) to hold
the FreeBSD partitions. Also, GPT lab
On 22/11/2012 14:49, Warren Block wrote:
On Wed, 21 Nov 2012, Warren Block wrote:
Got a chance to set up a scratch drive and check this. Turns out
I left out the step of creating a "slice" (MBR partition) to hold
the FreeBSD partitions. Also, GPT labels cannot be used in an
MBR. Fixed below.
On Thu, 22 Nov 2012, Leslie Jensen wrote:
Warren Block skrev 2012-11-22 05:19:
On Wed, 21 Nov 2012, Warren Block wrote:
Got a chance to set up a scratch drive and check this. Turns out I
left out the step of creating a "slice" (MBR partition) to hold the
FreeBSD partitions. Also, GPT labels
Thank you very much for your work on this. I have found this
conversation and your article very informative.
I've already installed W7 on my SSD but I let the installation program
create the windows (MBR) partition.
I'm going to install FreeBSD 9.1 as soon as it is ready so I want to ask
i
On Wed, 21 Nov 2012, Warren Block wrote:
Got a chance to set up a scratch drive and check this. Turns out I
left out the step of creating a "slice" (MBR partition) to hold the
FreeBSD partitions. Also, GPT labels cannot be used in an MBR.
Fixed below. I will probably add this to my disk set
On Tue, 20 Nov 2012, Snow Mountains wrote:
2012/11/20 Warren Block :
On Tue, 20 Nov 2012, Snow Mountains wrote:
Just one small problem. Here I got this:
# gpart create -s bsd ada2s1
gpart: geom 'ada2s1': File exists
# gpart set -a active -i 1 ada2s1
gpart: index '1': No such file or director
2012/11/20 Warren Block :
> I know I've seen that, but can't recall what causes it. You can try
> retasting before creating the BSD partitions:
>
> # true > /dev/ada2
> # gpart create -s bsd ada2s2
Sorry, no difference:
# gpart show ada2
=> 63 468862065 ada2 MBR (223G)
63
On Tue, 20 Nov 2012, Snow Mountains wrote:
2012/11/20 Warren Block :
On Tue, 20 Nov 2012, Snow Mountains wrote:
Just one small problem. Here I got this:
# gpart create -s bsd ada2s1
gpart: geom 'ada2s1': File exists
# gpart set -a active -i 1 ada2s1
gpart: index '1': No such file or director
2012/11/20 Warren Block :
> On Tue, 20 Nov 2012, Snow Mountains wrote:
>
>> Just one small problem. Here I got this:
>>
>> # gpart create -s bsd ada2s1
>> gpart: geom 'ada2s1': File exists
>> # gpart set -a active -i 1 ada2s1
>> gpart: index '1': No such file or directory
>>
>> Expected? Anyway, is
On Tue, 20 Nov 2012, Snow Mountains wrote:
Just one small problem. Here I got this:
# gpart create -s bsd ada2s1
gpart: geom 'ada2s1': File exists
# gpart set -a active -i 1 ada2s1
gpart: index '1': No such file or directory
Expected? Anyway, is it any way to but FreeBSD on something like s2?
2012/11/19 Warren Block :
> On Mon, 19 Nov 2012, Snow Mountains wrote:
>
>> 2012/11/18 Shane Ambler :
>>>
>>> On 18/11/2012 06:49, Snow Mountains wrote:
>>>
Could you recommend a reliable document on how to do a correct block
alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't
>
On Mon, 19 Nov 2012, Snow Mountains wrote:
2012/11/18 Shane Ambler :
On 18/11/2012 06:49, Snow Mountains wrote:
Could you recommend a reliable document on how to do a correct block
alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't
mention this at all, although I can find a lot of
2012/11/18 Shane Ambler :
> On 18/11/2012 06:49, Snow Mountains wrote:
>
>> Could you recommend a reliable document on how to do a correct block
>> alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't
>> mention this at all, although I can find a lot of (not quite
>> consistent) advises on
On 18/11/2012 06:49, Snow Mountains wrote:
Could you recommend a reliable document on how to do a correct block
alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't
mention this at all, although I can find a lot of (not quite
consistent) advises on the net on how to do it with gpart/new
2012/11/17 ill...@gmail.com :
> On 17 November 2012 12:26, Snow Mountains wrote:
>> * How will FreeBSD 9 behave in such situations? Any special tweaking needed?
>
> I wouldn't expect any special behaviour, though you need to take care
> with block alignment. Perhaps in the future FreeBSD will hav
On 17 November 2012 12:26, Snow Mountains wrote:
> Hello,
>
> I'm about to upgrade hardware on my desktop and to install FreeBSD 9
> on it. I have ASUS P5KPL-C and want to buy a SSD or SATA-III 6Gb/s
> drive for it.
>
> Please advise me:
>
> * does it make sens
Hello,
I'm about to upgrade hardware on my desktop and to install FreeBSD 9
on it. I have ASUS P5KPL-C and want to buy a SSD or SATA-III 6Gb/s
drive for it.
Please advise me:
* does it make sense to buy SSD drive for a mb that supports 4x SATA
3Gb/s (of couse, expecting a possible futu
d 254/ sector 63
The data for partition 2 is:
The data for partition 3 is:
The data for partition 4 is:
# bsdlabel /dev/aacd1s1
# /dev/aacd1s1:
8 partitions:
# size offsetfstype [fsize bsize bps/cpg]
b: 33554432 0 swap
c: 3510620127
"Julian H. Stacey" wrote;
> per...@pluto.rain.com wrote:
> > Reason: I want to make what I think would be a fairly minor
> > change to a small (1100-line) C++ program, but I don't know C++
> > -- only C -- and I don't understand the program well enough
&
On 02/24/12 22:07, Julian H. Stacey wrote:
per...@pluto.rain.com wrote:
Some early implementations of C++ operated as preprocessors
that emitted C code. Is there any current tool that will do
that? I didn't recognize any such option in the g++ manpage,
although I suppose it's pos
On Fri, Feb 24, 2012 at 4:37 AM, wrote:
> Some early implementations of C++ operated as preprocessors
> that emitted C code. Is there any current tool that will do
> that? I didn't recognize any such option in the g++ manpage,
> although I suppose it's possible that
per...@pluto.rain.com wrote:
> Some early implementations of C++ operated as preprocessors
> that emitted C code. Is there any current tool that will do
> that? I didn't recognize any such option in the g++ manpage,
> although I suppose it's possible that one of the -fdump
Some early implementations of C++ operated as preprocessors
that emitted C code. Is there any current tool that will do
that? I didn't recognize any such option in the g++ manpage,
although I suppose it's possible that one of the -fdump-tree-
options would come close enough.
Reason:
riable is not set when booting. Not a big surprise
> really. Try setting
>
> TERM=cons25
>
> in your script before it calls dialog
>
> Dan
>
>
>
>>
>> So, what is the hangup? Are there dependencies that (c)dialog needs
>> which aren't started yet
prise
really. Try setting
TERM=cons25
in your script before it calls dialog
Dan
>
> So, what is the hangup? Are there dependencies that (c)dialog needs
> which aren't started yet?
>
> (Troubleshooting)
> If I simply run
> dialog --msgbox "Test message&quo
On 02/23/2012 12:21 PM, Robarrght wrote:
> Does anyone out there see what I'm missing?
Setting TERM in your script's environment? To my knowledge, the boot
scripts have a VERY minimal environment.
Tried on 9.0-RELEASE:
$ dialog --msgbox "Test message" 6 25
shows a message, whereas
$ TERM="" di
the script works normally. I even have the script
running in getty on a virtual console, where it works like a champ.
So, what is the hangup? Are there dependencies that (c)dialog needs
which aren't started yet?
(Troubleshooting)
If I simply run
dialog --msgbox "Test message" 6 25
in
On 01/31/12 12:22, Robert Bonomi wrote:
`
Edward wrote:
On 01/31/12 06:31, Robert Bonomi wrote:
Hi,
Been trying to get BASH to sort set characters in dictionary order.
I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C"
thought tha
On Tue, 31 Jan 2012 12:05:57 -0800
Edward Martinez articulated:
> I meant LC_COLLATE being set to en_US.UTF-8 not C. linux and
> solaris shows both upper and lowercase when set characters like
> [a-cx-y] and others are used. when LC_COLLATE is set to
> en_US.UTF-8.
?_in_dictionary_order=2E?=
Hi,
Been trying to get BASH to sort set characters in dictionary order.
I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C"
thought that was enough to work,
however when i type metacharacters: set character; any chara
ictionary_order=2E?=
>
>
>
>
> Hi,
>
> Been trying to get BASH to sort set characters in dictionary order.
> I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C"
> thought that was enough to work,
> however when i type m
Hi,
Been trying to get BASH to sort set characters in dictionary order.
I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C"
thought that was enough to work,
however when i type metacharacters: set character; any character,
something like t
On Sun, Dec 11, 2011 at 05:32:00AM -0600, Ryan Coleman wrote:
> On Dec 10, 2011, at 12:30 AM, Polytropon wrote:
> > On Fri, 9 Dec 2011 13:05:05 -0600, Ryan Coleman wrote:
> >>
> >> So, wait, Firefox is Malware? Did you notice that with FF4
> >> they changed it so that you didn't get prompted on la
On Dec 10, 2011, at 12:30 AM, Polytropon wrote:
> On Fri, 9 Dec 2011 13:05:05 -0600, Ryan Coleman wrote:
>>
>> On Dec 9, 2011, at 12:03 PM, Polytropon wrote:
>>
>>> On Fri, 9 Dec 2011 09:38:59 -0600, Ryan Coleman wrote:
It's still not malware, it's bloatware. Why would you
not go to t
On Fri, 9 Dec 2011 13:05:05 -0600, Ryan Coleman wrote:
>
> On Dec 9, 2011, at 12:03 PM, Polytropon wrote:
>
> > On Fri, 9 Dec 2011 09:38:59 -0600, Ryan Coleman wrote:
> >> It's still not malware, it's bloatware. Why would you
> >> not go to the development website to get the program anyway?
> >
On Dec 9, 2011, at 12:03 PM, Polytropon wrote:
> On Fri, 9 Dec 2011 09:38:59 -0600, Ryan Coleman wrote:
>> It's still not malware, it's bloatware. Why would you
>> not go to the development website to get the program anyway?
>
> Uninvitedly adding toolbars, changing web browser
> home page and d
On Fri, 9 Dec 2011 09:38:59 -0600, Ryan Coleman wrote:
> It's still not malware, it's bloatware. Why would you
> not go to the development website to get the program anyway?
Uninvitedly adding toolbars, changing web browser
home page and default search engine are - in my
opinion - malicious acts,
On Dec 9, 2011, at 9:41 AM, Chris Brennan wrote:
> On Fri, Dec 9, 2011 at 10:38 AM, Ryan Coleman
> wrote:
> Yeah, someone on my LUG list tried to claim that the TCLUG list was the
> reason for the /. article…
>
> stupid peons…
>
> It's still not malware, it's bloatware. Why would you not go
On Fri, Dec 9, 2011 at 10:38 AM, Ryan Coleman wrote:
Yeah, someone on my LUG list tried to claim that the TCLUG list was the
>
reason for the /. article…
>
> stupid peons…
>
> It's still not malware, it's bloatware. Why would you not go to the
> development
website to get the program anyway?
S
On Dec 9, 2011, at 9:35 AM, Chris Brennan wrote:
> Sorry for the cross post I hadn't seen any chatter about this on the lists.
> It
> would seem that Download.com got caught with their pants down and were
> re-wrapping F/OSS with their own installer and bundling adware, spyware
> and malware with
Sorry for the cross post I hadn't seen any chatter about this on the lists.
It
would seem that Download.com got caught with their pants down and were
re-wrapping F/OSS with their own installer and bundling adware, spyware
and malware with it.
NMap's author, over at insecure.org got pretty hot abou
Dear ALL,
The subject says it all. I'm trying to push out of my box every ounce of
performance, perhaps even with (yet experimental) path64 compiler. So my
question is as simple as that: what is the precise spell to put in
make.comf to get (while not disrupting the ports infrastructure!)
-marc
On Thu, 3 Nov 2011 13:48:47 -0500 (CDT)
Robert Bonomi wrote:
[snip]
> I am likely _not_ the typical user -- I run a monolithic kernel, with
> everything I need 'compiled in'; *no* loadable modules. Yeah, it can
> be a nuisance if I need something that isn't compiled in, but I don't
> get ny une
Is it safe to interrupt (Ctrl + C) while building a port
> > or kernel?
>>
> > Is it clear to interrupt the building process just by pressing Ctrl
> > + ?
>
> Yes.
Whilst it's not strictly-speaking "building", I would avoid interrupting
an install.
__
On Thu, 03 Nov 2011 22:48:26 +0400
Антон Клесс wrote:
> 03.11.2011, 21:20, "Robert Bonomi" :
>
> >> If it's so, do I need to run "make clean" before I start "make"
> >> one more time?
> > Authoritative answer: "It depends".
> >
> > On what you 'did wrong", and what it takes to fix it.
> >
>
r?B?4c7Uz84g68zF09M=?=
> > >> To: freebsd-questions@freebsd.org
> > >> Date: Thu, 03 Nov 2011 21:10:19 +0400
> > >> Subject: Is it safe to interrupt (Ctrl + C) while building a port or
> > >> kernel?
> > >>
> > >> Sometimes, while b
On Thu, 3 Nov 2011, ? ? wrote:
Is it clear to interrupt the building process just by pressing Ctrl + ?
If it's so, do I need to run "make clean" before I start "make" one more time?
With ports, a "make clean" before rebuilding is a good idea. The build
might not be able to continue
ate: Thu, 03 Nov 2011 21:10:19 +0400
> >> Subject: Is it safe to interrupt (Ctrl + C) while building a port or
> >> kernel?
> >>
> >> Sometimes, while building process of some port or system kernel are in
> >> progress, you suddenly remember that you did s
03.11.2011, 21:20, "Robert Bonomi" :
>> If it's so, do I need to run "make clean" before I start "make" one more
>> time?
> Authoritative answer: "It depends".
>
> On what you 'did wrong", and what it takes to fix it.
>
> e.g., if you're building a kernel the 'classial' way, that is 'confi
On 11/3/11 6:20 PM, Robert Bonomi wrote:
>> From owner-freebsd-questi...@freebsd.org Thu Nov 3 12:10:08 2011
>> From: =?koi8-r?B?4c7Uz84g68zF09M=?=
>> To: freebsd-questions@freebsd.org
>> Date: Thu, 03 Nov 2011 21:10:19 +0400
>> Subject: Is it safe to interru
> From owner-freebsd-questi...@freebsd.org Thu Nov 3 12:10:08 2011
> From: =?koi8-r?B?4c7Uz84g68zF09M=?=
> To: freebsd-questions@freebsd.org
> Date: Thu, 03 Nov 2011 21:10:19 +0400
> Subject: Is it safe to interrupt (Ctrl + C) while building a port or kernel?
>
> Some
Sometimes, while building process of some port or system kernel are in
progress, you suddenly remember that you did something wrong and have to stop,
solve your mistake and start one more time.
Is it clear to interrupt the building process just by pressing Ctrl + ?
If it's so, do I need to run
t;
> * Java in a Nutshell
> -- O'Reilly - David Flangan
>
> * Core Java, Volume 1 - Fundamentals
> -- Cay S. Horstmann, Gary Cornell
>
> * Managed C++ and .Net Development
> -- Stephen R G Fraser, Forward by Arthur Laksberg
>
> * Counter Hack - A St
Bryan Costales with Eric Allman
>
> * Java in a Nutshell
> -- O'Reilly - David Flangan
>
> * Core Java, Volume 1 - Fundamentals
> -- Cay S. Horstmann, Gary Cornell
>
> * Managed C++ and .Net Development
> -- Stephen R G Fraser, Forward by Arthu
damentals
-- Cay S. Horstmann, Gary Cornell
* Managed C++ and .Net Development
-- Stephen R G Fraser, Forward by Arthur Laksberg
* Counter Hack - A Step by Step Guide to Computer Attacks and Effective
Defenses
-- Ed Skoudis
* Scene of the Cybercrime: Computer Forensics
Matthew Seaman wrote:
> '32/' is not any sort of syntax I've ever seen before to
> indicate hexadecimal.
I suspect it's a typo, intending '32.' My fingers are forever
mixing up slashes and periods, since the keys are adjacent
(on a US/English keyboard, dunno about other arrangements).
_
> Date: Sun, 16 Oct 2011 16:06:54 -0700
> From: Gary Kline
> Subject: Re: need to check for hex in C: how/
>
> this will bbe my 'sanity-checck' of sorts. the ck function will
> have something like:
>
> if ((char)x == 'a')
> {
> }
>
And, yo
On Sun, 16 Oct 2011 16:06:54 -0700, Gary Kline wrote:
> this will bbe my 'sanity-checck' of sorts. the ck function will
> have something like:
>
> if ((char)x == 'a')
> {
> }
I'm not sure this is required. Many functions that deal with
characters (in this case: letters) do operate on (int) inste
On Sun, Oct 16, 2011 at 11:58:03PM +0200, Polytropon wrote:
> Date: Sun, 16 Oct 2011 23:58:03 +0200
> From: Polytropon
> Subject: Re: need to check for hex in C: how/
> To: Gary Kline
> Cc: FreeBSD Mailing List
> X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.
On Sun, Oct 16, 2011 at 11:07:59PM +0100, Matthew Seaman wrote:
> Date: Sun, 16 Oct 2011 23:07:59 +0100
> From: Matthew Seaman
> Subject: Re: need to check for hex in C: how/
> To: freebsd-questions@freebsd.org
>
> On 16/10/2011 22:26, Gary Kline wrote:
> > if n == 15 and
On 16/10/2011 22:26, Gary Kline wrote:
> if n == 15 and x is the int. i can say
>
> if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x.
>
> what's the syntax to chec if x is , say, 32/
In C code you can write an integer constant in hexadecimal by p
ed, no matter if
you compare (int) or (char) to a numerical or character
value.
int i;
char c;
if(i == 32 || i == ' ') ...
if(c == 32 || c == ' ') ...
Functions or macros that deal with characters usually
do return (int), even though one would expect (char).
--
Polytropon
> From owner-freebsd-questi...@freebsd.org Sun Oct 16 16:27:46 2011
> Date: Sun, 16 Oct 2011 14:26:31 -0700
> From: Gary Kline
> To: FreeBSD Mailing List
> Cc:
> Subject: need to check for hex in C: how/
>
>
> if n == 15 and x is the int. i can say
>
> if
if n == 15 and x is the int. i can say
if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x.
what's the syntax to chec if x is , say, 32/
--
Gary Kline kl...@thought.org http://www.thought.org Public Service Unix
Journey Toward the Dawn, E-Book: http://www.thoug
.@freebsd.org
>> > [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Patrick Gibson
>> > Sent: Thursday, March 03, 2011 5:58 PM
>> > To: Jorge Biquez
>> > Cc: freebsd-questions@freebsd.org
>> > Subject: Re: Simplest way to deny access to a class C
class C
>
>I wonder why nobodies mentioned a quite simple method with tcpwrappers and
>hosts.allow / hosts.deny also
Hello.
I guess something simple could work For some reason, don ask me
why becasue I did not find why, the:
Order Deny, Allow
Deny IP
Allow all
under httpd.conf an
.htaccess does not work but for now
teh thing is simple, to block a class C, those guys are stupiod and
programmed bad an application (I guess) and are pointing to one of my
domains... since 4 weeks ago I am receiving this kind of access:
189.254.19.93 - - [04/Mar/2011:19:43:48 -0600] "OP
Check out portsentry perhaps?
I used to use it quite a bit. Whenever someone would hit one of a number
of defined ports, I'd automatically add a rule denying them in IPFW and
also drop their route to a non-existent IP on my class C.
On 03/04/11 16:14, Patrick Gibson wrote:
fail2b
sday, March 03, 2011 5:58 PM
> > To: Jorge Biquez
> > Cc: freebsd-questions@freebsd.org
> > Subject: Re: Simplest way to deny access to a class C
> >
> > You might consider mod_security (/usr/ports/www/mod_security) which
> > can be set up to ban hosts based on beh
tion...
>
> -Original Message-
> From: owner-freebsd-questi...@freebsd.org
> [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Patrick Gibson
> Sent: Thursday, March 03, 2011 5:58 PM
> To: Jorge Biquez
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Simple
On Thu, Mar 3, 2011 at 4:02 PM, Gary Gatten wrote:
> Be careful of automated responses. What if someone spoofs IP's of legit
> users / customers / whatever and your automated response blocks them? Not
> good.
Fortunately this is a relatively low risk with fail2ban, because to
spoof a failed S
] On Behalf Of Patrick Gibson
>> Sent: Thursday, March 03, 2011 5:58 PM
>> To: Jorge Biquez
>> Cc: freebsd-questions@freebsd.org
>> Subject: Re: Simplest way to deny access to a class C
>>
>> You might consider mod_security (/usr/ports/www/mod_security) which
>
1 - 100 of 955 matches
Mail list logo