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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:22:12+00:00 2026-06-10T11:22:12+00:00

Starting to write C code for the Linux platform, I am using man tool

  • 0

Starting to write C code for the Linux platform, I am using man tool to get information about standard libraries functions. Now I wonder what are the solution to get easily information about the structures used by these functions.

To get an example here is the (partially) output of man sched_setaffinity

SCHED_SETAFFINITY(2)                                                                                                  Linux Programmer's Manual                                                                                                  SCHED_SETAFFINITY(2)

NAME
       sched_setaffinity, sched_getaffinity - set and get a process's CPU affinity mask

SYNOPSIS
       #define _GNU_SOURCE             /* See feature_test_macros(7) */
       #include <sched.h>

       int sched_setaffinity(pid_t pid, size_t cpusetsize,
                             cpu_set_t *mask);

I now want to do conceptually a “man cpu_set_t” to now what this structure look like.

How achieve this ? For now I am browsing the web or the header files containing the structure declaration but it’s not as “quick” as I would hope. Is there any better solution ?

EDIT: I suspect this type to be an integer or long type, but I choose this example for conciseness and of course my question stands fro complex structures

  • 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-10T11:22:13+00:00Added an answer on June 10, 2026 at 11:22 am

    Running man -k cpu_set (equivalent to apropos cpu_set, searches through descriptions) leads one to the man page for the CPU_SET macros, which are also referred to by the sched_setaffinity man page. (I expect you are referring more to the general case, but you should note that cpu_set_t should be treated as opaque and accessed via those macros)

    In most cases, the relevant man pages do either describe the types they need directly, or refer to other relevant pages for those.

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

Sidebar

Related Questions

I'm starting to write code using Prototype coming from a jQuery background. Is there
I am starting to write some code for A/B testing in a Grails web
We are starting to write more and more code for an ASP.Net web application
I'm starting to write a code syntax highlighter in JavaScript, and I want to
I am trying to write a code to get the set of points (x,y)
I'm on a Linux Ubuntu 12.04 system. I have been using this code to
I'm starting to write a code, but it fails at the beginning. This is
I am starting to write some code in Java Swing and I am getting
I'm starting to write a simple Model class using codeigniter 2.1.0. All that I
I've been writing tests for a while now and I'm starting to get the

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.