xnu | Mirror of xnu with full history
kandi X-RAY | xnu Summary
kandi X-RAY | xnu Summary
Mirror of xnu with full history
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xnu
xnu Key Features
xnu Examples and Code Snippets
Community Discussions
Trending Discussions on xnu
QUESTION
I am trying to install a library from a go v1.18 program to access Google Cloud. Previously, the "go get" command was used, but since version 1.18, it is no longer available. It seems to use go install, but I get an error when executing the command.
...ANSWER
Answered 2022-Apr-09 at 21:13go install is used to install binary programs available on the package. Usually command line tools.
go get, until go1.18, was used to update packages and install programs, they change it by split in several programs
Seems there is nothing to install. Also the main package is not bigquery but cloud.google.com/go
If you want to install a dependency, if you are using vendorized modules you can do
$ go get -u cloud.google.com/go/bigquery
$ go mod tidy
$ go mod vendor
If not, you may try it by running go mod init
first
QUESTION
Sorry for my bad english.
I'm using macOS 12.3 in M1 Pro MacBook Pro
I want to know about source code of printf in C standard library.
I can find stdio.h file in usr/include directory.
But I can't find printf.c or stdio.c file in same directory.
And I think Apple Open Source's printf.c is too complicate, dosen't looks like a real code in macOS and dosen't helpful for me. Is that Apple Open Source printf.c code is really used in macOS?
https://opensource.apple.com/source/xnu/xnu-201/osfmk/kern/printf.c.auto.html
...ANSWER
Answered 2022-Mar-23 at 06:38The newest Apple Open Source libc implementation of vfprintf
(which is the generic underlying function that plain printf
calls) can be found here on opensource.apple.com.
It's about 1400 lines, and yes, it is complex.
Some other alternate implementations (which are complex too) are:
QUESTION
I'm working on a procfs kernel extension for macOS and trying to implement a feature that emulates Linux’s /proc/cpuinfo similar to what FreeBSD does with its linprocfs. Since I'm trying to learn, and since not every bit of FreeBSD code can simply be copied over to XNU and be expected to work right out of the jar, I'm writing this feature from scratch, with FreeBSD and NetBSD's linux-based procfs features as a reference. Anyways...
Under Linux, $cat /proc/cpuinfo showes me something like this:
...ANSWER
Answered 2022-Mar-18 at 07:54There is no need to allocate memory for this task: pass a pointer to a local array along with its size and use strlcat
properly:
QUESTION
With Macbook 2021 (arm64).
...ANSWER
Answered 2022-Feb-15 at 17:14This is something to do with the way os.walk interfaces with Apple's NTFS handler. If you use a proprietary NTFS tool for MacOS, then os.walk works as expected.
Check out my alternative code for pathlib to walk with Apple NTFS or any other.
QUESTION
I’m using Mac OS Big Sur and rvm
...ANSWER
Answered 2022-Jan-11 at 20:24> rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.10]
[ruby-]2.2[.10]
[ruby-]2.3[.8]
[ruby-]2.4[.10]
[ruby-]2.5[.8]
[ruby-]2.6[.6]
[ruby-]2.7[.2]
[ruby-]3[.0.0]
ruby-head
QUESTION
I have been trying to use Python in RStudio but apparently, the versions do not match. I have the reticulate version 1.23 installed. I get the following error.
...ANSWER
Answered 2022-Jan-25 at 20:52I think I figured it out. Here's what worked for me.
First, I opened Terminal and found my Python 3 location.
QUESTION
** Conda Fails to Create a new env: stuck at "Executing transaction"**
I am working with a MacOS, BigSur 11.6, and have updated conda and mamba
conda update --all
conda update mamba
and, following guidance from a software installation guide I tried to create a new env:
conda create -n fermi -c conda-forge -c fermi fermitools python=3 clhep=2.4.4.1
Also tried with the dev version:
conda create -n fermi-2.0.24 -c conda-forge -c fermi/label/dev fermitools=2.0.24
and with mamba
mamba create -n fermi -c conda-forge -c fermi fermitools python=3 clhep=2.4.4.1
All trials get stuck in " executing transaction \ " (> 1h)
when hitting ctrl+c, all trials show the same error msg:
" ERROR conda.core.link:_execute(699): An error occurred while installing package 'conda-forge::gdk-pixbuf-2.42.6-h2e6141f_0'. " " Rolling back transaction: done "
my uname -v:
Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64
my conda --version
conda 4.10.3
There seems to be a long standing discussion about similar issues here. Some argue that hitting "enter" solved the problem after " executing transaction \ " was running for a long time. It would be great, but did not worked.
The issue #6986 seems to persist and it is not clear how to deal with it.
Any ideas on how to approach this? Thank you in advance!
...ANSWER
Answered 2022-Jan-23 at 05:56Looking for resources on the error " Solving environment: failed with current_repodata.json, will retry with next repodata source. "
Then, reading: link1 , link2 , link3 (check the comment from "glass-ships") , link4
It seems the following can help:
conda update conda -c conda-canary
conda config --set channel_priority false
conda create --name your_env_name
conda activate your_env_name
conda install XXXXXX
then conda activate your_env_name
and the tool is working just fine.
QUESTION
I downloaded the latest version of an old project from sourceforge, Vipul's Razor from here: http://razor.sourceforge.net/
The Makefile generated by perl Makefile.PL
creates a non-existent target on my platform, MacOS "Big Sur" 11.3.1 . Here is what I tried:
ANSWER
Answered 2021-Nov-25 at 19:56make: *** No rule to make target
/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/perl.h
, needed byblib/man5/.exists
. Stop.
This error is caused by the following line:
QUESTION
Trying to install Python 3.10.0 on MacOS 11.6 (Intel) with pyenv 2.1.0 (from homebrew) fails with:
...ANSWER
Answered 2021-Oct-06 at 05:56Try env ARCHFLAGS="-arch x86_64"
(that works for me for other Python-related tools, I don't use pyenv myself).
Rationale: modern macOS supports 2 architectures: intel (x86_64) and m1 (arm-something). Compiling for only one architecture is easier.
QUESTION
I am using the MicrosoftPowerBIMgmt module for powershell to connect to Power BI so that I can upload a report, but am unable to get it to connect successfully. I have tried using this code on both a windows 10 enterprise machine and a mac running powershell core.
I am trying to connect using a service principal using the following code :
ANSWER
Answered 2021-Nov-16 at 06:17I tested and it is working fine for me. I am getting the same error if I am using the some password for SecurePassword instead of client secret.
You can create your application Secret key Using New client secret.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xnu
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page