Sponsored Content
Full Discussion: A Sad Day for Smarty Jones!
The Lounge What is on Your Mind? A Sad Day for Smarty Jones! Post 51997 by Neo on Monday 7th of June 2004 06:10:39 PM
Old 06-07-2004
The Preakness is a lot shorter than the Belmont, isn't is?

Lots of people and horses make good sprinters but fade in a longer race.

I think the race was totallly legit, Smarty Jones just faded.......
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

2. What is on Your Mind?

Does modernity make you sad?

One more "on my mind" question ('cause it's constantly on my mind): does modern technology style make you sad and wishing PCs were like they used to be in 90's? I mean we had awesome UIs like motif, win3.1, warp3/4, cde, etc... HDDs used to load with sound. Web used to be a text on a white... (7 Replies)
Discussion started by: guest115
7 Replies

3. AIX

Sad me - or Happy me? Undecided re: AIX 7.2

AIX 7.2 - needs POWER7 or later With AIX 6.1 it was POWER4 or later - then I was "Happy Me!" because I already had a POWER4 system. With AIX 7.2 - for now I am "sad me" because I do not have a POWER7. However, next week I am going to be speaking at the POWER TechU in Cannes (look me up if you... (8 Replies)
Discussion started by: MichaelFelt
8 Replies
GETPROTOENT(3)						     Linux Programmer's Manual						    GETPROTOENT(3)

NAME
getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - get protocol entry SYNOPSIS
#include <netdb.h> struct protoent *getprotoent(void); struct protoent *getprotobyname(const char *name); struct protoent *getprotobynumber(int proto); void setprotoent(int stayopen); void endprotoent(void); DESCRIPTION
The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the broken-out fields from the entry. A connection is opened to the database if necessary. The getprotobyname() function returns a protoent structure for the entry from the database that matches the protocol name name. A connec- tion is opened to the database if necessary. The getprotobynumber() function returns a protoent structure for the entry from the database that matches the protocol number number. A connection is opened to the database if necessary. The setprotoent() function opens a connection to the database, and sets the next entry to the first entry. If stayopen is nonzero, then the connection to the database will not be closed between calls to one of the getproto*() functions. The endprotoent() function closes the connection to the database. The protoent structure is defined in <netdb.h> as follows: struct protoent { char *p_name; /* official protocol name */ char **p_aliases; /* alias list */ int p_proto; /* protocol number */ } The members of the protoent structure are: p_name The official name of the protocol. p_aliases A NULL-terminated list of alternative names for the protocol. p_proto The protocol number. RETURN VALUE
The getprotoent(), getprotobyname() and getprotobynumber() functions return a pointer to a statically allocated protoent structure, or a null pointer if an error occurs or the end of the file is reached. FILES
/etc/protocols protocol database file ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +-------------------+---------------+------------------------------+ |Interface | Attribute | Value | +-------------------+---------------+------------------------------+ |getprotoent() | Thread safety | MT-Unsafe race:protoent | | | | race:protoentbuf locale | +-------------------+---------------+------------------------------+ |getprotobyname() | Thread safety | MT-Unsafe race:protobyname | | | | locale | +-------------------+---------------+------------------------------+ |getprotobynumber() | Thread safety | MT-Unsafe race:protobynumber | | | | locale | +-------------------+---------------+------------------------------+ |setprotoent(), | Thread safety | MT-Unsafe race:protoent | |endprotoent() | | locale | +-------------------+---------------+------------------------------+ In the above table, protoent in race:protoent signifies that if any of the functions setprotoent(), getprotoent(), or endprotoent() are used in parallel in different threads of a program, then data races could occur. CONFORMING TO
POSIX.1-2001, POSIX.1-2008, 4.3BSD. SEE ALSO
getnetent(3), getprotoent_r(3), getservent(3), protocols(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2017-09-15 GETPROTOENT(3)
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy