This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pkg install pkg:/omniti/database/postgresql-926 | |
pkg install: No matching version of omniti/database/postgresql-926 can be installed: | |
Reject: pkg://ms.omniti.com/omniti/database/postgresql-926@9.2.6,5.11-0.151006:20131205T171425Z | |
Reason: All versions matching 'require' dependency pkg:/SUNWcs@0.5.11,5.11-0.151006 are rejected | |
Reject: pkg://omnios/SUNWcs@0.5.11,5.11-0.151006:20130506T161045Z | |
Reason: Newer version pkg://omnios/SUNWcs@0.5.11,5.11-0.151008:20131204T022241Z is already installed | |
This version is excluded by installed incorporation pkg://omnios/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.151008:20131204T022427Z | |
This version is excluded by installed incorporation pkg://omnios/incorporation/jeos/illumos-gate@11,5.11-0.151008:20131204T024149Z | |
Reject: pkg://omnios/SUNWcs@0.5.11,5.11-0.151008:20131204T022241Z | |
Reason: All versions matching 'require' dependency pkg:/consolidation/osnet/osnet-incorporation are rejected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<TITLE>Course Web Page</TITLE> | |
This course is about programming | |
in C++. | |
<li><a href="http://www.cs.fsu.edu/somefile.html">Click here</a> | |
<!-- almost done! --> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc -fPIC -shared -c myctor.c -o myctor.o | |
$ gcc -fPIC -shared myctor.o -o libmyctor.so | |
$ LD_PRELOAD=$(pwd)/libmyctor.so ls | |
myctor | |
libmyctor.so myctor.c myctor.o | |
$ % dis -t .init libmyctor.so | |
disassembly for libmyctor.so | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/usr/src/common/avl/avl.c b/usr/src/common/avl/avl.c | |
index dd39c12..f0e010d 100644 | |
--- a/usr/src/common/avl/avl.c | |
+++ b/usr/src/common/avl/avl.c | |
@@ -863,6 +863,24 @@ avl_update(avl_tree_t *t, void *obj) | |
return (B_FALSE); | |
} | |
+void | |
+avl_swap(avl_tree_t *tree1, avl_tree_t *tree2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <string.h> | |
#define UNW_LOCAL_ONLY | |
#include <libunwind.h> | |
#define MAX_FUNC_NAME 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NDEBUG | |
#define ASSERT3(x, op, y) \ | |
do { \ | |
if (!((x) op (y))) { \ | |
fprintf(stderr, "Assertion failure on %s:%d: " \ | |
"expected " #x" (0x%lx) " #op \ | |
" " #y " (0x%lx)\n\n", \ | |
__FILE__, __LINE__, \ | |
(uintptr_t)x, (uintptr_t)y); \ | |
print_backtrace(0); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Align p to a multiple of w bytes | |
static inline void* align(const void const* p, unsigned char w) { | |
return (void*)(((uintptr_t)(p) + (w-1)) & ~(w-1)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
memlib.c: In function 'mem_sbrk': | |
memlib.c:64:13: error: 'sbrk' is deprecated (declared at /usr/include/unistd.h:582) [-Werror=deprecated-declarations] | |
sbrk(incr) == (void *) -1) { | |
^ | |
cc1: all warnings being treated as errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def swap(threaded_array, i, j): | |
threaded_array.locks[i].lock() | |
threaded_array.locks[j].lock() | |
threaded_array.data[i], threaded_array.data[j] = \ | |
threaded_array.data[j], threaded_array.data[i] | |
threaded_array.locks[j].unlock() | |
threaded_array.locks[i].unlock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% gdb ./a.out core | |
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
OlderNewer