Mercurial > hg > y16 > e165715 > os > 3.1
changeset 0:a16c9a5d8cf6 default tip
addfile
author | Masaki Uehara <e165715@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 06 Feb 2019 16:46:33 +0900 |
parents | |
children | |
files | a.out a.out.dSYM/Contents/Info.plist a.out.dSYM/Contents/Resources/DWARF/a.out hgrc write-3_1.c write-3_1.c~ |
diffstat | 6 files changed, 78 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/a.out.dSYM/Contents/Info.plist Wed Feb 06 16:46:33 2019 +0900 @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> + <dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleIdentifier</key> + <string>com.apple.xcode.dsym.a.out</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundlePackageType</key> + <string>dSYM</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> + </dict> +</plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgrc Wed Feb 06 16:46:33 2019 +0900 @@ -0,0 +1,2 @@ +[paths] +default = ssh://e165715@yomitan.ie.u-ryukyu.ac.jp//home/hg/y16/e165715/os/3.1 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/write-3_1.c Wed Feb 06 16:46:33 2019 +0900 @@ -0,0 +1,28 @@ +#include <stdlib.h> +#include <unistd.h> + +char write_data[]="0"; + +void f(long n); +void g(long n, long m); +int main(int ac, char *av[]){ + if (ac!=3) exit(0); + + long n = atol(av[1]); + long m = atol(av[2]); + + g(n,m); + + +} + +void f(long n){ + for(int i=0;i<n;i++) { + write(1,write_data,sizeof(write_data)); + } +} +void g(long n, long m){ + for(int i=0;i<m;i++){ + f(n); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/write-3_1.c~ Wed Feb 06 16:46:33 2019 +0900 @@ -0,0 +1,28 @@ +#include <stdlib.h> +#include <unistd.h> + +char write_data[]="0"; + +void f(long n); +void g(long n, long m); +int main(int ac, char *av[]){ + if (ac!=3) exit(0); + + long n = atol(av[1]); + long m = atol(av[2]); + + g(n,m); + + +} + +void f(long n){ + for(int i=0;i<n;i++) { + write(1,write_data,sizeof(write_data)); + } +} +void g(long n, long m){ + for(int i=0;i<m;i++){ + f(n,m); + } +}