- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- mknod equivalent to OVMS to create FIFO special F...
Operating System - OpenVMS
1753758
Members
4743
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2005 09:55 PM
тАО08-01-2005 09:55 PM
mknod equivalent to OVMS to create FIFO special FIle
Hi,
Can you please let me know what is the equivalent mknod function from unix to the OVMS.I am converting an application developed in c++ on unix to Open VMS .So this system call mknod(creates a FIFO special file) says undefined during compilation.So is there any other function that i can use or method
Kindly help.
- sharitha
Can you please let me know what is the equivalent mknod function from unix to the OVMS.I am converting an application developed in c++ on unix to Open VMS .So this system call mknod(creates a FIFO special file) says undefined during compilation.So is there any other function that i can use or method
Kindly help.
- sharitha
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 02:12 AM
тАО08-02-2005 02:12 AM
Re: mknod equivalent to OVMS to create FIFO special FIle
mknod (and mkfifo) never made it into the crtl.
No significant customer pressure, and too many other things to do.
Check out popen and pclose.
I would suggest you look up the VMS native function SYS$CREMBX. It is close but not close enough to readily make a general purpose mknod from:
- $crembx for a permanent mailbox requires PRMMBX privileges.
- Mknod would be expected to leave a directory entry, but crembx creates a devices and/or logical name
- fstat should say it is a pipe, but it will be a mailbox.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 10:53 PM
тАО08-02-2005 10:53 PM
Re: mknod equivalent to OVMS to create FIFO special FIle
Good way, using mailboxes. These are FIFO by nature.
Another approach:
Create an indexed file with Primary key: Integer value, ascending, nodup
Keep track of newest, that is: last key value written
Keep track of oldest, that is: last key value read
IN:
Incement LastKey
PrimaryKey = LastKey
WRITE record
OUT:
Either:
Increment OldestKey
PrimaryKey = OldestKey
READ on Primary key
or:
PrimaryKey = 0
READ on Primary key. This will result in an error (KEY NOT FOUND or something like that) but the record will contain what you need.
DELETE record (a requireement here)
Another approach:
Create an indexed file with Primary key: Integer value, ascending, nodup
Keep track of newest, that is: last key value written
Keep track of oldest, that is: last key value read
IN:
Incement LastKey
PrimaryKey = LastKey
WRITE record
OUT:
Either:
Increment OldestKey
PrimaryKey = OldestKey
READ on Primary key
or:
PrimaryKey = 0
READ on Primary key. This will result in an error (KEY NOT FOUND or something like that) but the record will contain what you need.
DELETE record (a requireement here)
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2005 10:57 PM
тАО08-02-2005 10:57 PM
Re: mknod equivalent to OVMS to create FIFO special FIle
BTW, You could do the same with relative files when you read "Record number" for "Primary key". Implies less overhead...
If you can do al writing in one go, and process all data afterwards, a plain sequential file might be a possibility.
If you can do al writing in one go, and process all data afterwards, a plain sequential file might be a possibility.
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP