06-14-2006
The /etc/services is simply a mapping by which various different programs use the getservbyname and getservbyport calls to map between the ports and names various services use.
You can have multiple lines but exactly what happens when you do so will depend on the implementation of getservbyname and getservbyport. On Solaris the first matching entry in the /etc/services file is used so multiple entries dont make much sense other than to provide a human readable record.
5 More Discussions You Might Find Interesting
1. Programming
Hello,
I would like to conditionaly comment in my code source some fields from arrays. So I use the property ## from the #define definition.
my code:
...
#define slet /##*
#define etsl *##/
...
const T_SVT_ADLL_A653_DESC A_DESC =
{
{ slet qwerty etsl SLICING,... (3 Replies)
Discussion started by: cypleen
3 Replies
2. Programming
if i do this in C
#define NUM 1234512345
then how come i cant print it out using
int main(int argc, char **argv) {
printf("%d\n", NUM);
return 0;
}
well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
Discussion started by: omega666
7 Replies
3. Programming
Hi,
I had a head file, looks like
#define MIN_NUM 10
#define MAX_NUM 10
is there any way to get "MAX_NUM" from 10?
thanks.
peter (9 Replies)
Discussion started by: laopi
9 Replies
4. Linux
I have several Redhat servers and workstations that I need to be able to monitor for any changes and be notified of any changes to the OS. The features I need to specifically monitor are:
ports - opening of new ports that are not already in a whitelist
services - any starting or attempts to start... (1 Reply)
Discussion started by: JCDinPGH
1 Replies
5. UNIX for Beginners Questions & Answers
Hi all
I would like to know how to run task2.service after task1.service has finished.
task1.service has a timer (task1.timer), that makes it run every 5 minutes
OnCalendar=*:0/5task2.service is basically a script, that has to work on the files created after task1 has finished.
This is what I... (2 Replies)
Discussion started by: guilliber
2 Replies