Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3498756
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:31:42+00:00 2026-05-18T12:31:42+00:00

I have a large code which was earlier built for Linux environment, which involves

  • 0

I have a large code which was earlier built for Linux environment, which involves call to write() from unistd.h. Is there any port of write() call available for Win32 environment. I am looking to build this large code base ‘as it is’ on Windows environment(MS-VS 2005 enviroment) without touching the code if possible.

Changing the code to replace the write() calls with fwrite() would be tedious manual process as the signatures of the two are different.

EDITED: Actually many other unix based calls fail as well in Windows environment as well – read(),open(),close()…

Any pointers would be useful.

thank you.

-AD

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:31:43+00:00Added an answer on May 18, 2026 at 12:31 pm

    Microsoft’s C runtime has _open _read _write etc. as “low-level I/O“. However, these are compatibility wrappers mangled managed by the C runtime layer and subject to restrictions like “limited by _getmaxstdio and can’t go higher than 2048“.

    You can use the NT native CreateFile ReadFile WriteFile for true low-level I/O.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to write large amount of code which is going to be used
I have a large library of code which has a few (much too few)
I have the following code which is used to upload large files (~6MB) to
I have several large code bases which compile into dynamic libraries. I know that
I have a third party C code which has large arrays of type float
I have a large segment of code, and it all works, except when there
I have some code in VB6 which creates a moderately-large tree structure (a few
I have a piece of code which generates quite large lists in each iteration.
I have a very large code, a lot of which is legacy code. I
I'm currently facing a large piece of legacy code which I have to understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.