Skip to content

Instantly share code, notes, and snippets.

@alanc
alanc / SRU72-man-page-changes.diff
Created August 20, 2024 19:54
Changes to core OS man pages in Oracle Solaris 11.4 SRU 72
diff -NurbBw 11.4.69/man1/elfdump.1 11.4.72/man1/elfdump.1
--- 11.4.69/man1/elfdump.1 2024-08-20 12:29:43.276888435 -0700
+++ 11.4.72/man1/elfdump.1 2024-08-20 12:30:00.431797350 -0700
@@ -4,7 +4,7 @@
elfdump - dumps selected parts of an object file
SYNOPSIS
- elfdump [-cCdegGhHiklmnPrsSuvVy] [-p | -w file]
+ elfdump [-cCdegGhHiklLmnPrsSuvVy] [-p | -w file]
[-F fmtopt1,fmtopt2,...] [-I index-expr]
@alanc
alanc / clofork.c
Created August 4, 2024 18:17
Test to see if FD_CLOFORK persists across exec calls on Solaris 11.4
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
int main(void) {
int fd;
char pidbuf[16];
@alanc
alanc / SRU69-man-page-changes.diff
Last active May 25, 2024 20:42
Changes to core OS man pages in Oracle Solaris 11.4 SRU 69
diff -NurbBw 11.4.66/man1/cp.1 11.4.69/man1/cp.1
--- 11.4.66/man1/cp.1 2024-05-25 09:57:46.925657970 -0700
+++ 11.4.69/man1/cp.1 2024-05-25 09:58:10.649742762 -0700
@@ -95,7 +95,9 @@
-p Preserve. The cp utility duplicates not only the contents of
source_file, but also attempts to preserve its ACL, access and
modification times, extended attributes, extended system attrib-
- utes, file mode, and owner and group ids.
+ utes, file mode, and owner and group ids. This includes all the
+ same things for any extended attributes. Retention time is ex-
@alanc
alanc / SRU66-man-page-changes.diff
Created February 24, 2024 01:54
Changes to core OS man pages in Oracle Solaris 11.4 SRU 66
diff -NurbBw 11.4.63/man1/cp.1 11.4.66/man1/cp.1
--- 11.4.63/man1/cp.1 2024-02-23 17:45:28.936885164 -0800
+++ 11.4.66/man1/cp.1 2024-02-23 17:51:32.913974558 -0800
@@ -129,8 +129,15 @@
-S Call fsync(2) on the target file's file descriptor.
- -z Fast Copy. cp will reflink the source and destination files. For
- more information, see the reflink(3C) man page.
+ -z Fast Copy. cp will reflink the source and destination files.
@alanc
alanc / SRU63-man-page-changes.diff
Created November 18, 2023 01:17
Changes to core OS man pages in Oracle Solaris 11.4 SRU 63
diff -NurbBw 11.4.60/man1/dhcpinfo.1 11.4.63/man1/dhcpinfo.1
--- 11.4.60/man1/dhcpinfo.1 2023-11-17 16:41:19.596341251 -0800
+++ 11.4.63/man1/dhcpinfo.1 2023-11-17 16:41:42.818929680 -0800
@@ -57,6 +57,9 @@
name, RFC 1035 format
Classless Route Classless Static Route Iden- CLROUTE
tifier, RFC 3442 format
+ DNSDomSearch An RFC 1035-compressed list FQDN
+ of fully qualified domain
+ names
@alanc
alanc / gist:c2c1dc37f73015e85f45a18374623e60
Created September 18, 2023 22:17
SunOS 4.0 filesystem(7) man page
Miscellaneous Information Manual FILESYSTEM(7)
NAME
filesystem - file system organization
SYNOPSIS
/
/usr
@alanc
alanc / SRU60-man-page-changes.diff
Created August 24, 2023 00:58
Changes to core OS man pages in Oracle Solaris 11.4 SRU 60
diff -NurbBw 11.4.57/man1/cp.1 11.4.60/man1/cp.1
--- 11.4.57/man1/cp.1 2023-08-23 17:32:50.217561201 -0700
+++ 11.4.60/man1/cp.1 2023-08-23 17:33:19.180382437 -0700
@@ -6,28 +6,28 @@
cp - copy files
SYNOPSIS
- /usr/bin/cp [-Pfipz@/] source_file target_file
+ /usr/bin/cp [-PSfipz@/] source_file target_file
@alanc
alanc / SRU57-man-page-changes.diff
Last active May 25, 2023 21:04
Changes to core OS man pages in Oracle Solaris 11.4 SRU 57
diff -NurbBw 11.4.54/man1/error.1 11.4.57/man1/error.1
--- 11.4.54/man1/error.1 2023-05-24 15:26:43.843782933 -0700
+++ 11.4.57/man1/error.1 2023-05-24 15:27:23.176004099 -0700
@@ -61,10 +61,10 @@
-q error asks whether the file should be touched. A 'y'
- or 'n' to the question is necessary to continue.
- Absence of the -q option implies that all referenced
- files (except those referring to discarded error mes-
diff -NurbBw 11.4.51/man1/acctcom.1 11.4.54/man1/acctcom.1
--- 11.4.51/man1/acctcom.1 2023-02-14 17:42:27.045093171 -0800
+++ 11.4.54/man1/acctcom.1 2023-02-14 17:42:44.034699624 -0800
@@ -12,14 +12,13 @@
[-S time] [-u user] [filename]...
DESCRIPTION
- The acctcom utility reads filenames, the standard input, or
- /var/adm/pacct, in the form described by acct.h(3HEAD) and writes
- selected records to standard output. Each record represents the execu-
diff -NurbBw 11.4.48/man1/du.1 11.4.51/man1/du.1
--- 11.4.48/man1/du.1 2022-11-16 10:31:48.947151637 -0800
+++ 11.4.51/man1/du.1 2022-11-16 10:31:57.354741496 -0800
@@ -109,52 +109,10 @@
All sizes are scaled to a human readable format, for example, 14K,
234M, 2.7G, or 3.0T. Scaling is done by repetitively dividing by
- 1024, unless otherwise specified.
-
- --scale specified without arguments enables default scaled output,