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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:20:24+00:00 2026-05-29T06:20:24+00:00

I checked the man pages and documentation but they only discuss the command line

  • 0

I checked the man pages and documentation but they only discuss the command line call. I am talking about the C function. Two questions about it:

  • What are the arguments to sysctl() in C? (I just want a general
    description of what each argument is and what it is used for)
  • Is the sysctl() call still valid in Mac OS X Lion?

I am on Mac OS X Snow Leopard using Xcode 3.2.6

  • 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-29T06:20:26+00:00Added an answer on May 29, 2026 at 6:20 am

    Well, quoting this page, assuming it has the prototype:

    int sysctl (int *name,
                int nlen, 
                void *oldval,
                size_t *oldlenp,
                void *newval, 
                size_t newlen);
    

    then it’s parameters would be as follows:

    • name -> points to an array of integers: each of the integer values identifies a sysctl item, either a directory or a leaf node file. The symbolic names for such values are defined in <linux/sysctl.h>.
    • nlen -> states how many integer numbers are listed in the array name: to reach a particular entry you need to specify the path through the subdirectories, so you need to tell how long is such path.
    • oldval -> is a pointer to a data buffer where the old value of the sysctl item must be stored. If it is NULL, the system call won’t return values to user space.
    • oldlenp -> points to an integer number stating the length of the oldval buffer. The system call changes the value to reflect how much data has been written, which can be less than the buffer length.
    • newval -> points to a data buffer hosting replacement data: the kernel will read this buffer to change the sysctl entry being acted upon. If it is NULL, the kernel value is not changed.
    • newlen -> is the length of newval. The kernel will read no more than newlen bytes from newval.

    I’d recommend you read that entire page, since it provides more extensive details. And as for it being valid in Mac OS X Lion, I’m not sure, but I’d imagine.

    Hope I helped!

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

Sidebar

Related Questions

I've just checked the man page of CDbCriteria , but there is not enough
Checked some similar posts but they all had a common ID and these don't
Checked the documentation but I couldn't find anything. I want list the cordinates of
I checked the documentation and I couldn't find a way o renaming or copying
I checked all the topics, but i simply don't know why my script does
Checked various questions on SO, but found nothing that quite matches what I'm after...
In my app I'm using Apple's hdiutil command line utility to create compressed disk
I checked similar topics but none of those solutions did work. Here is the
Having checked the documentation at Drupal.org, I am looking for a concise guide for
I checked the API for Maps, only to find for JavaScript. Could anyone give

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.