Two software companies have disclosed plans for layoffs that will eliminate hundreds of Bay Area tech jobs.