LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-28-2005, 05:32 AM   #1
m3rc_2004
LQ Newbie
 
Registered: Jun 2004
Location: India
Distribution: Manrdake 10.0
Posts: 3

Rep: Reputation: 0
gcc equivalent for Visual C++ function: PeekNamedPipe ()


How do I check, in a platform-independent manner, the status of a pipe (if it is ready or not) without waiting on the pipe until a character is available? (I want the call to return immediately with the status). MS visual C++ does it with the windows-specific function PeekNamedPipe(....). Is there something that can do the equivalent and be compiled by g++?

Thank You,
m3rc_2004
 
Old 07-29-2005, 06:58 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: Slackware64 13.37, Kubuntu 10.04
Posts: 2,831

Rep: Reputation: Disabled
Take a look at `man stat`. That might help you out.
ta0kira
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getopt() function in visual C++ KissDaFeetOfSean Programming 1 07-15-2005 12:47 AM
ruby equivalent of PHP's print_r(); function?? opioid Programming 1 04-08-2005 02:23 PM
visual c++ equivalent? tardigrade Linux - Software 2 10-18-2004 02:45 AM
Visual Basic.Net Equivalent cucolin@ Programming 3 02-02-2004 08:51 PM
Compile Visual C++ project using gcc on Linux jdmc020 Programming 4 11-04-2003 01:43 PM


All times are GMT -5. The time now is 08:13 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration