Raymond Toy pushed to branch issue-446-use-cc-to-get-errno at cmucl / cmucl Commits: 6ce0be0f by Raymond Toy at 2025-10-15T07:03:12-07:00 Remove create-def-unix-error.awk We don't use this anymore so remove the file and remove the call from create-errno.sh. - - - - - 2 changed files: - − bin/create-def-unix-error.awk - bin/create-errno.sh Changes: ===================================== bin/create-def-unix-error.awk deleted ===================================== @@ -1,29 +0,0 @@ -BEGIN { - count = 0 -} - -# Find anything that matches '#define Efoo value' -/^#define[ \t]+(E[A-Z0-9]+)[ \t]+([A-Z0-9]+).*$/ { - found = 0 - # Search to see if the current key, $2, is already in the table. - # If so, we mark it as something to skip. This happens on Darwin - # where EOPNTOSUPP is seen twice. We want the second entry. - for (key in errno) { - if (errno[key] == $2) { - printf ";; Ignoring dup of %s: old value %s, new value %s\n", $2, value[key], $3; - found = 1; - skip[key] = 1; - break; - } - } - errno[count] = $2; - value[count] = $3; - ++count; -} - -END { - for (k = 0; k < count; ++k) { - printf "%s(def-unix-error %s %s)\n", - (skip[k] != 1) ? "": ";; ", errno[k], value[k]; - } -} ===================================== bin/create-errno.sh ===================================== @@ -90,7 +90,6 @@ find_errno () grep "#define[ \t]\{1,\}E[A-Z0-9]\{1,\}" | sed 's/#define \(.*\) \(.*\)$/(def-unix-error \1 \2)/' | sort -n -k 3 - #awk -f bin/create-def-unix-error.awk ${ERRNO_HEADERS} } if [ "$UPDATE" = "yes" ]; then View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/6ce0be0f7aaae32f27ac4deb... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/6ce0be0f7aaae32f27ac4deb... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
- 
                
Raymond Toy (@rtoy)