LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-28-2005, 04: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, 05:58 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

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


Reply



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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration