⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gen-uio

📁 Linux下文件工具。
💻
字号:
#!/bin/shfail=0cat <<\EOF || fail=1#ifndef UNLOCKED_IO_H# define UNLOCKED_IO_H 1# ifndef USE_UNLOCKED_IO#  define USE_UNLOCKED_IO 1# endif# if USE_UNLOCKED_IO/* These are wrappers for functions/macros from GNU libc.   The standard I/O functions are thread-safe.  These *_unlocked ones are   more efficient but not thread-safe.  That they're not thread-safe is   fine since all of the applications in this package are single threaded.  */EOFfor f in $@; do  u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`  cat <<EOF || fail=1#  if HAVE_${u}_UNLOCKED#   undef $fEOF  case $f in    getchar)      params=;;    putchar | clearerr | feof | ferror | fflush | getc )      params=x;;    putc | fputc | fputs )      params=x,y;;    fgets )      params=x,y,z;;    fread | fwrite )      params=w,x,y,z;;    *)      echo $0: missing case for $f 2>&1; fail=1;;  esac  cat <<EOF || fail=1#   define $f($params) ${f}_unlocked ($params)#  endifEOFdonecat <<\EOF || fail=1# endif /* USE_UNLOCKED_IO */#endif /* UNLOCKED_IO_H */EOF(exit $fail); exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -