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 7962541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:21:53+00:00 2026-06-04T05:21:53+00:00

In the standard library (glibc) I see functions defined with leading double underscores, such

  • 0

In the standard library (glibc) I see functions defined with leading double underscores, such as __mmap in sys/mman.h. What is the purpose? And how can we still call a function mmap which doesn’t seem to be declared anywhere. I mean we include sys/mman.h for that, but sys/mman.h doesn’t declare mmap, it declares only __mmap.

  • 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-06-04T05:21:55+00:00Added an answer on June 4, 2026 at 5:21 am

    From GNU’s manual:

    In addition to the names documented in this manual, reserved names
    include all external identifiers (global functions and variables) that
    begin with an underscore (‘_’) and all identifiers regardless of use
    that begin with either two underscores or an underscore followed by a
    capital letter are reserved names. This is so that the library and
    header files can define functions, variables, and macros for internal
    purposes without risk of conflict with names in user programs.

    This is a convention which is also used by C and C++ vendors.

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

Sidebar

Related Questions

I downloaded the glibc source code, modified some portion of the standard library and
How can we replace a C standard library function with our own implementation of
How can a standard-library module (say math) be accessed when a file prog.py is
Is there any standard library of Matrix in c. Which I can implement across
In the Ruby Standard Library we have the Singleton class: http://ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html We can make
Is there a standard library or commonly used library that can be used for
Is the C++ standard library tied to the compiler or can a different implementation
Just curious why the C++ standard library uses all lower case and underscores instead
If for example I should not use standard library functions like printf() , putchar()
I downloaded the GNU Standard C Library (glibc) source code at http://ftp.gnu.org/gnu/glibc/ . Where

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.