Click to See Complete Forum and Search --> : Silly question
LordWire
August 21st, 2004, 11:19 AM
What is meant by "c" being portable
Fidato
August 21st, 2004, 11:25 AM
Relating to or being software that can run on two or more kinds of computers or with two or more kinds of operating systems
LordWire
August 21st, 2004, 11:29 AM
thanks
lepricaun
August 21st, 2004, 12:42 PM
as Fidato already said, C is a programming language which is used (and useable) on almost every OS, therefor it is portable.
however, there are specific functions in C that are specific for windows or specific for linux, this is why a virus/trojan doesn't work on both windows AND linux, for instance the network functions (to create a socket), are different in windows and in linux, and without networkfunctions a virus/trojan wouldn't be much of a virus/trojan, would it?!
and since most virusses are written for windows, you don't have to be afraid that they will work on linux too, that's one of the reasons why most security-people run there computers on linux.
i know this isn't exactly what you asked, but i thought this would explain things...
whizkid2300
August 21st, 2004, 05:13 PM
however, there are specific functions in C that are specific for windows or specific for linux, this is why a virus/trojan doesn't work on both windows AND linux, for instance the network functions (to create a socket), are different in windows and in linux, and without networkfunctions a virus/trojan wouldn't be much of a virus/trojan, would it?!
Actually your wrong. But since I am not in the mood to explain it all to you. I will link to you.
http://www.linuxquestions.org/questions/showthread.php?s=&threadid=217382&perpage=15&pagenumber=1
and since most virusses are written for windows, you don't have to be afraid that they will work on linux too, that's one of the reasons why most security-people run there computers on linux.
You do know that there are linux viruses right?
lepricaun
August 21st, 2004, 09:44 PM
Actually your wrong. But since I am not in the mood to explain it all to you. I will link to you.
http://www.linuxquestions.org/quest...mp;pagenumber=1i've read the thread, but this still doesn't say that you can use the winsock() funtion in linux C... and as far as my knowledge goes, there isn't another way to use sockets in windows..(but perhaps i'm wrong, and if i'm wrong, i would like to know more about this :D)
You do know that there are linux viruses right?like i said MOST virusses, yes i do know there are linux virusses, why else would there be antvirus software for linux :)
The Grunt
August 21st, 2004, 09:46 PM
why else would there be antvirus software for linux
To my knowledge there is no AV software that scans linux machines for viruses. All I have seen is AV software that runs on linux that checks all the other win boxes on a network or scans emails for viruses (mailserver).
netRealm
August 21st, 2004, 11:04 PM
There's ClamAV (http://www.clamav.net). It runs on Linux and checks Linux filesystems.
The Grunt
August 22nd, 2004, 12:23 AM
Good find! Now my knowledge has increased :D
lepricaun
August 22nd, 2004, 02:10 AM
there should be another one too, i've read about it recently, but i forgot the name, but very soon (one of these days) i'm going to install gentoo on my notebook (dual boot with XP pro sp2) and i'm going to install AV on it when it is ready. :D
{Jellybelly}
August 25th, 2004, 02:57 AM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261258#post783276) by LordWire
What is meant by "c" being portable
As Lepeicaun said, it is were you can take C code written for one operating system and and modify it so it can run on another operating system.
(Example: Taking a source code written for Windows, and modify it so it will work on the Mac.)
For example, if we were to look at this code
void main()
{
system("cls");
}
This application would run fine on a Windows/Dos system, but when I compile and run the same code on my Slackware system I would get an error because the command "cls" is not a valid Bash command. In order to get this code to work on Linux I would need to modify it (port it) to Linux and change the system("cls"); part to system("clear"); as shown below
void main()
{
system("clear");
}
and then it would work without problems on Linux. I hope this explains it. I more then likely confused you. I would do a quick search on Google and look up the term "Porting" and "Port Code" and you should find a definition you should understand.
-- {Jellybelly}
chsh
August 25th, 2004, 04:31 AM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261258#post783369) by The Grunt
To my knowledge there is no AV software that scans linux machines for viruses. All I have seen is AV software that runs on linux that checks all the other win boxes on a network or scans emails for viruses (mailserver).
Kaspersky Anti-Virus. They have it for linux servers, primarily Mail and File servers, but it can be configured to scan the entire machine for viruses.
Oh, and you can also write portable C in mind. For almost any language being ported to multiple platforms this has to be kept in mind -- even with Java, although Java has tools that way ease portability.