summary refs log tree commit diff stats
path: root/lib/posix/linux.nim
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated posix.CLONE_STOPPED (#21012)Juan Carlos2022-12-051-1/+1
| | | | | * Remove deprecated CLONE_STOPPED * Remove deprecated CLONE_STOPPED
* remove redundant void return in stdlib (#17464)Timothee Cour2021-03-231-1/+1
|
* fix #12958 (#16565)Roman Inflianskas2021-01-031-18/+29
| | | | | | | | | | Sync between Linux kernel code (header: https://github.com/torvalds/linux/blob/master/tools/include/uapi/linux/sched.h) and the linux module in lib. `CLONE_STOPPED` was marked as deprecated, as it was removed in the Linux kernel upstream. Fixes #12958.
* Deprecate DCE:on (#13839)Juan Carlos2020-04-021-2/+0
|
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-1/+1
|
* Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD ↵aguspiza2018-04-121-1/+1
| | | | allocation (#7564)
* Fix #6553 (#6580)Stefan Rakel2017-10-241-0/+2
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* lib/posix - Dropped 'T' from typespdw2015-06-041-2/+2
|
* New concurrency model: next stepsAraq2014-04-191-1/+4
|
* osproc: use clone with CLONE_VM on Linux for faster process spawningMichał Zieliński2014-02-141-0/+25
'>^
0864900c ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
           

                                                                             

                                                                         
                                                             
 

      















                                                 
                                          

                 













                                                
                            










                                                
                                  





                             
          


                                                  
#!/bin/bash
# Helper to change the numerical prefixes across the repo, say if you want to
# create room between 023 and 024, and so on.
#
# Assumes there's only ever one file with any numeric prefix. If you move
# 003trace.test.cc you might need to do some manual patch-up.

set -e

if [[ $# -eq 0 && `git diff HEAD |wc -l` -gt 0 ]]
then
  echo "Uncommitted changes"
  exit
fi

if [[ $# -gt 0 ]] # dry run
then
  git() {
    echo $*
  }
fi

#

index=0
ls [0-9]* |grep -v "trace.test" |sort -n |
  while read file
  do
    while [[ $file != `printf "%03d" $index`* ]]
    do
      echo
      index=$(($index+1))
    done
    echo $file
    index=$(($index+1))
  done > .layout

vim -c "set nu" .layout

#

root() {
  echo $1 |sed 's/^[0-9]*//'
}

index=0
cat .layout |
  while read file
  do
    if [ ! -z $file ]
    then
      newfile=`printf "%03d" $index``root $file`
      if [[ $newfile != $file ]]
      then
        echo git mv $file $newfile
        git mv $file $newfile
      fi
    fi
    index=$(($index+1))
  done

rm .layout

# Scenarios considered:
#   Don't redo the layout if Vim exits with error.