Questions tagged [darwin]

Darwin is the name of the UNIX layer underlying macOS and iOS. It contains elements from FreeBSD, NetBSD and if you install the optional Developer Tools, GNU user-land tools.

40 questions
22
votes
8 answers

What features does Darwin have that other Unixes don't, or vice versa?

Does Darwin have any features that are specific to it? Do other Unixe(s) have features that Darwin lacks?
Am1rr3zA
  • 1,555
  • 4
  • 16
  • 15
16
votes
2 answers

How do I increase the maximum swap space on Mac OS X?

On Mac OS X Yosemite 10.10.5, when I try to run a calculation that needs to allocate and use 128 GB of memory (it is a command line program written in C), the kernel kills my process with extreme prejudice. This console log entry is an example of…
Mark Adler
  • 1,955
  • 4
  • 14
  • 15
14
votes
1 answer

cat /dev/null > file.log does not truncate large file in Darwin

In the past, on linux systems, I've been able to truncate large, open log files (that is, a file that is being actively written to by a process) using cat /dev/null > file.log. However, on 10.9 (Mavericks), that doesn't seem to be the case. I've got…
chb
  • 584
  • 7
  • 17
13
votes
2 answers

why is "timer_t" defined in "time.h" on Linux but not OS X

While I was reading a C source code files, I found this declarations. (This source code was written for linux system program. This is very important information) #include #include static timer_t* _interval_timer; ... At first, I…
casamia
  • 565
  • 1
  • 5
  • 7
8
votes
1 answer

What is Darwin's 'private' directory for?

Darwin has a private directory that I don't see in the Unix documentation I've found. Is that a Mac-specific directory? What is it for? Is it preserved between system upgrades?
orome
  • 416
  • 1
  • 5
  • 15
7
votes
4 answers

Where can I find a download of Darwin from Apple?

Where can I find a ISO download of Darwin? I downloaded Darwin at one time (even after they stopped releasing the ISOs) off of Apple's website. Unfortunately, I have no idea where the link went. I had it at one time.
daviesgeek
  • 225
  • 1
  • 5
  • 13
7
votes
1 answer

cgroups analogue in Darwin

Is there an analogue to cgroups in Darwin for preventing processes from escaping from the control / monitoring of its parent process by means of fork()? If yes, what is it? For some background, consider a process, P, a direct descendant, Q, and the…
user314104
  • 359
  • 3
  • 11
6
votes
1 answer

-bash: lstat: command not found

I'm using a Macbook Pro running El Capitan v 10.11.6. I am learning about symlinks, and in the man ln page, I found the following: A stat(2) on a symbolic link will return the linked-to file; an lstat(2) must be done to obtain information about…
Richie Thomas
  • 415
  • 3
  • 9
4
votes
3 answers

How do you rewind a file descriptor in bash without using a second file descriptor to read from the beginning in bash for Mac?

Environment: GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20) Try 0: exec 3<> "$(mktemp)" # open file descriptor 3 to a temp file for read/write echo 'foo' >&3 # write 'foo' to descriptor 3 read bar <&3 # read…
4
votes
2 answers

How to find a file with partially specified path?

I am trying to find all my .txt and .csv files in my backup (Apple's time machine). The structure of the backup directories is like this: /machine name/date/Macintosh HD/ The above contains all the files from my machine on that day. I have many of…
fluffy
  • 43
  • 3
4
votes
1 answer

OSX/Darwin ACL Format

In OS X, if you want to view the ACL information on a file, you can do so with the -e option of `ls. $ ls -lde app/cache drwxrwxr-x+ 7 alanstorm staff 238 Apr 1 10:02 app/cache 0: user:alanstorm allow…
Alana Storm
  • 1,413
  • 3
  • 14
  • 17
3
votes
1 answer

"locate" returns relative instead of absolute paths

One advised me to post here since this would be more appropriate (I am going to remove the previous one). On my MacBook, I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root && ./locate.updatedb I have an alias for locate…
youpilat13
  • 1
  • 1
  • 12
3
votes
1 answer

What do I need to do to update my commands?

My man page for 'whatis' does not match others I have found online. Namely, no options are available to use with it. /home/User$ whatis -d ls whatis: -d: unknown option uname -srv Darwin 16.7.0 Darwin Kernel Version 16.7.0: Sun Jun 2 20:26:31 PDT…
3
votes
1 answer

Different behavior in shell script vs in shell?

UPDATE: I have changed the grep $1 part to grep '$1' (while I was trying to mean grep "$1") in the script and this time I got the kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] message (instead of the…
Utku
  • 1,433
  • 2
  • 15
  • 28
3
votes
1 answer

Installation date and virtual status of the machine( For Darwin, FreeBSD and NetBSD)

How do I determine installation date (when the system was first booted) for Linux,Darwin, FreeBSD and NetBSD? Also, Is there any way to get the virtual status of the these machines (whether the system is virtual or physical). I need output using…
Brenda
  • 133
  • 4
1
2 3