Skip to content

Instantly share code, notes, and snippets.

@oglops
Created September 11, 2015 17:05
Show Gist options
  • Save oglops/cb48d8814150d4bff577 to your computer and use it in GitHub Desktop.
Save oglops/cb48d8814150d4bff577 to your computer and use it in GitHub Desktop.
for netcore q3 cross compiling
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/Makefile /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/Makefile
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/Makefile 2013-01-11 23:10:32.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/Makefile 2015-09-12 00:55:07.823993600 +0800
@@ -877,7 +877,7 @@
## generate outvec_STDOUT.h:
outvec/outvec_STDOUT.h : outvec/mk_outvec
- ./outvec/mk_outvec > outvec/outvec_STDOUT.h
+# ./outvec/mk_outvec > outvec/outvec_STDOUT.h
## outvec:
outvec_STDERR.o : outvec/outvec_STDERR.c outvec.h
@@ -1011,7 +1011,7 @@
## generate rlimit_defs table:
rlimit/rlimit_defs.c.in : rlimit/mk_rlimit
- ./rlimit/mk_rlimit > rlimit/rlimit_defs.c.in
+# ./rlimit/mk_rlimit > rlimit/rlimit_defs.c.in
rlimit.o : rlimit/rlimit.c \
rlimit/rlimit_defs.c.in \
@@ -1065,11 +1065,11 @@
## generate errno table:
sysstr/sysstr_errno.c.in : sysstr/mksysstr sysstr.h
- ./sysstr/mksysstr errno > $@
+# ./sysstr/mksysstr errno > $@
## generate signal table:
sysstr/sysstr_signo.c.in : sysstr/mksysstr sysstr.h
- ./sysstr/mksysstr signo > $@
+# ./sysstr/mksysstr signo > $@
sysstr_errno.o : sysstr/sysstr_errno.c \
sysstr/sysno_lookup.c.in \
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/outvec/outvec_STDOUT.h /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/outvec/outvec_STDOUT.h
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/outvec/outvec_STDOUT.h 1970-01-01 08:00:00.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/outvec/outvec_STDOUT.h 2015-09-11 22:14:37.000000000 +0800
@@ -0,0 +1,7 @@
+/* outvec_STDOUT.h
+** automatically generated by mk_outvec (outvec/mk_outvec.c)
+*/
+
+#define _VEC_STDOUT_SIZE 16
+
+/* eof: outvec_STDOUT.h */
\ No newline at end of file
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/rlimit/rlimit_defs.c.in /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/rlimit/rlimit_defs.c.in
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/rlimit/rlimit_defs.c.in 1970-01-01 08:00:00.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/rlimit/rlimit_defs.c.in 2015-09-11 22:16:42.000000000 +0800
@@ -0,0 +1,23 @@
+/* rlimit_defs.c.in
+** automatically generated by mk_rlimit (rlimit/mk_rlimit.c)
+*/
+
+/*
+** 12 sorted rlimit_def entries in rlimit_defs[] table:
+*/
+static const struct rlimit_def rlimit_defs[] = {
+ {0, "RLIMIT_CPU", "maximum cpu time per process (seconds)"},
+ {1, "RLIMIT_FSIZE", "maximum file size that may be created (bytes)"},
+ {2, "RLIMIT_DATA", "maximum data segment per process (bytes)"},
+ {3, "RLIMIT_STACK", "maximum size of stack segment per process (bytes)"},
+ {4, "RLIMIT_CORE", "maximum size core file (bytes)"},
+ {5, "RLIMIT_NOFILE", "maximum number of open files per process (files)"},
+ {6, "RLIMIT_VMEM", "maximum total available memory (bytes)"},
+ {6, "RLIMIT_AS", "maximum total available memory (bytes)"},
+ {7, "RLIMIT_RSS", "maximum resident set size (bytes)"},
+ {8, "RLIMIT_NPROC", "maximum number of child processes per user id (processes)"},
+ {9, "RLIMIT_MEMLOCK", "maximum memory a process may mlock() (bytes)"},
+ {10, "RLIMIT_LOCKS", "maximum number of file locks that may be held (locks)"},
+};
+
+/* eof (rlimit_defs.c.in) */
\ No newline at end of file
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/sysstr/sysstr_errno.c.in /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/sysstr/sysstr_errno.c.in
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/sysstr/sysstr_errno.c.in 1970-01-01 08:00:00.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/sysstr/sysstr_errno.c.in 2015-09-11 22:22:24.000000000 +0800
@@ -0,0 +1,128 @@
+/* sysstr_errno.c.in
+** automatically generated by mksysstr (sysstr/mksysstr.c)
+*/
+
+/*
+** 117 sorted sysno_def entries in errno_defs[] table:
+*/
+static const struct sysno_def errno_defs[] = {
+ {0, "EOK", "no error"},
+ {1, "EPERM", "permission denied"},
+ {2, "ENOENT", "file does not exist"},
+ {3, "ESRCH", "no such process"},
+ {4, "EINTR", "interrupted system call"},
+ {5, "EIO", "input/output error"},
+ {6, "ENXIO", "device not configured"},
+ {7, "E2BIG", "argument list too long"},
+ {8, "ENOEXEC", "exec format error"},
+ {9, "EBADF", "file descriptor not open"},
+ {10, "ECHILD", "no child processes"},
+ {11, "EAGAIN", "temporary i/o failure"},
+ {12, "ENOMEM", "out of memory"},
+ {13, "EACCES", "access denied"},
+ {14, "EFAULT", "bad address"},
+ {15, "ENOTBLK", "not a block device"},
+ {16, "EBUSY", "device busy"},
+ {17, "EEXIST", "file already exists"},
+ {18, "EXDEV", "cross-device link"},
+ {19, "ENODEV", "device does not support operation"},
+ {20, "ENOTDIR", "not a directory"},
+ {21, "EISDIR", "is a directory"},
+ {22, "EINVAL", "invalid argument"},
+ {23, "ENFILE", "system cannot open more files"},
+ {24, "EMFILE", "process cannot open more files"},
+ {25, "ENOTTY", "not a tty"},
+ {26, "ETXTBSY", "text busy"},
+ {27, "EFBIG", "file too big"},
+ {28, "ENOSPC", "out of disk space"},
+ {29, "ESPIPE", "unseekable descriptor"},
+ {30, "EROFS", "read-only file system"},
+ {31, "EMLINK", "too many links"},
+ {32, "EPIPE", "broken pipe"},
+ {33, "EDOM", "input out of range"},
+ {34, "ERANGE", "output out of range"},
+ {35, "ENOMSG", "no message of desired type"},
+ {36, "EIDRM", "identifier removed"},
+ {37, "ECHRNG", "channel number out of range"},
+ {41, "ELNRNG", "link number out of range"},
+ {42, "EUNATCH", "protocol driver not attached"},
+ {45, "EDEADLK", "operation would cause deadlock"},
+ {46, "ENOLCK", "no locks available"},
+ {50, "EBADE", "invalid exchange"},
+ {51, "EBADR", "invalid request descriptor"},
+ {52, "EXFULL", "exchange full"},
+ {53, "ENOANO", "no anode"},
+ {54, "EBADRQC", "invalid request code"},
+ {55, "EBADSLT", "invalid slot"},
+ {60, "ENOSTR", "not a stream device"},
+ {61, "ENODATA", "no data available"},
+ {62, "ETIME", "timer expired"},
+ {63, "ENOSR", "out of stream resources"},
+ {64, "ENONET", "machine not on network"},
+ {65, "ENOPKG", "package not installed"},
+ {66, "EREMOTE", "too many levels of remote in path"},
+ {67, "ENOLINK", "link severed"},
+ {68, "EADV", "advertise error"},
+ {69, "ESRMNT", "srmount error"},
+ {70, "ECOMM", "communication error"},
+ {71, "EPROTO", "protocol error"},
+ {74, "EMULTIHOP", "multihop attempted"},
+ {77, "EBADMSG", "bad message type"},
+ {78, "ENAMETOOLONG", "file name too long"},
+ {79, "EOVERFLOW", "value exceeds range of data type"},
+ {80, "ENOTUNIQ", "name not unique on network"},
+ {81, "EBADFD", "file descriptor in bad state"},
+ {82, "EREMCHG", "remote address changed"},
+ {83, "ELIBACC", "cannot access shared library"},
+ {84, "ELIBBAD", "shared library corrupted"},
+ {86, "ELIBMAX", "linking too many shared libraries"},
+ {87, "ELIBEXEC", "cannot exec a shared library"},
+ {88, "EILSEQ", "illegal byte sequence"},
+ {89, "ENOSYS", "system call not available"},
+ {90, "ELOOP", "symbolic link loop"},
+ {91, "ERESTART", "interrupted system call not restarted"},
+ {92, "ESTRPIPE", "streams pipe error"},
+ {93, "ENOTEMPTY", "directory not empty"},
+ {94, "EUSERS", "too many users"},
+ {95, "ENOTSOCK", "not a socket"},
+ {96, "EDESTADDRREQ", "destination address required"},
+ {97, "EMSGSIZE", "message too long"},
+ {98, "EPROTOTYPE", "incorrect protocol type"},
+ {99, "ENOPROTOOPT", "protocol not available"},
+ {120, "EPROTONOSUPPORT", "protocol not supported"},
+ {121, "ESOCKTNOSUPPORT", "socket type not supported"},
+ {122, "EOPNOTSUPP", "operation not supported"},
+ {123, "EPFNOSUPPORT", "protocol family not supported"},
+ {124, "EAFNOSUPPORT", "address family not supported"},
+ {125, "EADDRINUSE", "address already used"},
+ {126, "EADDRNOTAVAIL", "address not available"},
+ {127, "ENETDOWN", "network down"},
+ {128, "ENETUNREACH", "network unreachable"},
+ {129, "ENETRESET", "network reset"},
+ {130, "ECONNABORTED", "connection aborted"},
+ {131, "ECONNRESET", "connection reset"},
+ {132, "ENOBUFS", "out of buffer space"},
+ {133, "EISCONN", "already connected"},
+ {134, "ENOTCONN", "not connected"},
+ {135, "EUCLEAN", "structure needs cleaning"},
+ {140, "EREMOTEIO", "remote i/o error"},
+ {143, "ESHUTDOWN", "socket shut down"},
+ {144, "ETOOMANYREFS", "too many references"},
+ {145, "ETIMEDOUT", "connection timed out"},
+ {146, "ECONNREFUSED", "connection refused"},
+ {147, "EHOSTDOWN", "host down"},
+ {148, "EHOSTUNREACH", "host unreachable"},
+ {149, "EALREADY", "operation already in progress"},
+ {150, "EINPROGRESS", "operation in progress"},
+ {151, "ESTALE", "stale NFS file handle"},
+ {158, "ECANCELED", "operation cancelled"},
+ {159, "ENOMEDIUM", "no medium found"},
+ {160, "EMEDIUMTYPE", "wrong medium type"},
+ {161, "ENOKEY", "required key not available"},
+ {162, "EKEYEXPIRED", "key has expired"},
+ {163, "EKEYREVOKED", "key has been revoked"},
+ {164, "EKEYREJECTED", "key rejected by service"},
+ {1133, "EDQUOT", "disk quota exceeded"},
+};
+
+/* eof (sysstr_errno.c.in) */
\ No newline at end of file
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/sysstr/sysstr_signo.c.in /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/sysstr/sysstr_signo.c.in
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/sysstr/sysstr_signo.c.in 1970-01-01 08:00:00.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/sysstr/sysstr_signo.c.in 2015-09-11 22:24:06.000000000 +0800
@@ -0,0 +1,42 @@
+/* sysstr_signo.c.in
+** automatically generated by mksysstr (sysstr/mksysstr.c)
+*/
+
+/*
+** 31 sorted sysno_def entries in signo_defs[] table:
+*/
+static const struct sysno_def signo_defs[] = {
+ {1, "SIGHUP", "hangup"},
+ {2, "SIGINT", "terminal interrupt"},
+ {3, "SIGQUIT", "terminal quit"},
+ {4, "SIGILL", "illegal instruction"},
+ {5, "SIGTRAP", "hardware fault"},
+ {6, "SIGABRT", "abnormal termination"},
+ {8, "SIGFPE", "arithmetic exception"},
+ {9, "SIGKILL", "kill"},
+ {10, "SIGBUS", "hardware fault"},
+ {11, "SIGSEGV", "invalid memory access"},
+ {12, "SIGSYS", "invalid system call"},
+ {13, "SIGPIPE", "write to broken pipe"},
+ {14, "SIGALRM", "timer expired"},
+ {15, "SIGTERM", "terminate"},
+ {16, "SIGUSR1", "user-defined signal 1"},
+ {17, "SIGUSR2", "user-defined signal 2"},
+ {18, "SIGCHLD", "child status changed"},
+ {19, "SIGPWR", "power failure alert"},
+ {20, "SIGWINCH", "terminal window change"},
+ {21, "SIGURG", "socket urgent condition"},
+ {22, "SIGIO", "asynchronous i/o event"},
+ {22, "SIGPOLL", "pollable i/o event"},
+ {23, "SIGSTOP", "stop"},
+ {24, "SIGTSTP", "terminal stop"},
+ {25, "SIGCONT", "continue stopped process"},
+ {26, "SIGTTIN", "background read from tty"},
+ {27, "SIGTTOU", "background write to tty"},
+ {28, "SIGVTALRM", "virtual timer alarm"},
+ {29, "SIGPROF", "profiling timer alarm"},
+ {30, "SIGXCPU", "cpu limit exceeded"},
+ {31, "SIGXFSZ", "file size limit exceeded"},
+};
+
+/* eof (sysstr_signo.c.in) */
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment