473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Nmap Malloc etc...

Hi all...now after a lot of experiments in c programming(two weeks..for
precision), i've seen another strange instraction..and i post you the
question...
Like in the subject...why i must use nmap rather then malloc????.
Best regards all..
See you from Rome, Cla.

Nov 14 '05 #1
5 2755
lasek <cl**************@acrm.it> wrote:
Hi all...now after a lot of experiments in c programming(two weeks..for
precision), i've seen another strange instraction..and i post you the
question...
Like in the subject...why i must use nmap rather then malloc????.


What's nmap? Never heard of that function - it's definitely not
a standard C function. So there definitely does not seem to be
any need to use it instead of malloc() if you write portable C
programs. Should you mean "mmap()" instead of "malloc()", then
you're talking about a UNIX (only?) function that allows to map
a file into memory (but also allows to allocate a memory region
under certain conditions) and in that case you better ask that
question in e.g. comp.unix.programmer - but then tell a bit more
about the context, without it your question makes no sense even
if you should be talking about UNIX specific programs.

Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
Sorry you say the true...i've a mistake to write the correct name of the
function, in effect is 'MMAP' and no 'nmap'..now i post in the correct
forum, thanks a lot.

Nov 14 '05 #3
...i've seen a file.pc and inside this, the programmer it used the function
mmap to store a struct with some particular flag permission..so my first
question was..i can use also malloc instead of mmap ? because my know-how
in C...is not enough sufficient...so i've more difficult to understand
mmap rather then malloc.
Thanks...

Nov 14 '05 #4

"lasek" <cl**************@acrm.it> wrote in message
news:74******************************@localhost.ta lkaboutprogramming.com...
Hi all...now after a lot of experiments in c programming(two weeks..for
precision), i've seen another strange instraction..and i post you the
question...
Like in the subject...why i must use nmap rather then malloc????.


You are working on an ucLinux system and referrint to mmap()?

If yes... That's OS specific.

If not... That's weird. Choose another compiler.
Nov 14 '05 #5

"lasek" <cl**************@acrm.it> wrote in message
news:c8******************************@localhost.ta lkaboutprogramming.com...
Sorry you say the true...i've a mistake to write the correct name of the
function, in effect is 'MMAP' and no 'nmap'..now i post in the correct
forum, thanks a lot.


Embedded linux only.
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

231
by: Brian Blais | last post by:
Hello, I saw on a couple of recent posts people saying that casting the return value of malloc is bad, like: d=(double *) malloc(50*sizeof(double)); why is this bad? I had always thought...
7
by: Rano | last post by:
/* Hello, I've got some troubles with a stupid program... In fact, I just start with the C language and sometime I don't understand how I really have to use malloc. I've readden the FAQ...
15
by: Martin Jørgensen | last post by:
Hi, I have a (bigger) program with about 15-30 malloc's in it (too big to post it here)... The last thing I tried today was to add yet another malloc **two_dimensional_data. But I found out that...
68
by: James Dow Allen | last post by:
The gcc compiler treats malloc() specially! I have no particular question, but it might be fun to hear from anyone who knows about gcc's special behavior. Some may find this post interesting;...
71
by: desktop | last post by:
I have read in Bjarne Stroustrup that using malloc and free should be avoided in C++ because they deal with uninitialized memory and one should instead use new and delete. But why is that a...
4
Loismustdie129
by: Loismustdie129 | last post by:
I am using PCLinuxOS 2007 now. When I go into the terminal I attempt to see my open ports so i can open one for a game. When I try to run an nmap on 127.0.0.1, it returns no ports. So I guess I...
2
by: kauaikat | last post by:
HI, Searched and searched and really looking for a decent method for importing nmap's XML into mySQL. I am working with using navicat, but for some reason i can't get it to bring everything in the...
0
by: Daniel Folkes | last post by:
I made this script for fun. you need to have Nmap installed on your linux computer and it will find all the computers on the network and then run Nmap on it. Hope you enjoy! <code> import...
0
by: Daniel Folkes | last post by:
I made this script for fun. you need to have Nmap installed on your linux computer and it will find all the computers on the network and then run Nmap on it. Hope you enjoy! import os fn =...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.