ReactOS  0.4.12-dev-102-g4b7f1e0
various.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __P(x)   x
 
#define UT_LINESIZE   8
 
#define UT_HOSTSIZE   16
 
#define S_ISREG(mode)   (((mode)&0xF000) == 0x8000)
 
#define S_ISDIR(mode)   (((mode)&0xF000) == 0x4000)
 
#define MIN(a, b)   ((a) <= (b) ? (a) : (b))
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define bcopy(s1, s2, n)   memmove(s2, s1, n)
 
#define bcmp(s1, s2, n)   (memcmp(s1, s2, n) != 0)
 
#define bzero(s, n)   memset(s, 0, n)
 
#define index(s, c)   strchr(s, c)
 
#define rindex(s, c)   strrchr(s, c)
 

Typedefs

typedef float f4byte_t
 
typedef double f8byte_t
 
typedef long uid_t
 

Functions

void netfinger (char *)
 

Macro Definition Documentation

◆ __P

#define __P (   x)    x

Definition at line 10 of file various.h.

◆ bcmp

#define bcmp (   s1,
  s2,
  n 
)    (memcmp(s1, s2, n) != 0)

Definition at line 26 of file various.h.

Referenced by authdes_validate(), and cache_spot().

◆ bcopy

#define bcopy (   s1,
  s2,
  n 
)    memmove(s2, s1, n)

Definition at line 25 of file various.h.

Referenced by _des_crypt_call(), _svcauth_des(), hookup(), netfinger(), and uaddr_to_sockaddr().

◆ bzero

#define bzero (   s,
  n 
)    memset(s, 0, n)

Definition at line 27 of file various.h.

Referenced by __rpc_get_time_offset(), cache_init(), hookup(), initconn(), and ui_create_colourmap().

◆ index

#define index (   s,
  c 
)    strchr(s, c)

Definition at line 29 of file various.h.

Referenced by __delayLoadHelper2(), _createProviderEnumerator(), _Dispatch_type_(), _enumerateConnectedW(), _enumeratorRememberedW(), _get_elem_col_item_idx(), _ItemizeInternal(), _mesa_init_get_hash(), _test_elem_collection(), _test_elem_source_index(), _test_elem_tabindex(), _test_select_selidx(), _test_status_code(), add_block(), add_block_index(), add_checksum_entry(), add_data(), add_func_desc(), add_var_desc(), CAddressEditBox::AddComboBoxItem(), AddEntryToList(), AhciAllocateResourceForAdapter(), AhciBuild_PRDT(), AhciHwFindAdapter(), AhciHwPassiveInitialize(), AhciStartPort(), Apply_Indic_PostBase(), Apply_Indic_PreBase(), ApplyCursorScheme(), AtapiParseArgumentString(), balance_data_chunk(), BindCtxImpl_GetObjectParam(), BindCtxImpl_RegisterObjectParam(), BindCtxImpl_RevokeObjectBound(), BindCtxImpl_RevokeObjectParam(), BlockChainStream_GetBlockAtOffset(), BmpFrameDecode_ReadRLE8(), CShellBrowser::BrowseToPath(), build_clr_surrogate_section(), build_comserver_section(), build_dllredirect_section(), build_ifaceps_section(), build_information_tree(), build_progid_section(), build_proplist(), build_tlib_section(), build_wndclass_section(), Bus_PlugInDevice(), cache_container_lock_index(), callback_EnumPwrScheme(), Card::Card(), CategoryMgr_RegisterGUID(), cert_mgr_advanced_dlg_proc(), cert_mgr_dlg_proc(), cert_mgr_index_to_cert(), ChangeListViewText(), ClassInterpretSenseInfo(), ClientIdentity_QueryMultipleInterfaces(), ClientRpcChannelBuffer_SendReceive(), clipplane(), COMBO_SelectString(), COMBOEX_GetIndex(), COMBOEX_InsertItemW(), COMBOEX_SetCursel(), COMCAT_IsClassOfCategories(), COMMAND_PROTOTYPE(), ConfigDlgProc(), context_invalidate_compute_state(), Control_WndProc_Create(), create_DataFormat(), create_show_list(), CreateListColumns(), CreateSortList(), FstreamTest::custom_facet(), d3d8_allocate_handle(), d3dcompiler_shader_reflection_constant_buffer_GetVariableByIndex(), d3dcompiler_shader_reflection_GetConstantBufferByIndex(), d3dcompiler_shader_reflection_GetInputParameterDesc(), d3dcompiler_shader_reflection_GetOutputParameterDesc(), d3dcompiler_shader_reflection_GetPatchConstantParameterDesc(), d3dcompiler_shader_reflection_GetResourceBindingDesc(), d3dcompiler_shader_reflection_type_GetMemberTypeByIndex(), d3dcompiler_shader_reflection_type_GetMemberTypeName(), d3drm_animation2_AddKey(), d3drm_frame_array_GetElement(), d3drm_light_array_GetElement(), d3drm_mesh_builder3_GetTextureCoordinates(), d3drm_mesh_builder3_SetTextureCoordinates(), d3drm_visual_array_GetElement(), d3dx9_parse_resource(), D3DXDisassembleShader(), D3DXSHEvalConeLight(), D3DXSHEvalSphericalLight(), D3DXWeldVertices(), DataAdviseHolder_Advise(), DataAdviseHolder_Destructor(), DataAdviseHolder_OnConnect(), DataAdviseHolder_OnDisconnect(), DataAdviseHolder_Unadvise(), datetime_proc(), dbgstr_event_seq_result(), DdGetFreeHandle(), debugstr_guid(), CardCount::Dec(), DECLARE_INTERFACE(), DECLARE_INTERFACE_(), decode_surrogate_pair(), DeleteBootRecords(), deleteRepeatDiagonals(), DestroyIconList(), DetermineMediaType(), BtrfsVolPropSheet::DeviceDlgProc(), DisplayClassCoinstallers(), DisplayCsFlags(), DisplayDeviceCoinstallers(), DisplayDevicePropertyText(), DisplayDevNodeFlags(), DisplayPopupMenu(), DoSync(), draw_string_callback(), dump_DispParms(), EMFDRV_AddHandle(), EMFDRV_CreateBrushIndirect(), EMFDRV_CreateFontIndirect(), EMFDRV_CreatePenIndirect(), EMFDRV_DeleteDC(), EMFDRV_DeleteObject(), EMFDRV_FillRgn(), EMFDRV_FindObject(), EMFDRV_FrameRgn(), EMFDRV_SelectBrush(), EMFDRV_SelectFont(), EMFDRV_SelectPalette(), EMFDRV_SelectPen(), EMFDRV_SetDCBrushColor(), EMFDRV_SetDCPenColor(), emit_dht(), emit_dqt(), EnumOLEVERB_Construct(), EnumSTATDATA_Construct(), euc2sjisibm_g3upper(), euc2sjisibm_jisx0212(), CDockSite::Exec(), FATGetNextDirEntry(), FILEDLG95_InitControls(), fill_cp_info(), fill_diskdrive(), fill_diskpartition(), fill_display_information_d3d(), FillResolutionsAndColors(), find_data(), find_dll_redirection(), find_guid_index(), find_progid_redirection(), find_published_source(), find_string_index(), find_subtable_with_diffs(), find_subtable_with_offsets(), findNextOidInTable(), findOidInTable(), FindScsiAdapter(), findValueInTable(), FlCheckFormatParameters(), flipover(), flush_partial_stripe(), GdipBitmapGetPixel(), GeneralPropertyPageLocalesEnumProc(), CList< LPSTR >::Get(), get_attribute_byindex(), get_char_script(), get_constants_desc(), get_context_handle_offset(), get_Cookie_data(), get_Cookie_magic(), get_declared_prefix_idx(), get_dht(), get_drive_connection(), get_elem_by_id(), get_generic_handle_offset(), get_gif_transparent_idx(), get_header_index(), get_index(), get_next_reader(), get_objmap_entry(), get_palette_index(), get_printer_data(), get_processor_currentclockspeed(), get_processor_maxclockspeed(), get_propval(), get_serial_info(), get_settingid(), get_shader_semantics(), get_sos(), get_subtests(), get_temp_buffer(), CBaseBarSite::GetBandObject(), CMenuToolbarBase::GetDataFromId(), GetDeviceCount(), CAddressEditBox::GetItemData(), vertexArray::getNumElements(), GifDecoder_GetFrame(), GPOS_apply_ContextPos(), GPOS_apply_PairAdjustment(), GPOS_apply_SingleAdjustment(), GSUB_apply_AlternateSubst(), GSUB_apply_ContextSubst(), GSUB_apply_LigatureSubst(), GSUB_apply_MultipleSubst(), GSUB_apply_SingleSubst(), han2zen(), handle_redirect(), handle_to_entry(), HandleList_Update(), header_cb(), HLPFILE_BrowsePage(), HLPFILE_DoReadHlpFile(), HLPFILE_Uncompress2(), HTMLElement2_get_tabIndex(), HTTP_GetCustomHeaderIndex(), HTTP_HttpQueryInfoW(), http_process_keep_alive(), HTTP_ProcessHeader(), ICO_ExtractIconExW(), IcoDecoder_GetFrame(), ICreateTypeInfo2_fnAddFuncDesc(), ICreateTypeInfo2_fnAddImplType(), ICreateTypeInfo2_fnAddRefTypeInfo(), ICreateTypeInfo2_fnAddVarDesc(), ICreateTypeInfo2_fnSetFuncAndParamNames(), ICreateTypeInfo2_fnSetFuncDocString(), ICreateTypeInfo2_fnSetFuncHelpContext(), ICreateTypeInfo2_fnSetImplTypeFlags(), ICreateTypeInfo2_fnSetVarDocString(), ICreateTypeInfo2_fnSetVarHelpContext(), ICreateTypeInfo2_fnSetVarName(), ID3DXConstantTableImpl_GetConstant(), ID3DXConstantTableImpl_GetConstantElement(), IDirectMusic8Impl_EnumPort(), IFileDialogCustomize_fnAddControlItem(), ImageAddCertificate(), ImageEnumerateCertificates(), impl_from_proxy_obj(), index_from_format(), index_from_urltemplate(), Indic_ParseSyllables(), Varray::init(), init_thunk(), initialize_purpose_selection(), insert_glyph(), CardStack::InsertCard(), INTERNET_GetSchemeString(), InternetReadFile_test(), IPADDRESS_SetRange(), IPADDRESS_SubclassProc(), isaxattributes_getQName(), isaxattributes_getValue(), iso_nextValidChar(), iso_previousValidChar(), ISynchronize_fnWait(), ITERATE_CreateShortcuts(), ITypeInfo2_fnGetAllFuncCustData(), ITypeInfo2_fnGetAllImplTypeCustData(), ITypeInfo2_fnGetAllVarCustData(), ITypeInfo2_fnGetFuncCustData(), ITypeInfo2_fnGetImplTypeCustData(), ITypeInfo2_fnGetVarCustData(), ITypeInfo_fnGetImplTypeFlags(), ITypeInfo_fnGetRefTypeOfImplType(), ITypeInfo_fnGetVarDesc(), ITypeInfo_GetContainingTypeLib_Proxy(), ITypeInfoImpl_GetInternalFuncDesc(), ITypeLib2_fnGetTypeInfoType(), ios_base::iword(), LauncherRoutine2(), list_channel_CB(), list_invoke(), LISTBOX_DeleteItem(), LISTBOX_FindFileStrPos(), LISTBOX_FindStringPos(), LISTBOX_GetItemFromPoint(), LISTBOX_GetItemHeight(), LISTBOX_GetItemRect(), LISTBOX_HandleLButtonDown(), LISTBOX_HandleMouseMove(), LISTBOX_InsertItem(), LISTBOX_InsertString(), LISTBOX_MakeItemVisible(), LISTBOX_MoveCaret(), LISTBOX_PaintItem(), LISTBOX_RemoveItem(), LISTBOX_SetCaretIndex(), LISTBOX_SetItemHeight(), LISTBOX_SetSelection(), LISTBOX_SetTopItem(), LISTBOX_WindowProc(), ListBoxWndProc_common(), ListSymbolStartingAt(), LISTVIEW_CalculateItemWidth(), LISTVIEW_MapIdToIndex(), LISTVIEW_RefreshReportGrid(), LISTVIEW_UpdateHScroll(), load_free_space_bitmap(), load_stored_free_space_tree(), LoadCursorScheme(), LoadInitialCursorScheme(), LocalesEnumProc(), LocationsEnumProc(), LookupInit(), lv_get_item_data(), MainWndProc(), match_event_sequence(), mdbr_GetReaderByIndex(), merge_const_set_entries(), MetadataHandlerEnum_Create(), MFDRV_AddHandle(), MFDRV_CreatePalette(), MFDRV_DeleteDC(), MFDRV_DeleteObject(), MFDRV_FindObject(), MFDRV_InvertRgn(), MFDRV_PaintRgn(), MFDRV_RemoveHandle(), MFDRV_SelectBrush(), MFDRV_SelectFont(), MFDRV_SelectObject(), MFDRV_SelectPen(), mi_paint_rect(), MONTHCAL_GetColor(), MONTHCAL_PaintLeadTrailMonths(), MONTHCAL_SetColor(), mqr_GetMetadataByName(), MSACM_FillFormatTagsCB(), msg2str(), msi_dialog_combobox_handler(), msi_dialog_dirlist_handler(), msi_dialog_listbox_handler(), msi_dialog_volsel_handler(), MsiEnumComponentsExW(), MsiEnumProductsExW(), MsiGetPatchInfoW(), MsiGetProductCodeW(), MUIClearPage(), MUIDisplayPage(), multi_wait_cb(), NdrDllGetClassObject(), NdrUserMarshalBufferSize(), NdrUserMarshalFree(), NdrUserMarshalMarshall(), NdrUserMarshalUnmarshall(), new_body_entry(), newfile_proc(), nextValidChar(), nfs41_name_cache_remove_stale(), NtGdiGetNearestPaletteIndex(), OleAdviseHolderImpl_Advise(), OleAdviseHolderImpl_Destructor(), OleAdviseHolderImpl_Unadvise(), OnBPPChanged(), OnCommand(), CBaseBarSite::OnCustomDraw(), OnDisplayDeviceChanged(), CMenuToolbarBase::OnGetInfoTip(), pack_table(), PaintStaticControls(), paraformat_proc(), parse_ctab_constant_type(), parse_rundll(), parse_vertex_colors(), ParseArguments(), ParsePEHeaders(), pass(), PickIconProc(), CAddressEditBox::PopulateComboBox(), CMenuToolbarBase::PopupItem(), Pos_InitPage(), previousValidChar(), print_insn(), proc_PlaySound(), process_brushcache(), process_header(), process_polygon(), process_polygon2(), process_polyline(), CMenuToolbarBase::ProcessContextMenu(), ProcessLongMidiMessage(), PROPSHEET_CollectPageInfo(), PROPSHEET_CreatePage(), PROPSHEET_GetPageIndex(), PROPSHEET_HwndToIndex(), PROPSHEET_IdToIndex(), PROPSHEET_InsertPage(), PROPSHEET_RemovePage(), PROPSHEET_SetCurSel(), PROPSHEET_ShowPage(), PSM_FindLastPrefix(), put_propval(), ios_base::pword(), query_headers(), ranges_add(), ranges_del(), ranges_shift(), read_data_raid5(), read_data_raid6(), read_ib(), read_input_file(), read_urls(), RefreshCursorList(), registry_load_volume_options(), registry_mark_volume_unmounted_path(), registry_read_formatopts(), release_handle(), ReloadCurrentCursorScheme(), ReLoadDisplayPage(), remglob(), ATL::CComDynamicUnkArray::Remove(), remove_Cookie(), remove_header(), CBaseBarSite::RemoveBand(), CardStack::RemoveCard(), resize_template_hook(), return_multi_qi(), RPC_GetLocalClassObject(), rpcrt4_http_check_response(), RpnpEvaluateStack(), RtlQueryInformationActivationContext(), ruserpass(), safe_str(), SaveCursorScheme(), SAXAttributes_getLocalName(), SAXAttributes_getName(), SAXAttributes_getQName(), SAXAttributes_getType(), SAXAttributes_getURI(), SAXAttributes_getValue(), SAXAttributes_getValueFromName(), SAXAttributes_getValueFromQName(), scrub_data_extent(), ScsiClassInterpretSenseInfo(), send_close_messages(), serial_get_event(), serial_get_timeout(), set_statustext(), TArrayAsVector< KeyMap >::SetData(), SetEnv(), SetFailureActions(), SetInterruptGate(), setnmap(), setpeer(), setpixel_8bppIndexed(), SetupGetSourceInfoW(), shader_glsl_clip_plane_uniform(), SHLoadIndirectString(), shove1010102(), shove1555rev(), shove2101010rev(), shove233rev(), shove332(), shove4444(), shove4444rev(), shove5551(), shove565(), shove565rev(), shove8888(), shove8888rev(), shoveFloat(), shoveSbyte(), shoveSint(), shoveSshort(), shoveUbyte(), shoveUint(), shoveUshort(), show_frame(), show_store_certs(), CBaseBarSite::ShowBand(), ShowFailureActions(), SIC_IconAppend(), simple_callbackA(), simple_callbackW(), SimpleMatch(), sjisibm2euc(), sort_linked_list(), SortEnumProc(), SPY_GetClassLongOffsetName(), state_colorwrite_i(), STDMETHODIMP_(), Storage32Impl_AddExtBlockDepot(), Storage32Impl_GetExtDepotBlock(), StorageImpl_GetNextBlockInChain(), StorageImpl_LoadFileHeader(), StorageImpl_SaveFileHeader(), STORAGES_find_matching_rows(), STREAMS_find_matching_rows(), strtoul(), sw_DescribePixelFormat(), symt_new_array(), template_hook_arrange(), terminate_processes(), test_add_certificate(), test_AddMandatoryAce(), test_bad_header(), test_CoWaitForMultipleHandles(), test_CoWaitForMultipleHandles_thread(), test_CreateFileW(), test_cryptTls(), test_default_dacl_owner_sid(), test_dibsections(), test_domdoc(), test_dot_parsing(), test_elem_col_item(), test_EnumChildContainerNames(), test_EnumPropNames(), test_ExtractAssociatedIcon(), test_form_item(), test_GetConsoleFontInfo(), test_GetIfEntry2(), test_GetLargestConsoleWindowSize(), test_GetProp(), test_HttpQueryInfo(), test_interface_identifier_conversion(), test_Keys(), test_MsiEnumComponents(), test_MsiEnumComponentsEx(), test_MsiEnumProducts(), test_MsiEnumProductsEx(), test_mxattr_addAttribute(), test_mxattr_localname(), test_not_modified(), test_OpenConsoleW(), test_PdhLookupPerfIndexByNameA(), test_PdhLookupPerfIndexByNameW(), test_root_children(), test_SafeArrayGetPutElement(), test_select_elem(), test_sip(), test_table_modify(), test_token_security_descriptor(), test_WinHttpAddHeaders(), testGetIfEntry(), testQuery(), TLB_ReadTypeLib(), monoChain::toArraySingleLoop(), directedLine::toArraySinglePolygon(), TOOLBAR_CustomizeDialogProc(), TOOLBAR_DrawImage(), TOOLBAR_TTGetDispInfo(), TOOLTIPS_CopyInfoT(), TransactedSnapshotImpl_DestroyDirEntry(), TransactedSnapshotImpl_StreamSetSize(), TransactedSnapshotImpl_StreamWriteAt(), TransactedSnapshotImpl_WriteDirEntry(), TranslateCOLORREF(), TRIO_ARGS2(), TRIO_ARGS3(), TRIO_ARGS4(), TRIO_ARGS5(), TRIO_ARGS6(), TTIsEmbeddingEnabledForFacename(), txt_get_glyph_table(), txt_get_mb_table(), txt_get_wc_table(), UDFDOSName100(), UDFDOSName200(), UDFDOSName201(), UDFReadAndProcessFullToc(), UIINSERTOBJECTDLG_SelChange(), unserialize(), CNotifyToolbar::UpdateButton(), UpdateDisplay(), UpdateFailureActions(), URL_GuessScheme(), urlcache_entry_alloc(), urlcache_enum_hash_table_entries(), userlist(), userselect_dlgproc(), utf7_write_c(), utf7_write_w(), ValidateItem(), verify_cert_revocation(), verify_cert_revocation_from_dist_points_ext(), verify_cert_revocation_with_crl_offline(), verify_cert_revocation_with_crl_online(), wine_cp_enum_table(), WININET_GetAuthRealm(), wmain(), WMSFT_compile_typeinfo(), wnet_use_connection(), WNetCancelConnection2W(), WNetCloseEnum(), WNetGetResourceInformationW(), WNetOpenEnumW(), write_ib(), and WsTcEntryInitializeFromRegistry().

◆ MAX

#define MAX (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Definition at line 23 of file various.h.

◆ MIN

#define MIN (   a,
  b 
)    ((a) <= (b) ? (a) : (b))

Definition at line 22 of file various.h.

◆ rindex

#define rindex (   s,
  c 
)    strrchr(s, c)

Definition at line 30 of file various.h.

Referenced by netfinger(), recvrequest(), reset(), and shell().

◆ S_ISDIR

◆ S_ISREG

◆ UT_HOSTSIZE

#define UT_HOSTSIZE   16

Definition at line 14 of file various.h.

◆ UT_LINESIZE

#define UT_LINESIZE   8

Definition at line 13 of file various.h.

Typedef Documentation

◆ f4byte_t

typedef float f4byte_t

Definition at line 6 of file various.h.

◆ f8byte_t

typedef double f8byte_t

Definition at line 7 of file various.h.

◆ uid_t

typedef long uid_t

Definition at line 8 of file various.h.

Function Documentation

◆ netfinger()

void netfinger ( char )

Definition at line 40 of file net.c.

Referenced by userlist().

41 {
42  extern int lflag;
43  char c, lastc;
44  struct in_addr defaddr;
45  struct hostent *hp, def;
46  struct servent *sp;
47  struct sockaddr_in sin;
48  SOCKET s;
49  char *alist[1], *host;
50 
51  /* If this is a local request */
52  if (!(host = rindex(name, '@')))
53  return;
54 
55  *host++ = '\0';
56  if (isdigit(*host) && (defaddr.s_addr = inet_addr(host)) != (unsigned long)-1) {
57  def.h_name = host;
58  def.h_addr_list = alist;
59  def.h_addr = (char *)&defaddr;
60  def.h_length = sizeof(struct in_addr);
61  def.h_addrtype = AF_INET;
62  def.h_aliases = 0;
63  hp = &def;
64  } else if (!(hp = gethostbyname(host))) {
66  "finger: unknown host: %s\n", host);
67  return;
68  }
69  if (!(sp = getservbyname("finger", "tcp"))) {
70  (void)fprintf(stderr, "finger: tcp/finger: unknown service\n");
71  return;
72  }
73  sin.sin_family = hp->h_addrtype;
74  bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length);
75  sin.sin_port = sp->s_port;
76  if ((s = socket(hp->h_addrtype, SOCK_STREAM, 0)) == INVALID_SOCKET) {
77  perror("finger: socket");
78  return;
79  }
80 
81  /* have network connection; identify the host connected with */
82  (void)printf("[%s]\n", hp->h_name);
83  if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
84  fprintf(stderr, "finger: connect rc = %d", WSAGetLastError());
85  (void)closesocket(s);
86  return;
87  }
88 
89  /* -l flag for remote fingerd */
90  if (lflag)
91  send(s, "/W ", 3, 0);
92  /* send the name followed by <CR><LF> */
93  send(s, name, strlen(name), 0);
94  send(s, "\r\n", 2, 0);
95 
96  /*
97  * Read from the remote system; once we're connected, we assume some
98  * data. If none arrives, we hang until the user interrupts.
99  *
100  * If we see a <CR> or a <CR> with the high bit set, treat it as
101  * a newline; if followed by a newline character, only output one
102  * newline.
103  *
104  * Otherwise, all high bits are stripped; if it isn't printable and
105  * it isn't a space, we can simply set the 7th bit. Every ASCII
106  * character with bit 7 set is printable.
107  */
108  lastc = 0;
109  while (recv(s, &c, 1, 0) == 1) {
110  c &= 0x7f;
111  if (c == 0x0d) {
112  if (lastc == '\r') /* ^M^M - skip dupes */
113  continue;
114  c = '\n';
115  lastc = '\r';
116  } else {
117  if (!isprint(c) && !isspace(c))
118  c |= 0x40;
119  if (lastc != '\r' || c != '\n')
120  lastc = c;
121  else {
122  lastc = '\n';
123  continue;
124  }
125  }
126  putchar(c);
127  }
128  if (lastc != '\n')
129  putchar('\n');
130  putchar('\n');
131  (void)closesocket(s);
132 }
#define isspace(c)
Definition: acclib.h:69
char ** h_addr_list
Definition: winsock.h:138
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:47
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
Definition: socklife.c:143
#define inet_addr(cp)
Definition: inet.h:98
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char * h_name
Definition: winsock.h:134
char * host
Definition: whois.c:55
char ** h_aliases
Definition: winsock.h:135
INT WSAAPI connect(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
Definition: sockctrl.c:23
#define rindex(s, c)
Definition: various.h:30
#define closesocket
Definition: main.c:39
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int putchar(int c)
Definition: crtsupp.c:12
short h_length
Definition: winsock.h:137
#define isdigit(c)
Definition: acclib.h:68
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
Definition: getxbyxx.c:221
INT WSAAPI WSAGetLastError(VOID)
Definition: dllmain.c:112
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
Definition: getxbyxx.c:500
int lflag
Definition: finger.c:66
#define INVALID_SOCKET
Definition: winsock.h:332
#define bcopy(s1, s2, n)
Definition: various.h:25
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
Definition: send.c:23
Definition: tcpip.h:125
GLdouble s
Definition: gl.h:2039
short h_addrtype
Definition: winsock.h:136
short s_port
Definition: winsock.h:165
#define isprint(c)
Definition: acclib.h:73
Definition: name.c:36
#define c
Definition: ke_i.h:80
FILE * stderr
#define AF_INET
Definition: tcpip.h:117
static const WCHAR sp[]
Definition: suminfo.c:288
UINT_PTR SOCKET
Definition: winsock.h:47
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
#define SOCK_STREAM
Definition: tcpip.h:118
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
Definition: recv.c:23
#define printf
Definition: config.h:203