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

  • Home
  • SEARCH
  • 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 505271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:34:54+00:00 2026-05-13T06:34:54+00:00

On Linux systems (either 32- or 64-bit), what is the size of pid_t ,

  • 0

On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t?

  • 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-13T06:34:54+00:00Added an answer on May 13, 2026 at 6:34 am
    #include <stdio.h>
    #include <sys/types.h>
    
    int main()
    {
        printf("pid_t: %zu\n", sizeof(pid_t));
        printf("uid_t: %zu\n", sizeof(uid_t));
        printf("gid_t: %zu\n", sizeof(gid_t));
    }
    

    EDIT: Per popular request (and because, realistically, 99% of the people coming to this question are going to be running x86 or x86_64)…

    On an i686 and x86_64 (so, 32-bit and 64-bit) processor running Linux >= 3.0.0, the answer is:

    pid_t: 4
    uid_t: 4
    gid_t: 4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two Slackware Linux systems on which the POSIX semaphore sem_open() call fails
Say you were mainly a C-syntax like programmer and Linux systems administrator, and you
Are there any good language-agnostic distributed make systems for linux that are secure and
When testing our software on several different systems (98-XP-Vista-Seven-Linux-etc), I think that the best
Does your software handle newline characters from other systems? Linux/BSD linefeed ^J 10 x0A
Python for Unix and Linux System Administration is aimed at sysadmins. Any other favorites
I just installed a linux system (Kubuntu) and was wondering if there is a
Notice these two RedHat Linux system configuration settings: $ getconf GNU_LIBC_VERSION glibc 2.3.4 $
I need to know about Epoll On linux System. Could you recommend manual or
So I have a daemon running on a Linux system, and I want to

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.