Giter VIP home page Giter VIP logo

linux_programming_interface's Introduction

Douglas Hawthorne

Introduction

I am an experienced Database Administrator with a demonstrated history of working in the education management and telecommunication industries. These skills include Performance Tuning, and Oracle Database Administration.

I am interested in database self-learning. My main interest is Oracle RDBMS with emerging interest in SQL/Server, MySQL, and PostGreSQL.

I am currently learning:

  • Linux
  • Ansible
  • Terraform

Table of Contents

GitHub Badges

Douglas' github trophy

Douglas' top languages

Douglas' github stats

Douglas' github streak

Social Media

I am currently somewhat active on the following social sites:

I have resources on the following site that is publicly visible:

Wikis

I have several Wikis here on GitHub:

Repositories

I have classified my repositories by language.

Forked Repositories

I have forked several repositories and modified them for my personal use:

Repositories with Ansible

The following repositories are mainly Ansible playbooks along with Jinja2 templates for Python and BASH scripts:

Repositories with SQL Scripts

The following repositories are for SQL scripts:

Repositories for Linux

The following repositories for the study of Linux encompassing C, BASH, and Assembly Language:

Miscellaneous Repositories

The following repositories are unclassified:

Empty Repositories

These repositories are currently empty, pending use in the future:

linux_programming_interface's People

Contributors

dfhawthorne avatar

Stargazers

 avatar

Watchers

 avatar  avatar

linux_programming_interface's Issues

my_chattr: test file systems mounted on loopback fail with "chattr: Operation not supported while reading flags"

make run_test_chattr
sudo ./setup_test_chattr.sh 
[sudo] password for douglas: 
sudo ./run_test_chattr.sh
+a
./my_chattr +a ./test_chattr/bfs_mine/target
./my_chattr +a ./test_chattr/msdos_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/msdos_base/target
./my_chattr +a ./test_chattr/ext2_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/minix_base/target
./my_chattr +a ./test_chattr/ext3_mine/target
./my_chattr +a ./test_chattr/ext4_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/bfs_base/target
./my_chattr +a ./test_chattr/minix_mine/target
-a
./my_chattr -a ./test_chattr/bfs_mine/target
./my_chattr -a ./test_chattr/msdos_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/msdos_base/target
./my_chattr -a ./test_chattr/ext2_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/minix_base/target
./my_chattr -a ./test_chattr/ext3_mine/target
./my_chattr -a ./test_chattr/ext4_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/bfs_base/target
./my_chattr -a ./test_chattr/minix_mine/target
=a
./my_chattr =a ./test_chattr/bfs_mine/target
./my_chattr =a ./test_chattr/msdos_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/msdos_base/target
./my_chattr =a ./test_chattr/ext2_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/minix_base/target
./my_chattr =a ./test_chattr/ext3_mine/target
./my_chattr =a ./test_chattr/ext4_mine/target
chattr: Operation not supported while reading flags on ./test_chattr/bfs_base/target
./my_chattr =a ./test_chattr/minix_mine/target

Exercise 7-2 fails with multiple calls to `sbrk()`

Exercise 7-2 fails with multiple calls to sbrk():

./my_free_and_sbrk 10 1024 1 999

Initial program break:          0x556bea310000
Allocating 10*1024 bytes
Current prog break after #   0: 0x556bea333000 (Increase of 0X0000023000)
Current prog break after #   1: 0x556bea356000 (Increase of 0X0000023000)
Current prog break after #   2: 0x556bea379000 (Increase of 0X0000023000)
Current prog break after #   3: 0x556bea39c000 (Increase of 0X0000023000)
Current prog break after #   4: 0x556bea3bf000 (Increase of 0X0000023000)
Current prog break after #   5: 0x556bea3e2000 (Increase of 0X0000023000)
Current prog break after #   6: 0x556bea405000 (Increase of 0X0000023000)
Current prog break after #   7: 0x556bea428000 (Increase of 0X0000023000)
Current prog break after #   8: 0x556bea44b000 (Increase of 0X0000023000)
Current prog break after #   9: 0x556bea46e000 (Increase of 0X0000023000)
Program break is now:           0x556bea46e000
Freeing blocks from 999 to 10 in steps of 1
After free(), program break is: 0x556bea46e000

The code for my_malloc() is supposed to call sbrk() only once to create the initial free list, and to return ENOMEM if there is insufficient free space available.

The gate keeper is whether the free_list pointer is NULL or not. If it is NULL, then sbrk() to called and the new pointer is stored in free_list.

Ex 20-3 fails with SA_RESETHAND set

While running:

make test_3_r_v

returns:

./run_test_1.sh --verbose   "--log-dir=logs/test3" "--reset-hand" 
./run_test_1.sh: line 98: 16970 User defined signal 1   ./sig_receiver "${verbose_mode}" "${sleep_parms}" "${ignore_list}" --use-sigaction "${resethand}" "${nodefer}" > ${log_dir}/sig_receiver.log 2> ${log_dir}/sig_receiver.err

Ch 20 - Ex 20-2 - Unexpected exit from sig_receiver

While running

make test_2_v

The TTY output is:

gcc -o sig_receiver sig_receiver.c 
./run_test_1.sh --verbose "--sleep-time=5" "--ignore=10"
./run_test_1.sh: line 78:  9017 User defined signal 1   ./sig_receiver "${verbose_mode}" "${sleep_parms}" "${ignore_list}" --use-sigaction > logs/test1/sig_receiver.log 2> logs/test1/sig_receiver.err

The error log shows:

sig_sender: c=0; option_index=1; optarg=(null)
sig_sender: c=0; option_index=4; optarg=9017
sig_sender: c=0; option_index=3; optarg=1000000
sig_sender: c=0; option_index=5; optarg=10
sig_sender: c=0; option_index=2; optarg=2
sig_sender: receiver_pid=9017; num_signals=1000000
sig_sender: Main signal (10) passed is 'User defined signal 1'
sig_sender: Last signal (2) passed is 'Interrupt'
sig_sender: kill with signal (10) failed after 111 iterations: No such process

realpath.c fails with special test cases

The following test cases all fail:

  1. '/fred/.'
  2. '/fred/..'
  3. '/fred/fred'
  4. '//fred/.'
  5. '//fred/..'
  6. '//fred/fred'

realpath returns the error, No such file or directory, in all of these cases.

Ex 20-3 fails with SA_NODEFER set

While running:

make test_3_n_v

returns:

./run_test_1.sh --verbose   "--log-dir=logs/test3"  "--nodefer"
./run_test_1.sh: line 98: 17280 Segmentation fault      (core dumped) ./sig_receiver "${verbose_mode}" "${sleep_parms}" "${ignore_list}" --use-sigaction "${resethand}" "${nodefer}" > ${log_dir}/sig_receiver.log 2> ${log_dir}/sig_receiver.err

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.