Simply
# pkg_add plan9port
The package gets installed in /usr/local/plan9 by default. To execute the plan9port's programs either add that path
| #include <errno.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdnoreturn.h> | |
| #include <unistd.h> | |
| #include <ucontext.h> | |
| #include "prepare.h" | |
| #define thread_local _Thread_local |
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):
| ################################################################### | |
| Writing C software without the standard library | |
| Linux Edition | |
| ################################################################### | |
| There are many tutorials on the web that explain how to build a | |
| simple hello world in C without the libc on AMD64, but most of them | |
| stop there. | |
| I will provide a more complete explanation that will allow you to | |
| build yourself a little framework to write more complex programs. |
A week ago I was CC'd in on a thread about Linux packaging, and how to avoid doing it the wrong way (i.e. RPM, Deb, etc.). I've always used MojoSetup and I've never forced distributions to do any additional work, but this is still a new concept to a lot of people. Additionally, Amos suggested that I expand on Itch's FNA appendix, so here's a guide on how I package my games.
This is a bit of an expansion on my MAGFest 2016 presentation, which you can find here:
http://www.flibitijibibo.com/magfest2016/
https://www.youtube.com/watch?v=B83CWUh0Log
I would recommend looking at that first! After that, read on...
| #!/bin/bash | |
| # GameName Shell Script | |
| # Written by Ethan "flibitijibibo" Lee | |
| # Move to script's directory | |
| cd "`dirname "$0"`" | |
| # Get the kernel/architecture information | |
| UNAME=`uname` | |
| ARCH=`uname -m` |
| /* | |
| * $Id: $ | |
| * | |
| * Module: free -- description | |
| * Created: 15-SEP-2008 17:56 | |
| * Author: tmr | |
| */ | |
| #include <stdio.h> | |
| #include <unistd.h> |
| PRODUCT_NAME := Foo | |
| SCHEME_NAME := ${PRODUCT_NAME} | |
| WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace | |
| UI_TESTS_TARGET_NAME := ${PRODUCT_NAME}UITests | |
| TEST_SDK := iphonesimulator | |
| TEST_CONFIGURATION := Debug | |
| TEST_PLATFORM := iOS Simulator | |
| TEST_DEVICE ?= iPhone 11 Pro Max | |
| TEST_OS ?= 13.3 |
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi