String comparisons (Billions)
First let me say that I am not a computer science student. So I am not trying to get help with my homework. I am an IT professional who supports unix, linux and some windows. Mostly on the enterprise server level. While I am between jobs, I decided to come up with some projects to help improve some of my scri... 18 May 2010 22:31
diffent results of make implicit rules
Hi, I am reading a book on GNU make. There is an example in it puzzled me. The makefile is as follows: VPATH = src include CPPFLAGS = -I include LEX=flex SOURCE=count_words.c lexer.c counter.c count_words: counter.o lexer.o -lfl -include $(subst .c,.d,$(SOURCE)) %.d: %.c $(CC) -M $(CPPFLAGS) ... 14 May 2010 15:00
Is this Regular Expression for UTF-8 Correct??
Is this Regular Expression for UTF-8 Correct?? The solution is based on the GREEN portions of the first chart shown on this link: http://www.w3.org/2005/03/23-lex-U A semantically identical regular expression is also found on the above link underValidating lex Template 1 ['\u0000'-'\u007F'] 2 | (['... 17 May 2010 05:52
Raw socket link indication
Hi, I've written an application using Raw sockets. And sending the complete Layer2 frame. sock = socket(PF_PACKET,SOCK_RAW,htons(ETH_P_ALL)) A call like ret = send(sock, buff, buff_size,0); should returns the number of trasferred bytes. So far so good. Now, If I call the same function when the NIC link is do... 24 May 2010 15:42
tutorial or guide to terminal settings?
>Does anyone here have a link to a comprehensive guide or tutorial for the settings available in Unix terminals? I suggest you look at a package such as Ncurses. Also look at "termcap" which is used to describe the abilities of terminals. All the world is *NOT* a vt100 or emulation thereof. Things like... 13 May 2010 14:55
msync() and MAP_PRIVATE
The posix spec http://www.opengroup.org/onlinepubs/009695399/functions/msync.html : It is unspecified whether data in MAP_PRIVATE mappings has any permanent storage locations. So what are these "permanent storage locations". A tmp file in the file system name space, that would be deleted upon system restart ... 17 May 2010 13:31
New functional language - Fling
Hi I've written a little functional language just as a toy for me to play around with. Its a long way from being complete and never will be as I don't have the time to finish it but if anyone is curious you can grab a copy of the C++ source from here: http://www.ogham.demon.co.uk/zips/fling001.tgz NR ... 13 May 2010 07:10
socket send add funny chars to sent msg
hi I am reading data from a popen call (server) and sending the data to a client. It works fine except funny chars are prepended to the string sent and displayed at the client. here is the relevant code: -- FILE *FP; char string; char buf; FP = popen("lparstat -i | head -5 | tail -2","r"); while(fget... 13 May 2010 09:22
Difference between service and process??
Hi guys, i am wondering what is a diference between service and process?? Do you have any ideas? ... 19 May 2010 21:35
EFBIG and determination of max file, et al.
I need to deal with an EFBIG at work. (1) how do I determine the maximum allowed size of a file (a) rlimit is not particularly helpful: RLIMIT_FSIZE: unlimited unlimited (b) I didn't see a relevant #define under sysconf. (c) Will this be done as a check in the kernel prior to the write() or,... 13 May 2010 16:02