This document provides an overview of how to deal with RPM database corruption.
If an RPM command hangs, segfaults, or otherwise behaves abnormally during use then the first task is to check for stale lock files.
| *~ | |
| *.bak | |
| *.asm | |
| *.ihx | |
| *.lnk | |
| *.lst | |
| *.map | |
| *.mem | |
| *.rel | |
| *.rst |
| // | |
| // FILE: MultiSpeedI2CScanner.ino | |
| // AUTHOR: Rob Tillaart | |
| // VERSION: 0.1.7 | |
| // PURPOSE: I2C scanner at different speeds | |
| // DATE: 2013-11-05 | |
| // URL: http://forum.arduino.cc/index.php?topic=197360 | |
| // | |
| // Released to the public domain | |
| // |
| /*! | |
| * \file i2c_scanner.ino | |
| * | |
| * Version 1 | |
| * This program (or code that looks like it) | |
| * can be found in many places. | |
| * For example on the Arduino.cc forum. | |
| * The original author is not know. | |
| * Version 2, Juni 2012, Using Arduino 1.0.1 | |
| * Adapted to be as simple as possible by Arduino.cc user Krodal |
| void hal_InitADC (void) | |
| { | |
| EALLOW; | |
| /**/ | |
| AdcRegs.ADCCTL1.bit.ADCREFSEL = 1; /* Select external VREF */ | |
| AdcRegs.ADCCTL1.bit.ADCPWDN = 1; /* Power ADC */ | |
| AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; /* Power ADC BG */ | |
| AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; /* Power reference */ | |
| AdcRegs.ADCCTL1.bit.ADCENABLE = 1; /* Enable ADC */ | |
| /* power-up delay 5 ms */ |
| /*! | |
| * \brief Returns the amount of bytes read, or <0 when reading failed. | |
| */ | |
| int | |
| lftm (const char *filename, char **result) | |
| { | |
| int size = 0; | |
| FILE *f = fopen (filename, "rb"); /* Try to open the file. */ | |
| if (f == NULL) /* Check if opening the file succeeded. */ | |
| { |
| CFLAGS = -Wall -g `pkg-config --cflags gtk+-3.0` | |
| LDFLAGS = `pkg-config --libs gtk+-3.0` | |
| all: textview1.c | |
| $(CC) -o textview1 textview1.c $(CFLAGS) $(LDFLAGS) | |
| clean: | |
| rm -f *~ | |
| rm -f *.o | |
| rm -f textview1 |
| CFLAGS = -Wall -g `pkg-config --cflags gtk+-2.0` | |
| LDFLAGS = `pkg-config --libs gtk+-2.0` | |
| all: notebook2.c | |
| $(CC) -o notebook2 notebook2.c $(CFLAGS) $(LDFLAGS) | |
| clean: | |
| rm -f *~ | |
| rm -f *.o | |
| rm -f notebook2 |
| CFLAGS = -Wall -g `pkg-config --cflags gtk+-3.0` | |
| LDFLAGS = `pkg-config --libs gtk+-3.0` | |
| all: notebook1.c | |
| $(CC) -o notebook1 notebook1.c $(CFLAGS) $(LDFLAGS) | |
| clean: | |
| rm -f *~ | |
| rm -f *.o | |
| rm -f notebook1 |
| all: socket.c | |
| gcc socket.c -o soc | |
| clean: | |
| rm -f *~ | |
| rm -f *.o | |
| rm -f soc |